You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the "Jest Tests" configuration, place a breakpoint on line 8 (console.log) of the test file, hover over 'boo' - nothing pops up. I expect to see the normal tooltip which inspects the contents of the variable. This works if I use the "mocha" framework instead of Jest.
Mat (@matbarker) thank you for the nice reproducable steps. I can repro this and the issue is that the node2 debug adapter returns wrong scope ranges. In this example there 3 scopes Global, Local and Closure. And the Local one has the wrong ranges thus we do not search in it for the 'boo' variable.
Forwaring to roblourens since this wrong scope ranges are coming from his adapter
I can repro too. There are some weird mappings in the sourcemap, but I have no idea why. The adapter ends up mapping the end line of the scope to be the same as the start line, but that's just based on info from the sourcemap.
What's also strange is that when I comment out the indicated line, it works, but it shouldn't, because it's still returning the bad scope. Maybe you can check that out Isidor Nikolic (@isidorn) or give me a code pointer to investigate.
This is the result that's returned when the last line is commented out. Hovering 'boo' shouldn't work, but it does.
To client: {"seq":0,"type":"response","request_seq":11,"command":"scopes","success":true,"body":{"scopes":[{"name":"Local","variablesReference":1000,"expensive":false,"column":22,"line":5,"endColumn":5,"endLine":5},{"name":"Global","variablesReference":1001,"expensive":true}]}}
For the root of the problem, it looks like it's compiling with babel (but not making any real changes). Might be a babel bug or a weird config, not sure how to investigate it.
Activity
isidorn commentedon Oct 5, 2017
Mat (@matbarker) thank you for the nice reproducable steps. I can repro this and the issue is that the node2 debug adapter returns wrong scope ranges. In this example there 3 scopes Global, Local and Closure. And the Local one has the wrong ranges thus we do not search in it for the 'boo' variable.
Forwaring to roblourens since this wrong scope ranges are coming from his adapter
roblourens commentedon Oct 29, 2017
I can repro too. There are some weird mappings in the sourcemap, but I have no idea why. The adapter ends up mapping the end line of the scope to be the same as the start line, but that's just based on info from the sourcemap.
What's also strange is that when I comment out the indicated line, it works, but it shouldn't, because it's still returning the bad scope. Maybe you can check that out Isidor Nikolic (@isidorn) or give me a code pointer to investigate.
This is the result that's returned when the last line is commented out. Hovering 'boo' shouldn't work, but it does.
For the root of the problem, it looks like it's compiling with babel (but not making any real changes). Might be a babel bug or a weird config, not sure how to investigate it.
isidorn commentedon Oct 30, 2017
roblourens here's a code pointer for getting the most specific scope. Just place a breakpoint there when you hover and you should be able to nicely inspect everything https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/debug/common/debugModel.ts#L360
joaomoreno commentedon Nov 1, 2017
I just hit a missing hover too, while debugging an extension.
Hovering over
changesdoesn't do anything, while hovering overnotTrackedworks fine:roblourens commentedon Nov 1, 2017
What project is that Joao?
joaomoreno commentedon Nov 1, 2017
https://github.com/JohnstonCode/svn-scm/blob/master/src/repository.js#L50
roblourens commentedon Nov 1, 2017
I can't repro, would be helpful if you add
"trace": trueto the launch config and send the logroblourens commentedon Nov 26, 2017
Should be fixed by #37838