thiagoralves / OpenPLC_Editor

OpenPLC Editor - IDE capable of creating programs for the OpenPLC Runtime
GNU General Public License v2.0
429 stars 207 forks source link

Arduino build fail without errors #125

Closed joluxer closed 3 months ago

joluxer commented 3 months ago

Some users reported Arduino build failures without any error message in the build output window, all messages where good.

The reason was in background build process handling, which cleaned up processes, that seemed to be complete, too early, before the process terminated regularly.

Now for every process the termination code is fetched properly. Build output display is a compromise between CPU load and updating output timely. Significant slower machines might show higher CPU load on the python process of the editor while building.

thiagoralves commented 3 months ago

Merging now. I'll just increase the build update sleep to 1 second instead of 0.1 seconds to reduce the CPU load. There are too many OpenPLC users running on old / slow hardware...

joluxer commented 3 months ago

I think, something between 0.1 and 0.5 s should be sufficient even for Rapsberry Pi based laptops or Pentium-400 machines.