[jbosstools-issues] [JBoss JIRA] (JBIDE-19393) Multiple Error Annotations are shown on a valid JavaScript file in JavaScript Editor

Victor Rubezhny (JIRA) issues at jboss.org
Tue Mar 10 19:04:18 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-19393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048744#comment-13048744 ] 

Victor Rubezhny edited comment on JBIDE-19393 at 3/10/15 7:04 PM:
------------------------------------------------------------------

The problem is few "wrong" characters that cannot be shown/edited by the editor:

!WrongCharacters.png|thumbnail!

They're look like some unicode characters that came from some other (not JSDT) JavaScript editor:

!WrongCharacterCodes.png|thumbnail!

Mozilla shows them as three "Russian" letters (on my computer) - see the WrongCharacters.png , but it's obvious that they have no any meaning for the JavaScript code (at least I cannot find any meaningful description for these character codes in ECMA5 standard) - Mozilla runs the code successfully.

JSDT JavaScript Editor fails to show these chars (There are no even a placeholder for them), but scanner is given with them and treats them as Invalid Tokens.

Eclipse's Text Editor also fails to show these characters.

We should either remove such characters from the JS text (which will mark editor as changed right after it's opened) or show at least their placeholders due to let a user know that some characters are there, but they cannot be shown by the editor and giving him/her a possibility to remove/replace such characters.


was (Author: vrubezhny):
The problem is few "wrong" characters that cannot be shown/edited by the editor:

!WrongCharacters.png|thumbnail!

They're look like some unicode characters that came from some other (not JSDT) JavaScript editor:

!WrongCharacterCodes.png|thumbnail!

Mozilla shows them as three "Russian" letters (on my computer) - see the WrongCharacters.png , but it's obvious that they have no any meaning for the JavaScript code (at least I cannot find any meaningful description for these character codes in ECMA5 standard) - Mozilla runs the code successfully.

JSDT JavaScript fails to show these chars (There are no even a placeholder for them), but scanner is given with them and treats them as Invalid Tokens.

We should either remove such characters from the JS text (which will mark editor as changed right after it's opened) or show at least their placeholders due to let a user know that some characters are there, but they cannot be shown by the editor and giving him/her a possibility to remove/replace such characters.

> Multiple Error Annotations are shown on a valid JavaScript file in JavaScript Editor
> ------------------------------------------------------------------------------------
>
>                 Key: JBIDE-19393
>                 URL: https://issues.jboss.org/browse/JBIDE-19393
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: upstream
>    Affects Versions: 4.2.2.Final
>            Reporter: Victor Rubezhny
>            Assignee: Victor Rubezhny
>             Fix For: 4.3.0.Alpha2
>
>         Attachments: hybrid4001.zip, JavaScriptParserError.png, WrongCharacterCodes.png, WrongCharacters.png
>
>
> Multiple Error Annotations are shown on a valid JavaScript file in JavaScript Editor:
> {code}
> Multiple markers at this line
> 	- Syntax error on token "Invalid Character", delete this token
> 	- Missing semicolon
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbosstools-issues mailing list