Johannes4Linux
Hi,
 
I use OpenPLC for a lecture on PLC programming. The project is great, thanks for the good work here.
 
But an error occurred on some student's machines and I want to report it.
 
When trying to generate the .st file for the PLC program in the OpenPLC Editor by clicking on the arrow instead of the dialog to pick a filename and set a file location, some students got the error <class 'PermissionError'> : PermissionError(13, 'Permission denied'') in /editor/BeremizIDE.py, line 836, function: OnMenu. For more details see the image attached.
 
The students uses Debian 12 installed in Virtual Box some with a GNOME, some with an XFCE Desktop Enviroment. As the installer for the Editor was not working with Debian 12 3 weeks ago when I tried it, I gave my students a patched installer script which you can also find in the attachments.
 
The error occurs on at least two GNOME Debian 12 boxes and on at least one XFCE box. I can't reproduce it on my machine. Do you have any clue what could cause this error?
 
Best regards,
Johannes
permission_error.jpg
Reply 0 0
thiagoralves
Hi Johannes,
 
Please share the actual bug report file as it contains more information that can help me find the issue.
Reply 0 0
Johannes4Linux
attached you can find the log file.
 
But I think, I found a clue while looking at the log file. It seems it wants to build the program for Arduino platform, but I need it for Linux SoftPLC.
 
How can I tell the program the target?
 
Thanks and best regards,
Johannes
Reply 0 0
thiagoralves
It seems that the editor is being blocked to access the debug.c file. Although it lives inside the Arduino runtime folder, this file is required for both the Arduino and Linux runtimes. Check your file permissions and make sure that the Editor can access the folder where the debug.c file is.
Reply 0 0
Johannes4Linux
Ok, the file debug.c was missing. After copying it over from a sucessful install, generating the program worked just fine. Just a little bit odd, the installer skipped that file.
Reply 0 0
thiagoralves
This file is automatically generated every time you compile a new program. Most likely something blocked the creation of the file, which triggered the error
Reply 0 0
Write a reply...
Reply