Skip to content

Commit 7f2f2b6

Browse files
committed
Merge branch 'main' into runner
2 parents 1c8581e + bf34ade commit 7f2f2b6

File tree

11 files changed

+165
-67
lines changed

11 files changed

+165
-67
lines changed

.all-contributorsrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,6 +1512,24 @@
15121512
"contributions": [
15131513
"doc"
15141514
]
1515+
},
1516+
{
1517+
"login": "marioguzzzman",
1518+
"name": "Mario Guzman",
1519+
"avatar_url": "https://avatars.githubusercontent.com/u/7597610?v=4",
1520+
"profile": "http://www.mario-guzman.com",
1521+
"contributions": [
1522+
"doc"
1523+
]
1524+
},
1525+
{
1526+
"login": "thisizaro",
1527+
"name": "Aranya Dutta",
1528+
"avatar_url": "https://avatars.githubusercontent.com/u/98299268?v=4",
1529+
"profile": "https://github.com/thisizaro",
1530+
"contributions": [
1531+
"code"
1532+
]
15151533
}
15161534
],
15171535
"repoType": "github",

.github/ISSUE_TEMPLATE/1_bug_report.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ description: Report broken or incorrect behavior in Processing 4. (For help with
33
labels: [bug]
44
body:
55

6+
67
- type: dropdown
78
id: sub-area
89
attributes:
910
label: Most appropriate sub-area of Processing 4?
1011
description: You may select more than one.
1112
multiple: true
1213
options:
14+
- I'm not sure
1315
- Accessibility
1416
- Core/Environment/Rendering
1517
- PDE
@@ -33,7 +35,7 @@ body:
3335
- type: input
3436
attributes:
3537
label: Processing version
36-
description: Go to "Help > About Processing" and look in the bottom-right corner for the version number. It also appears in the title bar of every editor window.
38+
description: Go to "Help > About Processing" and look in the bottom-right corner for the version number.
3739
validations:
3840
required: true
3941

@@ -44,6 +46,15 @@ body:
4446
validations:
4547
required: true
4648

49+
- type: textarea
50+
attributes:
51+
label: Bug description
52+
description: |
53+
Describe the bug in detail. Include what you expected to happen and what actually happened.
54+
If applicable, include any error messages you received.
55+
validations:
56+
required: true
57+
4758
- type: textarea
4859
attributes:
4960
label: Steps to reproduce this
@@ -80,14 +91,24 @@ body:
8091
- type: textarea
8192
attributes:
8293
label: Additional context
83-
description: Add any other context about the problem here.
94+
description: Provide any other information, links, or screenshots that could help illustrate the bug.
8495
validations:
8596
required: false
8697

87-
- type: input
98+
- type: dropdown
8899
attributes:
89100
label: Would you like to work on the issue?
90101
description: |
91-
Please let us know if you can work on this or if the issue should be assigned to someone else.
102+
If not, that’s okay too. Your report is appreciated.
103+
options:
104+
- No, I’m just reporting the issue
105+
- Yes, I’d like to help with this
106+
- I’m not sure yet
92107
validations:
93-
required: true
108+
required: true
109+
110+
- type: markdown
111+
attributes:
112+
value: |
113+
> [!NOTE]
114+
> Processing is a community-driven, open-source project. If you have time and interest to help, your contribution would be greatly appreciated! See the [contribution guide](https://github.com/processing/processing4/blob/main/CONTRIBUTING.md) to learn more. And if you need some guidance or support, we're happy to help you get started.

.github/ISSUE_TEMPLATE/2_enhancement.yml

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@ description: Suggest an improvement for an existing feature of Processing.
33
labels: [enhancement]
44
body:
55

6+
- type: markdown
7+
attributes:
8+
value: |
9+
> [!TIP]
10+
> If you have an idea for something Processing doesn’t yet support, **creating a library** is often the best way to contribute. Read more about creating a library [here](https://github.com/processing/processing4/blob/main/CONTRIBUTING.md#adding-new-features-to-processing).
11+
612
- type: dropdown
713
id: feature-area
814
attributes:
915
label: Most relevant area for this enhancement?
1016
description: Choose the most relevant area for the proposed feature or improvement.
1117
multiple: true
1218
options:
19+
- I'm not sure
1320
- Accessibility
1421
- Core/Environment/Rendering
1522
- PDE
@@ -39,36 +46,38 @@ body:
3946

4047
- type: textarea
4148
attributes:
42-
label: Desired enhancement
43-
description: Describe the improvement you’d like to see with that existing feature
49+
label: Enhancement details
50+
description: |
51+
Describe the improvement you’d like to see for this existing feature.
52+
value: |
53+
#### Enhancement description
54+
Describe the enhancement in detail. Include how it should work and its intended impact.
55+
56+
#### Benefits
57+
Outline how this enhancement would benefit users or improve Processing.
58+
59+
#### Challenges
60+
Discuss any possible challenges or considerations in implementing this enhancement.
61+
62+
#### Additional context
63+
Provide any additional context or screenshots that may help clarify the enhancement.
4464
validations:
4565
required: true
4666

47-
- type: textarea
48-
attributes:
49-
label: Potential benefits
50-
description: Explain how this enhancement could benefit users or improve Processing.
51-
validations:
52-
required: false
53-
54-
- type: textarea
55-
attributes:
56-
label: Possible drawbacks
57-
description: Consider any possible drawbacks or challenges related to the implementation of this enhancement.
58-
validations:
59-
required: false
60-
61-
- type: textarea
67+
- type: dropdown
6268
attributes:
63-
label: Additional context
64-
description: Add any other context or screenshots about the feature request here.
69+
label: Would you like to help implement this enhancement?
70+
description: |
71+
If not, that’s okay too. Your suggestion is appreciated.
72+
options:
73+
- No, I’m just suggesting the enhancement
74+
- Yes, I’d like to help with this
75+
- I’m not sure yet
6576
validations:
66-
required: false
77+
required: true
6778

68-
- type: input
79+
- type: markdown
6980
attributes:
70-
label: Would you like to work on the issue?
71-
description: |
72-
Please let us know if you can work on this or if the issue should be assigned to someone else.
73-
validations:
74-
required: true
81+
value: |
82+
> [!NOTE]
83+
> Processing is a community-driven, open-source project. If you have time and interest to help, your contribution would be greatly appreciated! See the [contribution guide](https://github.com/processing/processing4/blob/main/CONTRIBUTING.md) to learn more. And if you need some guidance or support, we're happy to help you get started.

.github/ISSUE_TEMPLATE/3_feature-request.yml

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@ description: Request adding a new feature to Processing
33
labels: [new feature]
44
body:
55

6+
- type: markdown
7+
attributes:
8+
value: |
9+
> [!TIP]
10+
> If you have an idea for something Processing doesn’t yet support, **creating a library** is often the best way to contribute. Read more about creating a library [here](https://github.com/processing/processing4/blob/main/CONTRIBUTING.md#adding-new-features-to-processing).
11+
612
- type: dropdown
713
id: feature-area
814
attributes:
915
label: Relevant sub-area for this feature?
1016
description: Choose the sub-area most relevant to your feature request.
1117
multiple: true
1218
options:
19+
- I'm not sure
1320
- Accessibility
1421
- Core/Environment/Rendering
1522
- PDE
@@ -31,42 +38,40 @@ body:
3138
required: true
3239

3340
- type: textarea
34-
id: feature-description
41+
id: feature-details
3542
attributes:
36-
label: Feature description
37-
description: Describe the feature in detail. Include how it should work and its intended impact.
38-
validations:
39-
required: true
43+
label: Feature details
44+
description: |
45+
Describe the feature you’d like to see added to Processing.
46+
value: |
47+
#### Feature description
48+
Describe the feature in detail. Include how it should work and its intended impact.
4049
41-
- type: textarea
42-
id: benefits
43-
attributes:
44-
label: Benefits
45-
description: Outline how this feature would benefit users or improve Processing.
46-
validations:
47-
required: true
50+
#### Benefits
51+
Outline how this feature would benefit users or improve Processing.
4852
49-
- type: textarea
50-
id: challenges
51-
attributes:
52-
label: Possible challenges
53-
description: Discuss any possible challenges or considerations in implementing this feature.
54-
validations:
55-
required: false
53+
#### Challenges
54+
Discuss any possible challenges or considerations in implementing this feature.
5655
57-
- type: textarea
58-
id: additional-context
59-
attributes:
60-
label: Additional context
61-
description: Provide any other information, links, or screenshots that could help illustrate the feature.
56+
#### Additional context
57+
Provide any other information, links, or screenshots that could help illustrate the feature.
6258
validations:
63-
required: false
64-
59+
required: true
6560

66-
- type: input
61+
- type: dropdown
6762
attributes:
68-
label: Would you like to work on the issue?
63+
label: Would you like to help implement this feature?
6964
description: |
70-
Please let us know if you can work on this or if the issue should be assigned to someone else.
65+
If not, that’s okay too. Your suggestion is appreciated.
66+
options:
67+
- No, I’m just suggesting the feature
68+
- Yes, I’d like to help with this
69+
- I’m not sure yet
7170
validations:
72-
required: true
71+
required: true
72+
73+
- type: markdown
74+
attributes:
75+
value: |
76+
> [!NOTE]
77+
> Processing is a community-driven, open-source project. If you have time and interest to help, your contribution would be greatly appreciated! See the [contribution guide](https://github.com/processing/processing4/blob/main/CONTRIBUTING.md) to learn more. And if you need some guidance or support, we're happy to help you get started.
75.7 KB
Loading
96.4 KB
Loading

BUILD.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,39 @@ The main task to run or debug the PDE is `run`. That means you just need to run
6161
If your main concern is with the `Core` you don't need to build and start the whole PDE to test your changes. In IntelliJ IDEA you can select any of the sketches in `core/examples/src/.../` to run by click on the green arrow next to their main functions. This will just compile core and the example sketch. Feel free to create additional examples for your new functionality.
6262

6363
## Other editors
64+
65+
TBD
66+
67+
## Troubleshooting and Setup Tips (IntelliJ IDEA)
68+
69+
If you’re building Processing using IntelliJ IDEA and something’s not working, here are a few things that might help:
70+
71+
### Use the Correct JDK (temurin-17)
72+
73+
Make sure IntelliJ is using **temurin-17**, not another version. Some users have reported issues with ms-17.
74+
75+
1. Go to **File > Project Structure > Project**
76+
2. Set the **Project SDK** to: `temurin-17 java version "17.0.15"`
77+
78+
![JDK Selection](.github/media/troubleshooting-Intellij-setting-djk-version-manually.png)
79+
80+
If it is not already installed, you can download it by:
81+
1. Clicking the SDK input field and then selecting the `Download JDK...` option from the menu
82+
2. Select Version: `17`, Vendor: `Eclipse Temurin (AdoptOpenJDK HotSpot)`
83+
84+
85+
![JDK Download](.github/media/troubleshooting-Intellij-download-jdk.png)
86+
87+
Now go back to your main window and
88+
1. Click the green Run Icon in the top right of the window.
89+
90+
91+
### “Duplicate content roots detected”
92+
93+
You may see this warning in IntelliJ:
94+
95+
> `Duplicate content roots detected: '.../processing4/java/src'`
96+
97+
This happens because multiple modules reference the same source folder. It’s safe to ignore.
98+
99+

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<!-- Uncomment the shield below once the repo is made public -->
22
<!-- [![All Contributors](https://img.shields.io/github/all-contributors/processing/processing4?color=ee8449)](#contributors) -->
33

4-
> [!IMPORTANT]
5-
> Processing Foundation is excited to announce our open call for the [Processing Project Lead position](https://processingfoundation.org/employment/processing-project-lead)! This fully remote, full-time role starts on July 15, 2025. For full consideration, please submit your application by **May 15, 2025 11:59 EST**. [Apply here!](https://docs.google.com/forms/u/1/d/e/1FAIpQLSeBGWD87Yg1Prbc34c2fmwgY71rSCL4LJVO2GaF9I2eLCi83g/viewform?usp=send_form)
6-
74
<img alt="Processing Logo" src="https://processing.org/favicon.svg" width="250">
85

96
Processing is a flexible software sketchbook and a programming language designed for learning how to code.
@@ -298,6 +295,8 @@ _Note: due to GitHub's limitations, this repository's [Contributors](https://git
298295
<td align="center" valign="top" width="16.66%"><a href="https://github.com/babaissarkar"><img src="https://avatars.githubusercontent.com/u/8469888?v=4?s=120" width="120px;" alt="Subhraman Sarkar"/><br /><sub><b>Subhraman Sarkar</b></sub></a><br /><a href="https://github.com/processing/processing4/commits?author=babaissarkar" title="Code">💻</a> <a href="#a11y-babaissarkar" title="Accessibility">️️️️♿️</a></td>
299296
<td align="center" valign="top" width="16.66%"><a href="https://github.com/SushantBansal-tech"><img src="https://avatars.githubusercontent.com/u/189839531?v=4?s=120" width="120px;" alt="SushantBansal-tech"/><br /><sub><b>SushantBansal-tech</b></sub></a><br /><a href="#ideas-SushantBansal-tech" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/processing/processing4/commits?author=SushantBansal-tech" title="Code">💻</a></td>
300297
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Konsl"><img src="https://avatars.githubusercontent.com/u/82901383?v=4?s=120" width="120px;" alt="Konsl"/><br /><sub><b>Konsl</b></sub></a><br /><a href="https://github.com/processing/processing4/commits?author=Konsl" title="Documentation">📖</a></td>
298+
<td align="center" valign="top" width="16.66%"><a href="http://www.mario-guzman.com"><img src="https://avatars.githubusercontent.com/u/7597610?v=4?s=120" width="120px;" alt="Mario Guzman"/><br /><sub><b>Mario Guzman</b></sub></a><br /><a href="https://github.com/processing/processing4/commits?author=marioguzzzman" title="Documentation">📖</a></td>
299+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/thisizaro"><img src="https://avatars.githubusercontent.com/u/98299268?v=4?s=120" width="120px;" alt="Aranya Dutta"/><br /><sub><b>Aranya Dutta</b></sub></a><br /><a href="https://github.com/processing/processing4/commits?author=thisizaro" title="Code">💻</a></td>
301300
</tr>
302301
</tbody>
303302
</table>

app/build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ tasks.register("generateSnapConfiguration"){
276276
- opengl
277277
- home
278278
- removable-media
279+
- audio-playback
280+
- audio-record
281+
- pulseaudio
282+
- gpio
279283
280284
parts:
281285
processing:
@@ -287,6 +291,7 @@ tasks.register("generateSnapConfiguration"){
287291
override-prime: |
288292
snapcraftctl prime
289293
rm -vf usr/lib/jvm/java-17-openjdk-*/lib/security/cacerts
294+
chmod -R +x opt/processing/lib/app/resources/jdk
290295
""".trimIndent()
291296
dir.file("../snapcraft.yaml").asFile.writeText(content)
292297
}
@@ -361,6 +366,11 @@ tasks.register<Copy>("includeJavaMode") {
361366
tasks.register<Copy>("includeJdk") {
362367
from(Jvm.current().javaHome.absolutePath)
363368
destinationDir = composeResources("jdk").get().asFile
369+
370+
fileTree(destinationDir).files.forEach { file ->
371+
file.setWritable(true, false)
372+
file.setReadable(true, false)
373+
}
364374
}
365375
tasks.register<Copy>("includeSharedAssets"){
366376
from("../build/shared/")

app/src/processing/app/Processing.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class LSP: SuspendingCliktCommand("lsp"){
5252
// Indirect invocation since app does not depend on java mode
5353
Class.forName("processing.mode.java.lsp.PdeLanguageServer")
5454
.getMethod("main", Array<String>::class.java)
55-
.invoke(null, *arrayOf<Any>(emptyList<String>()))
55+
.invoke(null, arrayOf<String>())
5656
} catch (e: Exception) {
5757
throw InternalError("Failed to invoke main method", e)
5858
}
@@ -87,4 +87,4 @@ class LegacyCLI(val args: Array<String>): SuspendingCliktCommand( "cli"){
8787
throw InternalError("Failed to invoke main method", e)
8888
}
8989
}
90-
}
90+
}

0 commit comments

Comments
 (0)