-
Notifications
You must be signed in to change notification settings - Fork 1k
debug options break launcher #8100
Copy link
Copy link
Closed
Labels
Description
steps
on windows with sbt 1.10.11
set SBT_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=localhost:1234
sbt.bat
problem
The filename, directory name, or volume label syntax is incorrect.
Listening for transport dt_socket at address: 1234
java.nio.file.InvalidPathException: Illegal char <:> at index 44: Listening for transport dt_socket at address: 1234
C:\Users\user\.sbt\1.0\java9-rt-ext-oracle_corporation_21_0_2\rt.jar
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:204)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:175)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:231)
at java.base/java.nio.file.Path.of(Path.java:148)
at java.base/java.nio.file.Paths.get(Paths.java:69)
at xsbt.boot.Launch$.exportRt(Launch.scala:53)
at xsbt.boot.Launch$.apply(Launch.scala:28)
at xsbt.boot.Launch$.apply(Launch.scala:21)
at xsbt.boot.Boot$.runImpl(Boot.scala:78)
at xsbt.boot.Boot$.run(Boot.scala:73)
at xsbt.boot.Boot$.main(Boot.scala:21)
at xsbt.boot.Boot.main(Boot.scala)
[error] [launcher] error during sbt launcher: java.nio.file.InvalidPathException: Illegal char <:> at index 44: Listening for transport dt_socket at address: 1234
[error] [launcher] C:\Users\user\.sbt\1.0\java9-rt-ext-oracle_corporation_21_0_2\rt.jar
The syntax of the command is incorrect.
d:\sbt-test
>
expectation
sbt launches and i can attach debugger to it
notes
--jvm-debug 1234 option works
Reactions are currently unavailable