Robot-Will / Stino

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

Makes Sublime Text interface slow and laggy #463

Open nerdius opened 7 years ago

nerdius commented 7 years ago

I'm not sure if it's a known issue or not. I've searched for it and I can't find one, so I'm submitting my own.

When I install Stino by dropping the folder inside Packages directory, Sublime Text interface becomes slow and laggy to the point that it's almost unusable — opening and closing menus is slow, closing a tab is slow, closing a window is extremely slow. I noticed that when I install it, it also creates another Stino folder inside the Packages/User directory, so I tried to drop the main folder inside User; as a result, ~it worked and was no longer slow~ it didn't work (for details, check the Edit 1 bellow). Is it just me or is it a known issue? In README.md § Installation, it says to copy it inside Packages, not Packages/User, so I don't think I'm doing something wrong.

~I'm wondering why it's slow in one case and not in the other. What's the difference between the two directories?~

I'm using:

Edit 1: Sorry, I've made a mistake. The difference is, that in the second case, the menu loads but a lot of the items are greyed out, so it doesn't work. In the first case, it works, but it also makes the interface slow...

Edit 2: My OS is Manjaro Linux 17 (Gellivara).

jshnaidman commented 7 years ago

Exact same problem for me. I think there's a memory leak somewhere. It might be specific to Sublime Text 3

nerdius commented 7 years ago

@Jshn245 In README.md § Requirements, it says that it requires Sublime Text 3, Build 3126, so I don't think that's the case.

mattmon commented 7 years ago

I can confirm this in Build 3126 running on Debian 9. Installing this plugin makes Sublime Text unusable and slow. Remove the plugin and problem disappears.

dexter3k commented 7 years ago

Hey, same here. Build 3126 on ArchLinux. When removing the plugin problem disappears, but Arduino submenu still appears on the top with all it's items marked as unavailable. UPD: Removing the Stino folder in Packages/User makes menu finally disappear

nerdius commented 7 years ago

Forgot to mention in the issue that my OS is Manjaro Linux 17 (Gellivara). Since two more people commented that they're having the issue on Linux, I think it could be Linux-specific.

I'll check on a Windows machine later and report the results.

nash169 commented 7 years ago

I have the same problem on macOS...

nerdius commented 7 years ago

Doesn't appear to be replicable on Windows 10.

geonicz commented 7 years ago

Same issue on Manjaro Linux(Arch derivative) uname -a: [Linux god-pc 4.11.12-1-MANJARO #1 SMP PREEMPT Fri Jul 21 08:51:46 UTC 2017 x86_64 GNU/Linux] I'm wandering: if there any way to run plugin under profiler and find out where leakage happens?

maackle commented 7 years ago

This is a bit more specific, but when do a Build and then there are lots of errors that show in the editor, ST completely freezes up, making me force quit.

kallere commented 7 years ago

I have the same issue and symptoms as previous posters on Mac OS 10.11.6 and Sublime 3.0 build 3143

nerdius commented 7 years ago

I recommend switching to Atom and PlatformIO. That's what I did and I like it a lot.

kallere commented 7 years ago

@giogziro95 Thank you for great tip - was not aware of this before and initial impression is very good.

shpiki commented 7 years ago

same here, Sublime becomes unusable completely and needs to force quit, OS is Linux Mint 18.2

thundr commented 7 years ago

Is this issue being worked on? Have the same problem on arch.

geonicz commented 7 years ago

Same lags as before on arch linux. Just cheched it again(installed from ST repo using package manager). Thought about profiling stino code & getting rid of lags but got Deviot. A bit worse exactly for arduino, but ok and works fine. Just because ST gets unusable at all with Stino. Atom is tooo heavy. So, maybe, it's better for me to migrate. Anyway, thanks to Robot-Will for a very nice plugin!

ogermer commented 6 years ago

I can confirm the lag issue with Sublime Text 3.0 Build 3143. Sometimes it works - and suddenly I get beachballed on my Mac. Is Deviot a better platform? I tend to like the Stino UI better. Any thoughts on this? And BTW: Is Stino still under active development? The number of people in this issue makes me wonder...?

nerdius commented 6 years ago

@geonicz Thanks for mentioning Deviot! I've just installed it and it's basically a lightweight version of PlatformIO. It might come in handy on low-performance machines.

rgbink commented 6 years ago

Landed here looking for solution, but will add my +1 to the issues already reported: CPU spike and unusable UI until I have to force quit.

curtiszimmerman commented 6 years ago

Build 3143, LM 18 Cinnamon (64-bit). ST3 is my daily driver for programming. Installed Stino package and it murdered the UI menu elements with enormous delays. It seems to be doing something like probing the Arduino every time I try to interact with an ST3 menu element. Uninstalled and moved on to try Deviot as suggested.

nerdius commented 6 years ago

Latest commit a94831c on Apr 17, 2017

This project doesn't seem to be under an active development.

AlexandrosFerles commented 4 years ago

Anyone find a fix on this? This problem is still active on Ubuntu 19.04

mrcarriere commented 3 years ago

Just wanted to comment that I also ran into this as well. I have a hunch that this has something to do with the serial ports. Whenever I try to view that menu, the UI would always lag (presumably while refreshing the devices) and at times when sublime would lag, I would hear my headset announcing that it was disconnecting/reconnecting to bluetooth.

This is getting to the point where I would be disabling/uninstalling this package unless I'm actively working on an Arduino project.