-
Notifications
You must be signed in to change notification settings - Fork 182
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 for java compile/attach args #400
base: develop
Are you sure you want to change the base?
Conversation
(port (dap--find-available-port "localhost" dap-java-compile-port)) | ||
(program-to-start (format "%s -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=%s,quiet=y -cp $CLASSPATH_ARGS %s" | ||
(program-to-start (format "%s -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=%s,quiet=y -cp $CLASSPATH_ARGS %s %s" |
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.
(program-to-start (format "%s -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=%s,quiet=y -cp $CLASSPATH_ARGS %s %s" | |
(program-to-start (format "%s -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=%s,quiet=y -cp $CLASSPATH_ARGS %s%s" |
lsp-java-java-path | ||
port | ||
mainClass))) | ||
mainClass | ||
args))) |
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.
args))) | |
(and args (concat " " args))))) |
This will remove a trailing whitespace in the command, also handles the case of args being nil or unspecified.
This PR should be against lsp-java, dap-java was moved there. I am amazed how this PR is green considering that dap-java.el is not present in this repo... |
Sorry, I saw I can move this to lsp-java? |
Args are passed in when doing a compile/attach. This small fix addresses this issue.