Skip to content
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

Merged
merged 4 commits into from
Oct 21, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/compliment/utils.clj
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@
(not (.contains file "$")))]
(.. (if (.startsWith file File/separator)
(.substring file 1) file)
(replace ".class" "") (replace File/separator ".")))
(replace ".class" "") (replace File/separator ".")
;; Address the issue #79 , on Windows, for prefix such
;; as "java.util.", the list of candidates was empty.
(replace "/" ".")))
peterwang marked this conversation as resolved.
Show resolved Hide resolved
(group-by #(subs % 0 (max (.indexOf ^String % ".") 0)))))))

(defn namespaces-on-classpath
Expand Down