|
From: indian s. <coo...@gm...> - 2008-02-08 11:50:19
|
http://www.esnips.com/webfolder/37daf783-13b2-4b8f-bfa1-d79f015921bf/ On Feb 7, 2008 4:27 PM, indian scorpio <coo...@gm...> wrote: > that would be great ... !!! > > These are two file which i believe are changed.. i m tryin to update the > rar .. if you have no problem you can try with these files > > > > On Feb 7, 2008 4:09 PM, Matthieu Casanova <cho...@gm...> wrote: > > > To summarize, could you put somewhere your code so we can try to fix > > the problem ? > > > > On Feb 7, 2008 11:35 AM, indian scorpio <coo...@gm...> > > wrote: > > > nopes it didnt help...!!! :( > > > > > > > > > On Feb 7, 2008 3:56 PM, neric <ne...@wa...> wrote: > > > > > > > > > > > > > > > > Hi, > > > > > > > > I had similar errors back in march 2006, when I was trying to use > > modes > > > > and macros from a zip archive, using > > > > truezip. > > > > I don't remember how If it fixed the problem, but I found this in my > > > > sources (file jEdit.java, static void loadMode(Mode)): > > > > > > > > instead of : > > > > grammar = new BufferedReader(new > > > > FileReader(fileName)); > > > > > > > > use: > > > > > > > > + InputStream is= new > > > > de.schlichtherle.io.FileInputStream(fileName); > > > > + ByteArrayOutputStream os = new > > > > ByteArrayOutputStream(10000); > > > > + int c; > > > > + while((c=is.read())!=-1) > > > > + os.write((char)c); > > > > + is.close(); > > > > + os.close(); > > > > + grammar = new InputStreamReader(new > > > > ByteArrayInputStream(os.toByteArray())); > > > > > > > > and then, as before: > > > > InputSource isrc = new InputSource(grammar); > > > > isrc.setSystemId("jedit.jar"); > > > > > > > > > > > > So basically copy whole mode file in a buffer and parse this buffer. > > > > Hope this helps... > > > > eric > > > > > > > > indian scorpio a écrit : > > > > > > > > > > > > > Any idea.. > > > > > > > > > > Also i feel it is coz I aint packing the jars correctly.. can this > > be > > > > > the case....??? > > > > > > > > > > On Feb 5, 2008 2:32 PM, indian scorpio <coo...@gm... > > > > > > > > > > > > > <mailto:coo...@gm...>> wrote: > > > > > > > > > > hi > > > > > > > > > > Well, now the issue is something else (probably more java > > specific > > > > > rather than jEdit specific but thought may its better to ask > > here > > > > > once. > > > > > > > > > > When I am running the project (textArea) using eclipse it is > > > > > working fine with proper syntax highlighting etc. but when I > > build > > > > > the textArea jar and trying to run that then though the > > textArea > > > > > runs but there is no syntax highlighting etc. while startup > > these > > > > > are the logs. While searching found out that this might be > > some > > > > > 1.6 specific bug & has been resolved but again not working for > > me. > > > > > This is the problem when I do ModeProvider.loadmode(mode) - if > > I > > > > > dont do it there is no error but then textArea shows no > > > > > hinghlighting etc. > > > > > > > > > > 2:20:35 PM [error] ModeProvider: java.io.IOException: Stream > > closed > > > > > 2:20:35 PM [error] ModeProvider: at > > > > > java.io.BufferedInputStream.getInIfOpen(Unk > > > > > nown Source) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > This SF.net email is sponsored by: Microsoft > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > -- > > > ----------------------------------------------- > > > jEdit Users' List > > > jEd...@li... > > > https://lists.sourceforge.net/lists/listinfo/jedit-users > > > > > > > > > > |