Skip to content

The VSCode launch.json generated by ModDevGradle is incorrect. #339

@miss-programgamer

Description

@miss-programgamer

The VM args in all launch configurations try to pass bin/main as the mod folder, but that directory doesn't exist, as it doesn't get generated. It's also not what gets passed to the VM in any of the "run" tasks, nor the launch configs in IDEA. In fact, copying the mod folder arguments from the IDEA launch configs make the VSCode ones work. Only problem is, the launch.json file gets regenerated every time I change my gradle files/properties, so that's not a permanent solution.

// .vscode/launch.json
"vmArgs": [
  "@C:\\Users\\Mireille\\Source\\Minecraft\\MBA\\build\\moddev\\clientRunVmArgs.txt",
  // This is wrong:
  "-Dfml.modFolders\u003dmba%%C:\\Users\\Mireille\\Source\\Minecraft\\MBA\\bin\\main"
],
<!-- .idea/workspace.xml -->
<option
  name="VM_PARAMETERS"
  value="@C:\\Users\\Mireille\\Source\\Minecraft\\MBA\\build\\moddev\\clientRunVmArgs.txt -Dfml.modFolders=mba%%C:\\Users\\Mireille\\Source\\Minecraft\\MBA\\build\\classes\\java\\main;mba%%C:\\Users\\Mireille\\Source\\Minecraft\\MBA\\build\\resources\\main"
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions