adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.26k stars 7.64k forks source link

ESLint error and Jump to Definition doesn't working in ES6 Classes #14480

Open brendomarinho opened 6 years ago

brendomarinho commented 6 years ago

Prerequisites

Description

Hi, I'm having a problem with shortcuts in ES6 methods. I'm tried to jump to definition (Ctrl/Command+J) of a ES6 Class method, but, doesn't happened, then I tried to just look at Errors toolbar, and, the following error was in Console.

image

Anyway, I've been disabled all off my extensions, one-by-one, and nothing happens at all. Then, I have tried again in DevTools (F12) and took a look with Shift+F5. The errors in console is in screenshot.

image

Additionally, if I try with Ctrl/Command + T, they "jumps" to definition scope.

Versions

Windows 7 - x64 Release 1.13 build 1.13.0-17696 (release 49d29a8bc)

macOS High Sierra 10.13.5 Release 1.13 build 1.13.0-17696 (release 49d29a8bc)

navch commented 6 years ago

Is it working correctly with Ctrl + T ? From errors it looks like some error occurred in tern module. For this feature brackets uses tern module.

brendomarinho commented 6 years ago

With Ctrl/Command + T works in some cases. The current code is in migration process and contains both ES6 and some "function classes" by older JavaScript spec.

When I run the command (Ctrl+J) with older classes they works fine, but, with ES6 classes only if I'm using Ctrl+T.

Otherwise, errors by ESLint started when I updated to Brackets 1.13.

navch commented 6 years ago

Thanks for describing this in detail. I will debug it asap. If possible paste some small sample code here.