-
Notifications
You must be signed in to change notification settings - Fork 38
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
Fix completion of Java packages/classes on Windows. #79
Fix completion of Java packages/classes on Windows. #79
Conversation
Since file pathes inside jar files contain '/' instead of `File/separator', '/' also should be replaced with '.' Before this fix, completion of java packages such as java.util.*, java.nio.* does not work, it works now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(contributing a review as someone who helps maintaining cider-nrepl)
I'd add a comment and deftests so that maintainers won't accidentally undo this bugfix in a future.
It also would help to expand the PR description with examples of the problematic strings.
We also should be sure that macOS/Linux users won't be affected (we'd gain that confidence via detailed testing and PR desc)
Cheers - V
Just checked the existing tests, string prefix |
Hi, would you consider addressing the simplest things I suggested? Detailed PR desc + inline comment. Also if you post the output of the failing tests we can try solving them. I don't have a windows machine and setting that up in CI is quite hard (which is why most Clojure projects don't have such a setup sadly). Failing tests can plausibly mean that other things will be broken on windows so in a way, without a green build everywhere this PR will be of limited use. Cheers - V |
Hi, I have added detailed PR and inline comment for the code change. Regarding to the FAIED tests on Windows, Please see the following snippets, thanks a lot.
|
Thanks for the iteration! I'll see what I can make of the failing tests, will let you know. As for the comment/desc, I'd expect to see what is being exactly fixed / what was exactly failing. Saying "this fixes x" doesn't quite cut it because it doesn't show why. |
Inspecting #79 (comment) : Looks like
So I'd suggest fixing the other @peterwang how does that sound? Would be nice to fix at least a few tests. |
Hi, it seems that FAILED tests on Windows were all caused by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍻 🚀 great work!
Thanks for the time fixing the tests on Windows.
Done with |
WDYT of these changes? @alexander-yakushev We're in the process of cutting a new cider-nrepl release, would love to include the current 2 PRs. |
Sorry for leaving you hanging! Merged. |
Cheers! Looking forward to the release 🍻 |
Since file pathes inside jar files on Windows contain
/
instead ofFile/separator
,/
should also be replaced with.
to getthe class name correctly.
Before this fix, completion of java packages such as
java.util.*
,java.nio.*
did not work, the list of candidates was just empty.It completes as expected after this fix.