Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Re: XML editor, errors wrongly displayed
Re: XML editor, errors wrongly displayed [message #181875] Tue, 24 October 2006 16:39 Go to next message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

David Balažic wrote:
> Hi!
>
> I have Eclipse 3.2.1 on WinXPproSP2.
>
> If I open an XML file inside a project, and add a space between "?" and
> ">" in the first line, then Eclipse reports and error.
> The line is (before) :
> <?xml version="1.0" encoding="UTF-8"?>
> after:
> <?xml version="1.0" encoding="UTF-8"? >
>
> Then I save (ctrl-s), delete the space (using the backspace key), but
> Eclipse still claims there is an error. Even after saving with ctrl-s,
> it still claims there is an error : The XML declaration must end with "?>".
>
> If I clise the file editor and reopen it, then it is OK again.

I've noticed the same problem in HTML/JSP files, too. Eclipse/WTP seems
to get confused about the error state of files sometimes. I have not yet
been able to come up with a reproducible test case, but I see it pretty
uch every day. If you have a scenario that exhibits the problem every
time, please file a bug report and post here the bug #.

Eric
Java editor errors indication Was: XML editor, errors wrongly displayed [message #181890 is a reply to message #181875] Wed, 25 October 2006 08:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david.balazic.hermes.si.foo

Eric Rizzo wrote:
> David Balažic wrote:
>> Hi!
>>
>> I have Eclipse 3.2.1 on WinXPproSP2.
>>
>> If I open an XML file inside a project, and add a space between "?"
>> and ">" in the first line, then Eclipse reports and error.
>> The line is (before) :
>> <?xml version="1.0" encoding="UTF-8"?>
>> after:
>> <?xml version="1.0" encoding="UTF-8"? >
>>
>> Then I save (ctrl-s), delete the space (using the backspace key), but
>> Eclipse still claims there is an error. Even after saving with ctrl-s,
>> it still claims there is an error : The XML declaration must end with
>> "?>".
>>
>> If I clise the file editor and reopen it, then it is OK again.
>
> I've noticed the same problem in HTML/JSP files, too. Eclipse/WTP seems
> to get confused about the error state of files sometimes. I have not yet
> been able to come up with a reproducible test case, but I see it pretty
> uch every day. If you have a scenario that exhibits the problem every
> time, please file a bug report and post here the bug #.

Bug # 162178

I also noticed something partly related to this, when editing java files:

If I make an error int java code, the error is marked with a red line in
the column to the right of the editor, also the button on the top of
that column shows a red dot. But only after saving the file, a red
circle with a white X icon appears in the left column. If I fix the
error (but don't save the file yet) all error indicators disappear (the
red circle does not disappear, but turns gray).

Why is that when fixing an error, the left column reacts immediately,
but when making an error only after saving the file ?

(there is also a third error indicator : the error in code is
underlined. This also works immediately, without the need to save the file)

Regards,
David
Re: Java editor errors indication Was: XML editor, errors wrongly displayed [message #181897 is a reply to message #181890] Wed, 25 October 2006 08:52 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
David Balažic wrote:

> Eric Rizzo wrote:
>
>> David Balažic wrote:
>>
>>> Hi!
>>>
>>> I have Eclipse 3.2.1 on WinXPproSP2.
>>>
>>> If I open an XML file inside a project, and add a space between "?"
>>> and ">" in the first line, then Eclipse reports and error.
>>> The line is (before) :
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> after:
>>> <?xml version="1.0" encoding="UTF-8"? >
>>>
>>> Then I save (ctrl-s), delete the space (using the backspace key),
>>> but Eclipse still claims there is an error. Even after saving with
>>> ctrl-s,
>>> it still claims there is an error : The XML declaration must end
>>> with "?>".
>>>
>>> If I clise the file editor and reopen it, then it is OK again.
>>
>>
>> I've noticed the same problem in HTML/JSP files, too. Eclipse/WTP
>> seems to get confused about the error state of files sometimes. I
>> have not yet been able to come up with a reproducible test case, but
>> I see it pretty uch every day. If you have a scenario that exhibits
>> the problem every time, please file a bug report and post here the
>> bug #.
>
>
> Bug # 162178
>
> I also noticed something partly related to this, when editing java files:

This has nothing to do with the Java editor.

Dani

>
> If I make an error int java code, the error is marked with a red line
> in the column to the right of the editor, also the button on the top
> of that column shows a red dot. But only after saving the file, a red
> circle with a white X icon appears in the left column. If I fix the
> error (but don't save the file yet) all error indicators disappear
> (the red circle does not disappear, but turns gray).
>
> Why is that when fixing an error, the left column reacts immediately,
> but when making an error only after saving the file ?
>
> (there is also a third error indicator : the error in code is
> underlined. This also works immediately, without the need to save the
> file)
>
> Regards,
> David
Previous Topic:Re: FTP support (drag-n-drop)
Next Topic:Problem importing war file
Goto Forum:
  


Current Time: Fri Apr 26 14:32:02 GMT 2024

Powered by FUDForum. Page generated in 0.04630 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top