I have just updated the IDE to vn 2.0.0 from rc8/9 It still has the problem that it takes at least a coffee break to load.
The log file shows a long delay at this point:
</>
2022-09-14 21:41:04 root WARN Possible Emitter memory leak detected. 352 listeners added. Use event.maxListeners to increase the limit (175). MOST frequent listener (174):
2022-09-14 21:41:04 root WARN at m._event._event.Object.assign.maxListeners [as onPreferencesChanged] (file:///tmp/.mount_arduin4HdynB/resources/app/lib/bundle.js:2:2315307)
at Proxy.p (file:///tmp/.mount_arduin4HdynB/resources/app/lib/bundle.js:2:1996884)
at n.init (file:///tmp/.mount_arduin4HdynB/resources/app/lib/bundle.js:2:2212970)
at n.init (file:///tmp/.mount_arduin4HdynB/resources/app/lib/bundle.js:2:2139813)
at n.init (file:///tmp/.mount_arduin4HdynB/resources/app/lib/bundle.js:2:2585053)
at file:///tmp/.mount_arduin4HdynB/resources/app/lib/bundle.js:2:8471726
at Object.t.resolveInstance (file:///tmp/.mount_arduin4HdynB/resources/app/lib/bundle.js:2:8471798)
at file:///tmp/.mount_arduin4HdynB/resources/app/lib/bundle.js:2:8473486
2022-09-14 21:41:05 root INFO <<< The layout has been successfully restored.
2022-09-14 21:46:40 root INFO [5f825bc0-6e92-43c1-af89-3eb6b1a856dc][ms-ceintl.vscode-language-pack-zh-hans]: Disconnected.
2022-09-14 21:46:40 root INFO [5f825bc0-6e92-43c1-af89-3eb6b1a856dc][ms-ceintl.vscode-language-pack-tr]: Disconnected.
2022-09-14 21:46:40 root INFO isTemp?
</>
Notice it goes from 21:41 to 21:46 at the point shown. Any ideas why, and what i can do about it to make it useful. The sketch that it is loading in a MArlin sketch with many files.
Hi @peterm7. Please provide a detailed description of what you mean by "load". Do you mean you are opening the Marlin sketch in the Arduino via File > Open. Or do you mean the sketch is being loaded on Arduino IDE startup due to being open previously during the last IDE session. Or do you mean that you are uploading the Marlin sketch to your board?
Does it only occur with the Marlin sketch, or do you also experience slow loading times with other sketches?
The problem occurred with the Appimage. From clicking the appimage until it had loaded and shown the marlin sketch was the problem. The major delay shown occurred before the sketch started to load.
I installed arduino using synaptic, and it starts up and loads the sketch in a matter of seconds, so I guess the problem is how the Appimage works in the system.
I am willing to close this problem, but if someone else wants to duplicate and resolve the problem, that's ok.
Thanks for taking the time to post an update. I'm glad you were able to find a solution. If you or anyone else runs into the problem, let us know and we'll investigate further.
I thought that I had it sorted after a period of enjoying the sunshine, But I discovered that I was using a very old IDE as loaded with Synaptic, so I deleted that and downloaded latest nightly build of Appimage. It worked quite quickly until I deleted all the hidden files/folders named .ardu***
Now it takes forever to load again, and two of these .ardu*** folders have been recreated. [.arduino15 and .arduinoIDE]
Also it loads with the marlin1.1 files and there are a lot of them. I can't figure out how to get it to load a blank sketch. I would like to have a benchmark.
That is what I had tried to do but it didn't work. What I did do was open a second sketch of an old simple sketch, then close the big bad Marlin sketch.
I edited my simple sketch and saved it, then closed all windows.
Now when I started the Arduino IDE it came up very quickly with the simple sketch.
So this shows that it is the complicated Marlin sketch with many files that is slowing everything down so badly.
Please tell me where I can get the version of Marlin you are using so I can investigate this. I just tried the latest 2.1.1 Other than the compilation and upload taking some time (which would be the case even if I was using the GCC compiler and AVRDUDE directly with any such huge complex program). I didn't notice any problems with it slowing down the IDE:
Do you have the problem when using that version of Marlin?
I got rid of a bunch of files for different languages and also for different board pinouts and it loaded faster. There are still 189 files in the marlin folder.
I'll Try the version that you suggest shortly.
Thanks for your help.
Peter
The 2.1.1 Marlin loaded in a matter of seconds. This is after opening the IDE with my simple sketch.
And the sketch opens with only 4 files, not a huge number like the 1.1 version. Thanks for that hint.
You are welcome. It is a nice advancement the Marlin developers made.
In the modern versions of Marlin, the internal source files were moved into a subfolder of the sketch. The files left in the root are the only ones the average user has any need to access. Arduino IDE always opens all the source files from the root of the sketch, but not those in subfolders.
In case you do need to access some of the files from the subfolders, it is possible to open them in the Arduino IDE editor on demand:
Select File > Preferences... from the Arduino IDE menus.
Check the box next to "☐ Show files inside Sketches.
Click the OK button.
If it is not already, put your Marlin sketch in the Arduino sketchbook folder (if you don't know where it is, you can see the location in the IDE preferences).
Open the Marlin sketch if it is not already open.
Open the "Sketchbook" view by clicking the icon that looks like a folder in the "Activity Bar" on the left side of the Arduino IDE window.
You will now see all the folders under your sketchbook folder. Use the ❯ controls to expand the folders containing the file you want to open in the Arduino IDE editor.
Click on the name of the file you want to open in the Arduino IDE editor.
If you later want to close the tab of a file from the subfolder of the sketch you opened, you can click the X icon on its editor tab.