Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ: Command Line is too Long. Shorten command line for... in SBT project

When I try to run my app, IntelliJ has just started to tell me

"Command Line is too Long. Shorten command line for my_app or also for Application default configuration."

the my_app is a blue link which leads to an "Edit Configuration" window, automatically selecting and highlighting a dropdown for class path shortener. I select the suggested options, but no change.

I have no idea what this means - I'm using Scala, so I'm using a simple object MyObj extends App which takes no parameters at all.

I have tried adding <property name="dynamic.classpath" value="true" /> to the workspace.xml as suggested by other similar questions, but to no avail.

I used to be able to run my programs in my project fine before. But what lengthens a command line? What is being put on the command line at all?

like image 375
NateH06 Avatar asked Feb 28 '18 22:02

NateH06


1 Answers

This answer is based on IntelliJ 2020.1.4

  1. Open the configuration. This is usually found in the Debug/Run toolbar.
  2. You will find Shorten Command Line item in the Configuration dialog box. There are different modes that you can select there. In my case JAR Manifiest worked.

You can also set this as the default the next time you auto-generate a test.

enter image description here

like image 169
Manabu Tokunaga Avatar answered Sep 20 '22 23:09

Manabu Tokunaga