-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative paths and paths without columns not linked in debug console #13370
Comments
Here is a code pointer |
Thanks @isidorn I will take a look at this! Are there tests for this? |
@felixfbecker no but adding tests would be even more super awesome. P.S this is good documentation on how to run vscode out of source and immediatly try out your changes https://github.com/Microsoft/vscode/wiki/How-to-Contribute |
Also a bit related #6301 And make sure to get the very latest - now I polished the imports in that file so you might end up in merge conflicts if you start on a pr on an older code base. |
Fixed the regexp so that
Need to build VS Code now and find out if the match groups that may now be |
I also noticed only group 1, 3 and 4 are used. Can I remove capturing of group 2 (root component)? |
@felixfbecker I believe that group is there for a reason. Though @bpasero originally added it |
Well I checked this with Find all references and the regexp is only used in a single place, where only the capture groups I mentioned are used. But I'm gonna leave it out for now. |
These regexes are literally taken from our Azure version I think and super old. Feel free to revisit them, but make sure to see the test cases and update them as well 👍 |
Actually I see the same thing in Windows. I think it's just highlighting the first link it finds instead of all of them. On Windows the link is still clickable though. |
It seems like it's only supposed to work with paths in parens and with |
Yes, or line start / line end should work too. I have no idea though why only the first link is highlighted and don't have time currently to investigate |
Investigated, and there are sort of two problems:
|
Thanks @roblourens for a great investigation. The first issue is introduced by the last PR. The second issue is introduced by a refactoring on my end where we try to handle new lines in the debug console better. I have pushed a safest fix that takes care of those two problems - reverted only the last PR and disabled the grouping together of the output. This should now bring us to the same behavior of the last stable release (with potentialy some improvements by the first two PRs). Our link handling has many flaws and I plan to tackle this in the January release. |
After testing this out it seems we have regressed a bit. Namely when there is one large output event we only detect the first link. This is practice means when a stack trace is printed that only the top stack trace element can be clicked. I am not sure how big of a regression this is. This was working before becuase we were actually not handling the output events properly and we were separting them in new lines wrongly. @weinand can decide if it is ok to ship with this limitation. If it is not ok to ship with this then I propose we go back to the old spliting each output per line. |
Why not split it at the time the regexp is applied? |
@felixfbecker yeah that is also an option. But when there are multiple links detected on one element than the formating / newlines get screwed up. So there would some additional changes required which are never smart to do in last minue fixes such as this one :) |
@felixfbecker unforuntetly had to revert all your prs because we decided to go back to the behavior we had in vscode stable. Since we have polluted the history of this bug I have created a new one and assigned it to January so we can properly fix this in the next release. Here is the issue #17085 |
For verification: Verify vscode insiders is handling links in the repl the same way vscode stable is doing right now |
Thanks, looks good to me on MacOS in master (needs verification in a real build) |
Paths from the stack trace are not clickable
The text was updated successfully, but these errors were encountered: