Join GitHub today
`lsp-java-update-project-configuration` raises unfriendly errors #141
Describe the bug
If one invokes
User-friendly approach would be to allow invocation of
(defun lsp-java--dominating-file (name &optional file) "Use `locate-dominating-file'." (and (setq file (locate-dominating-file (file-name-directory (or file (buffer-file-name) default-directory)) name)) (expand-file-name file)))
(defun lsp-java-update-project-configuration () "Update project configuration." (interactive) (let ((default-directory (or (lsp-java--dominating-file "pom.xml") (lsp-java--dominating-file #'(lambda (directory) (directory-files directory nil "\\.gradle\\'")))))) (if default-directory (lsp-java-with-jdtls (lsp-notify "java/projectConfigurationUpdate" (lsp--text-document-identifier))) (user-error "Update configuration should be called only from project tree containing build file (pom.xml or gradle)"))))
Since I am a new user, perhaps, I can ask a question indirectly related to this issue. How do I build a Maven project using
This will refresh the pom.xml data but is pretty much no longer needed since latest version of lsp-java tracks automatically the pom.xml changes.
This will produce only ".class"(equivalent to the Build project in eclipse if you are familiar with it).
If you want to do build the project(e. g. invoke