mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
* fix(cli): support sketches with custom main file names Previously, the CLI only accepted sketches where the main .pde file matched the sketch folder name (e.g., sketch/sketch.pde). This caused issues when users renamed their main file in the IDE, which stores the custom filename in sketch.properties. Now the CLI checks sketch.properties for a 'main' property before falling back to the default naming convention, matching the IDE's behavior implemented in Sketch.findMain(). Fixes #1219 * test: add CLI test for custom main file support Added testSketchWithCustomMainFile() to CLITest.kt as requested by maintainer. This test provides a placeholder for manual testing of sketches with custom main files specified in sketch.properties. Follows the same pattern as existing CLI tests (testLSP, testLegacyCLI) and is intended to be run manually in IntelliJ IDEA. * test: convert to automated CLI test with temp directory Converted testSketchWithCustomMainFile() from manual to automated test. Now creates a temporary sketch folder with custom main file and sketch.properties, then tests the CLI build command. Follows the pattern from SchemaTest.kt using Files.createTempDirectory() and automatic cleanup.
Processing Java Mode
This the Java Mode in Processing. It compiles your sketches and runs them. It is the primary mode of Processing.
Folders
applicationassets for exporting applications within the modegeneratedgenerated antlr code for the mode, should be moved to a properantlrplugin within gradlelibrarieslibraries that are available within the modelspgradle build system for the language server protocol, in the future we should decouple the lsp from the java mode and pde and move all relevant code here. For now it can be found insrc/.../lspmodelegacy files forAntpreprocessorthe preprocessor for the mode, same deal as with the lsp, although the decoupling has mostly been donesrcthe main source code for the modetesttests for the modethemeassets for the mode, related to autocomplete and syntax highlighting
Future plans
- Decouple the
lspandpreprocessorfrom the mode and move them to their own repositories - Move the
antlrcode to a proper plugin within gradle - Create a gradle plugin to convert
.pdefile to.javafiles - Create a gradle based version of Java mode.