-
Notifications
You must be signed in to change notification settings - Fork 55
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
Line debugger fails on homonyms #153
Comments
Attached is a patch file. This is a starting point, it suffers several remaining issues:
This code optimisation is incomplete, because I think that this would bring some problems when you have several instances of the same projects in parallel, ie the same full classname in one project would map to a source file in another project. I did not find any simple way to solve this. Probably one way would be to combine the full-classname with a unique project id in the map keys. Another more radical way would be to rewrite the whole function as a method of the debugger object and make the hashmap a member of this object, OK, it would probably be more reasonable to have a phased approach and fix first the bug w/o the optimisation. |
Concerning the documentation of |
Hi. Sorry for late reply, but it took me some time to write tests for this part and wrap my head around the issue. IIUC what you described is valid case. Even when there is more than one source file matching class name then still the correct one should be selected - based on Fully Qualified Name. What's more, the location of a source file on the source path doesn't have to match directory structure, therefor your configuration, although uncommon and discouraged, is still valid. Of course, the simplest solution is to correct the Regarding your patch. Please create Pull Request were we could review and discuss it. I created a few tests for Thanks! 👍 |
This is a duplicate of bug №30 on Sourceforge, and I am coming with a fix.
The text was updated successfully, but these errors were encountered: