You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Launching apps which require both, a modulepath and a classpath dosen't work with shortenCommandLine="argfile" #1047
Use the launch configuration "Launch Demo - not working with shortenCommandLine=argfile". In that project log4j-api is a module-path dependency and log4j-core is classpath dependency.
Current Result
Only module-path dependencies are added to the argfile. Classpath dependencies are not added.
In the demo project this results in:
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath.
although log4j-core is in the pom.xml.
Expected Result
It should add both, modulepath and classpath to the argfile. shortenCommandLine="argfile" seams to be the default when just clicking on the gray little "Run" over the main method so it would be great if it would work.
In the demo project you should something like the following on the command line.
[INFO ] 2021-09-07 19:44:26,063 de.bieniek_it.vscode_modular_java.Demo - Hello World!
Workaround
Use shortenCommandLine="none"
In the demo project you can use the second launch configuration "Launch Demo - working with shortenCommandLine=none".
Activity
testforstephen commentedon Sep 13, 2021
thank you for reaching out. I can reproduce it, it's a bug. I'm going to push a fix for this.