-
Notifications
You must be signed in to change notification settings - Fork 2
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
VSCode-compatible line number output #6
Comments
It's a nice feature to have. |
Something like |
It might also make sense to detect the presence of the vscode externs ( |
@Gama11 do you know if HaxeDevelop have a pattern for clickable file names in output panel? |
I don't think FD has links inside the output panel - it does however parse the output and check for certain patterns, for instance lines that look like Haxe error messages. Those then appear in the Results panel. |
There was a feature request here, but it was turned down: fdorg/flashdevelop#301 |
Try with
|
Thanks, works great! :) |
Even though this issue has been closed already, I didn't get how to implement what'd been said under Where do I have to insert "::" (in combination with "Callstack.itemToString()" ??) that the vs-code console shows me something like Thanks in advance for stating more clearly how (or WHERE) to implement "::". |
It's because jstack only handles js and php targets currently. I should probably update it to at least format callstack on other targets. |
So you mean for python in vscode it wouldn't work? |
You need to copy-paste |
Thanks for the tipp. Unfortunately, I don't know how to carry out what you write. |
Oh, if you work with the python itself (not with haxe->python), then I don't know how to help you. Sorry. |
Alright, thanks for your time. I hope to find some way elsewhere, but if anyone knows a solution, please post it here. |
JStack combos really well with VSCode's output panel, because it detects file paths and makes them clickable:
However, as you can see, it only takes me to the file (first line), not the correct line number in that file. This comment suggests that
#lineNumber
works, and sure enough, after hacking that intoCallstack.itemToString()
, this works perfectly:Could this be supported by jstack somehow? I guess you'd have to re-implement
Callstack.itemToString()
, and also differentiate by OS (that comment suggests that the syntax for Mac is different right now, don't know about Linux).Not sure if this should be the default behavior or configurable in some way - depends on whether or not other tools rely on the current output format I guess?
The text was updated successfully, but these errors were encountered: