Unable to save my work

(The text at the top translates to “Save sketch at…” .)

Hello I´m new to processing. For some reason every time I try to save my work I get a black window. I switched from Windows 11 to Linux Fedora KDE. Processing was working fine on windows but for some reason I got this problem on Linux now. I already tried reinstalling but nothing helped so far. Anyone who got any ideas?

Welcome to the forum.

Are you trying to save the sketch code with “File | Save as” menu option?

If yes then open one of the example sketches that come with Processing and try and save with a new name and see if it is something to do with your sketch.

If still a problem make sure that your sketchbook folder actual exists - you will find it in “Processing | Preferences”

Thanks for the reply. I did try exactly what you said which is the “Save as” option.

Trying an example sketch didn´t change anything sadly and the folder does exist so the problem must lie somewhere else.

Sorry not sure what to suggest but your message was ambiguous

You say it was working on Windows but the problem is on Linux now, which suggests that the problem existed on Windows contradicting the first part. :thinking:

I am sure that someone will be able to advise you more but it needs to be clear where Processing works and where it doesn’t. To me it sounds like the problem is Linux <> Processing related but I have never used Linux so unable to help further.

Hi @Felky,

This looks like the same problem described here:

https://github.com/processing/processing4/issues/1147

A quick workaround is to edit your preferences.txt

  1. Open Processing → Preferences
  2. At the bottom of the window, click the link to open your preferences.txt file (location varies by OS)
  3. Add this line:
chooser.files.native=false
  1. Save the file and restart Processing

After that, the Save/Open dialog should work normally. Let us know if this fixes it for you.

Longer term, this is being tracked in the GitHub issue above, so feel free to follow updates there or post additional information there to help us fix it for good.

Raphaël

3 Likes

Thank you very much this really solved the problem ^^

1 Like

I´m sorry I should have went more into detail.
I was running Processing on windows first and everything worked. After a while I switched to Linux on the Pc completely (No dual boot or something. A complete factory reset only). When I downloaded Processing on Linux the problem showed up.
Maybe it would have been better to just not name the Windows part afteral. Sorry I wrote a bit confusing.
Luckily the problem was solved now thanks to Raphaël

2 Likes