|
From: Matthieu C. <cho...@gm...> - 2008-02-07 10:39:29
|
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
>
>
|