Skip to content

Compiling Rascal crashes by exceeding max command length #41

Description

@toinehartman

When trying to compile Rascal (library + compiler modules) on 8ee1760, it crashed with the following error:

[ERROR] Failed to execute goal org.rascalmpl:rascal-maven-plugin:0.30.0-RC29:compile (default-compile) on project rascal: error launching org.rascalmpl.shell.RascalCompile: Cannot run program "C:\Program Files\Eclipse Adoptium\jdk-11.0.27.6-hotspot\bin\java": CreateProcess error=206, The filename or extension is too long
15:22

This is caused by the fact that we pass the paths for all modules to compile on the command line, and consequentially run into Windows's max command length of 32KB (source h/t/ @DavyLandman).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions