- Install JDK 11 and Maven 3.5.4
- Clone this repository and create an IntelliJ IDEA project from it, ensuring it uses the proper JDK and Maven.
- Create a folder with a long directory path, e.g. D:/longName/longName/.../longName
- Go to the Maven settings for this project and overwrite the local repository to use the folder you just created. This will prepend all dependencies with the folder path and really helps create a long enough classpath.
- Run the main class in this repository. If your folder path is long enough, options for command line shortening will be suggested. Pick the "@argFiles (java 9+)" option
- Running it like this should be fine. The main class prints the length of the classpath; make sure it's around 55,000 characters (mine is 58,000).
- Now debug with the same run configuration. An exception should be thrown.
-
Notifications
You must be signed in to change notification settings - Fork 0
VagrantBlackbird/intellij-command-line-shortening-bug
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Demonstrates a bug in IntelliJ when having a long classpath and using @argFiles-classpath shortening in debug mode
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published