Skip to content

Sketch won’t run when main .pde file name differs from sketch folder name #46

@aidanwyber

Description

@aidanwyber

This happens regardless of the main=MAINFILENAME.pde line in sketch.properties.

Console output

[16:05:24] Command line edition for Processing 4.4.10 (Java Mode)

--help               Show this help text. Congratulations.

--sketch=<name>      Specify the sketch folder (required)
--output=<name>      Specify the output folder (optional and
                     cannot be the same as the sketch folder.)

--force              The sketch will not build if the output
                     folder already exists, because the contents
                     will be replaced. This option erases the
                     folder first. Use with extreme caution!

--build              Preprocess and compile a sketch into .class files.
--run                Preprocess, compile, and run a sketch.
--present            Preprocess, compile, and run a sketch in presentation mode.

--export             Export an application.
--variant            Specify the platform and architecture (Export only).
--no-java            Do not embed Java.

Starting with 4.0, the --platform option has been removed
because of the variety of platforms and architectures now available.
Use the --variant option instead, for instance:

variant        platform
[16:05:24] -------------  ---------------------------
[16:05:24] macos-x86_64
[16:05:24]    macOS (Intel 64-bit)
  macOS (Apple Silicon)
  Windows (Intel 64-bit)
[16:05:24] macos-aarch64windows-amd64linux-amd64linux-armlinux-aarch64
[16:05:24]     Linux (Intel 64-bit)
      Linux (Raspberry Pi 32-bit)
  Linux (Raspberry Pi 64-bit)
[16:05:24] 
The --build, --run, --present, or --export must be the final parameter
passed to Processing. Arguments passed following one of those four will
be passed through to the sketch itself, and therefore available to the
sketch via the 'args' field. To pass options understood by PApplet.main(),
write a custom main() method so that the preprocessor does not add one.
https://github.com/processing/processing/wiki/Command-Line

Not a valid sketch folder. [THE PATH] does not exist.
[16:05:24] Process exited with code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions