-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[Brackets 34] [acorn issue] #6022
Comments
This looks like it might be related to #5847 . Were you switching between an image preview and a JavaScript file by any chance? Do you have any more hints as to what you were doing when this bug came up? |
This issue might be a false positive error. I've just tried to open this script http://userscripts.org/scripts/review/183145 and it has some images encoded which caused the problem. |
@hoanglienson That looks like valid JavaScript, though. There are certain cases that can trip up the JavaScript parser, and being able to identify those helps us fix them. I just tried pasting that particular script into the Tern demo page and it didn't seem to have a problem with it. |
You're right, Tern seems not to have any problem with that script. Do you think Tern might use another parser version than Brackets 34. I've tried to comment those hardcoded images out but still have those parsing errors. I admit that I'm getting to familiar with JavaScript and dont know much about this language yet. If there's any chance I can help to tackle this just tell me, I will try my best. It's a good opportunity for me to learn more about JavaScript too. |
No problem, I appreciate the help in identifying the case that's causing you an issue. I can try it in Brackets as well to see if it causes a problem for me there. I checked Tern/Acorn about 2 weeks back and there hadn't been many changes that would make a difference. |
This should be fixed by #6068 |
You're right. In the folder that I placed the script does have other binary files as well. I now understand that's why you and Tern didn't have issue by reading the script but only me. Thanks for the fix. 👍 |
@hoanglienson I'm glad that my guess worked out! Thanks for the confirmation |
Jum to definition (Ctrl-J) doesn't work either.
The text was updated successfully, but these errors were encountered: