PDA

View Full Version : [OPEN] warning sign red or other color, comfusing...



mikael.lofstedt
3 Oct 2012, 11:33 PM
hi

Usually when I miss a semicolon I get a red sign with a !.

Now it´s sometimes another color.

I think it´s better to just have red,
and if the other color is just recomendation,
it´s something wrong,

two example:

console.log('hello); - not give any red sign. in the 1 it got alot of red signs when missing '.

localStorage.setItem('bana', record.get('bana'); not any red sign,
but another color and info: expected '(' and instaed saw ';', mising semicolon.

if(a < 5)
{
b = 6;
}*/

gives nothing for the '*/'

please check this out.

/ Mike

aconran
4 Oct 2012, 9:08 AM
One is a warning, one is an error.

You are correct about the code snippet:


if(a < 5)
{
b = 6;
}*/


It should definitely be giving you an error that you are trying to close a comment that hasn't been started. We will upgrade JSHint to get this new feature.

mikael.lofstedt
4 Oct 2012, 8:55 PM
hi

Thanks for your reply.

I have some more if statment error,
and it´s a red sign.

And when I reopen the document,
it´s no error.

I have one for example a request,
but now it should not happen every time.
So if I add an if before,
I get the error, but nothing is wrong.

I have 10 screenshot as example.
Now I started to see this on the first Architect.

I think it´s just comfusing with different colors,
no need for information.
It should have an 'i' instead of '!'.

/ Mike

mikael.lofstedt
5 Oct 2012, 3:38 AM
hi

No need to get information during writeing a line that it´s missing some signs.
I know that the end ')' is missing when writing console.log('Hello_world

Please remove that til next time.

/ Mike