Robot-Will / Stino

A Sublime Text Plugin for Arduino
Other
1.58k stars 249 forks source link

Sublime text not responding #514

Open Deepanys opened 5 years ago

Deepanys commented 5 years ago

After adding stino to sublime . It became very slow and when i click on exit , not responding - force stop pop up is displayed

Deepanys commented 5 years ago

I am using kali Linux

silbermantel commented 3 years ago

this can be reproduced on fresh installations of ubuntu. after launch sublime text will be unresponsive for 20-40 seconds (depending on the machine, after that it is laggy and freezes unpredicatbly

lekimtek commented 2 years ago

Same problem happens in my machine, I'm working on kali linux x32

WolfElkan commented 2 years ago

I've found this is usually triggered by using the arrow keys the first time after opening Sublime or uploading code to the Arduino. A temporary workaround is to simply not use the arrow keys, and navigate only with the mouse. However, this is inconvenient and easy to forget, some Sublime features (e.g. parallel editing) only work with the arrow keys, and there ought to be a better way to solve this.

I believe during this "frozen" period, Stino is reuploading the code to the Arduino, since it restarts execution once the period ends. Enabling USART prevents the Arduino from restarting like this, but does not reduce the frozen period. The frozen period persists even when the device is not selected, or no device is plugged in, and even when editing files unrelated to the Arduino.

A fix for this would be greatly appreciated. Sublime is just generally slower since installing Stino. I used to use it as an all-purpose lightweight plain text editor, but it's no longer fast enough. Is it because of all the extra files for every version of Arduino? If so, perhaps it could be solved by letting users download only the files for the version they need.

I'm using macOS Mojave 10.14.6

maxbul commented 2 years ago

I'm trying to use Stino on a very old notebook with Athlon CPU and lubuntu as a replacement for Atmel Studio. Windows and A.S. are slow on it, but it works. On the same computer, Sublime Text works like a charm, and coding for Python and Processing/Java also works perfectly. But after installing Stino my Sublime Text became completely frozen forever, with a 100% load of CPU. Sometimes (once per several minutes) CPU load is decreased to 10..20% but after ani action ()like mouse movement) it jumping back to 100%. When I removed Stino plugin - Sublime Text works well as it was before. That issue presents on both S.T. 3 and 4.

alejandro-alzate commented 1 month ago

Same issue on linux mint as you can see it is a cpu bottleneck: image 25% is 100% of 1 out of 4 cores since sublime looks to be single thread: image Either this is two things

alejandro-alzate commented 1 month ago

Also i just restarted sublime and this fella popped up image Besides the fact this popped from nowhere the cpu load dropped when i clicked OK and it's running smoothly And dear god error on line seventeen thousand one hundred thirty this seems like a spicy bug to track down, i hope you luck and i hope this helps...