Use right -sourcepath when jruby is invoked via jdb#5346
Use right -sourcepath when jruby is invoked via jdb#5346headius merged 1 commit intojruby:masterfrom
Conversation
|
btw, I removed the path |
|
hard-coding paths that make sense during development shouldn't be the resolution here. |
8da284e to
7c5c197
Compare
|
I took a look at a recent dist build, e.g.: @kares OK, I'll remove the path including the generated-sources dir since it doesn't make sense for a dist build as you mentioned. However, I wonder if it makes sense to include the ruby stdlib path in the source path of the java debugger, since there are not .java files in that path. To clarify, which option is preferable?
Or just:
|
|
@kares I updated the commit as you recommended a few days ago. My remaining question is if it makes sense to include the ruby stdlib path in the source path of the java debugger, since there are not .java files in that path. |
|
@nomadium Probably not currently, since even when compiled (via JIT) the file paths will not be rooted in the stdlib dir (they are canonicalized to system-level paths). I approve, will merge. |
|
@nomadium I should have been more clear...it's fine for stdlib to be in there even if it doesn't work. I believe we want the same change in the native JRuby launcher, https://github.com/jruby/jruby-launcher. |
When --jdb flag is passed to jruby, it's using an incorrect value for -sourcepath flag. This makes the debugger unable to show the source code of the class being debugged.
Before:
After: