Jump to content

"The command line is too long" - scala recompile error


mnn

Recommended Posts

Hello,

 

in recompile I got:

20:26:34 - == ERRORS FOUND in SCALA CODE ==
20:26:34 - 
20:26:34 - The command line is too long.

 

If I'm right then the Scala compilation is added by FML to the MCP script (so this should be the right place to ask). The too long command line is caused by too many directories with java files - resulting argument line has more than 8kB (limit on Windows from what I read). I think there can be used environment variables to pass it, but I'm not really sure. Also the scripts are in python which I don't understand much.

 

I managed to bypass Scala compilation, but in the future I'd like to try write some mod(s) in Scala.

 

Do you know any solution to this problem? Is this a new bug or it's just not being expected having more folders and/or developing under Windows?

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

Link to comment
Share on other sites

I'm having the same problem.  I also couldn't compile scala code when I tried the first time to get a working dev environment, and while the error message was different, the problem is the same.  I know it's possible to get working, but it seems that scala compilation is broken by default in forge for 1.5.x

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.