SCALA-IDE: Eclipse highlight matching variables / mark occurrences extremely slow - eclipse

I just installed the SCALA-IDE plugin and the highlighting in it is excruciatingly slow (circa 1 minute on a 1k-line file) rendering it useless. Meanwhile, the same Eclipse session with the PyDev plugin still works within about a second on very large files.
I was wondering if there was a way to speed it up?

Related

How to prevent rascal_builder from running on every save in Eclipse IDE

I've been working on a Rascal project in Eclipse 2018. The project is roughly 500 LOC. My problem is that saving a file within the project takes about 20 to 40 seconds. This is due to rascal_builder running after every save.
Since I am accustomed to saving many times during editing, this is starting to reduce my productivity. Is there a way to stop rascal_builder from being invoked every save and have it run only when actual execution of the program is requested? I am not interested in conserving the syntactic annotations for e.g. wrong declarations, missing quotes etc.
Yes, in the configuration part of eclipse, CMD+, on Mac, go to the Rascal section and disable the experimental compiler flag.

editor which performs well searching text through a huge codebase

I have a huge text codebase on Windows and I am facing the problem of searching arbitrary words across the whole project.
Seemingly, no IDE scores good performances when doing so. What I am looking for is a free editor that:
searches full text through the folder and subfolder in an acceptable time (ideally less than 10 seconds for 10M lines of code).
Almost surely, the previous feature entails in using an index. So I'd like such index to be automatically in sync with file changes. Or at least to have the option to rebuild it on demand incrementally (not a full rebuild)
shows the search results in context (with snippets of the surroundng code around, pretty much like Sublime does).
ideally, be able to search for regex patterns
...and even, to search for regex through multiline strings.
I do not need it to be code-aware, but if it were able to understand PL/SQL it would be my dream editor.
So far my first choice was Sublime, which is an incredibly responsive editor.
Sublime 3 shipped with an internal index, but unfortunately for me, indexes just the symbols, not the full text.
The built-in brute force search cannot use that index and takes around 40 mins to return the results.
I tried several Sublime extensions which plug into external indexing tools (CodeSearch, Platinum Searcher, Whoosh). But all failed to provide automated or incremental index rebuild, or when they did offer those features, the indexing itself took so much memory that the entire app became unresponsive forever, or the plugin host broke down.
I also tried similar approaches with Atom and Visual Studio Code, but I believe that the editors and their plugins weren't written for such an insanely large codebase as I have at hands.
The only editor that performed well was Eclipse with the InstaSearch plugin.
However the speed that I gain in the search is lost in ordinary usage: opening a file, scrolling through its content, etc (not to mention that the plugin uses Lucene's syntax, not regex).
(It feels like if one is not using Java related technologies, there is no real benefit in using Eclipse which really offsets the heaviness of operating with it)

[java][eclipse] UI becomes unresponsive

I'm a seasoned software engineer and have used eclipse for well over 10 years. In the last week, Eclipse has decided to rebel against me. I'm dumbfounded.
Problem: I'm getting periods of very long UI unresponsiveness - on the order of 3 to 10 seconds. Generally, I'll be typing when the UI just stops writing text. It can vary from displaying spinning circle to not rendering anything in the window. Workspace building also slows down significantly.
I'm pulling my hair out trying to get tasks done! Any help appreciated.
Details:
It appears to start 10 minutes or more after starting eclipse. If I restart, it'll be ok for a few minutes.
This can happen in during any text entry. Though it's especially bad on code completion cases (i.e. "dot, cmd+space). Eclipse can also become unresponsive during anything else (moving the cursor, changing tabs, scrolling, etc).
CPU is not maxed out, though it appears CPU is pretty consistently at or over 50% - so maybe eclipse as pegged one thread/core?
Things I've Tried:
Updated from Neon.3 to Oyxgen.2. Deleted all projects from workspace and reimported. Upgraded memory in ini to -Xms512m -Xmx4000m -XX:PermSize=256m
-XX:MaxPermSize=512m. Deleted some metadata from a eclipse resource dir (don't recall which). Updated Java. No change. Haven't tried uninstalling all eclipse and reinstalling yet.
Setup:
Windows 10 Home (up-to-date), 12GB RAM, 64 bit, Oxygen.2 (4.7.2)
How large is your project? Do you build using Eclipse, or do you build externally?
If you notice a progress bar in the lower right side of the GUI during these periods of unresponsiveness, it's likely Eclipse's Build Automatically feature causing your issue. If so, it can be disabled under Project -> Build Automatically.

How many projects/folders/files can eclipse (the editor) safely handle?

I am always the first one to jump on any latest Eclipse release thinking that it would solve some of the issue that i have with slowness but i am always disappointed. The DLTK thing that keeps running, memory heap issues, internal error occurred ....
The latest version that I have tried is KEPLER
I know that I can close the projects that i am not using, disable validation, remove projects from the build path, hack into their myriad of codes and change settings but really?
I have to admit my workspace has only 5 projects but more than TWO HUNDRED heavy duty folders. within those folders you have for example, Drupal, Wordpress and so on..
I have used visual studio for years with 5 times as much projects without this kind of slowness but that is besides the point. Let's go back to eclipse.
looking at my settings, some people might say: why don't you create a projects for each of those folders? I tried that but the DLTK indexer keeps on indexing every projects in my workspace unless i close them. WOW!!! Create multiple workspace is out of the questions, if i have to do that i will just ignore Eclipse all together.
My hardware is decent and I have SSD Drive and plenty of RAMs.
What is the largest amount of projects or files can Eclipse safely handle? What about the DLTK what are its limitations?
How large is too large?
What doesn't visual studio seem to suffer from the same slowness? Is the problem java related or with the data structure? Can Eclipse handle that amount of projects?
I know that there are a lot of moving parts and answering these questions is not black and white but why is this thing indexing even the stuffs that i am not using?
I would like to get some opinions on how to use this editor effectively?
While the number of projects/files is not exactly "limited" (beside the resources of the host machine), the number of open editors is.
Eclipse 2019-09 proposes by default 99.
Close editors automatically when reaching 99 open editors
The preference to close editors automatically is now enabled by default.
It will be triggered when you have opened 99 files.
If you continue to open editors, old editors will be closed to protect you from performance problems.
You can modify this setting in the Preferences dialog via the General > Editors > Close editors automatically preference.
IDEs are slow by nature because they do a lot.
I would never use eclipse for webdev stuff like wordpress.
You should be leaving your library files outside of your main project as external folders so that eclipse discounts them. That way you can just have the files you need in your workspace.
Also, try closing the projects you aren't working on by right clicking and choosing "close project"
Personally I use vim and FTP to handle this stuff. Eclipse is nice and integrated but very chunky.

Freezing Eclipse

I use Eclipse for programming in PHP and Java(Android) and sometimes Python, unfortunately Eclipse is nowadays much more often freezing.
Often when I write this bracket "[" for defining an array in PHP, Eclipse just freeze and I have to close it manualy and start again.
I've noted also, that Eclipse is consuming really much of my RAM... 200-300MiB of my available memory is nothing special. :-(
Is there any way to check, what is consuming the memory in Eclipse and why it's freezing?
I'm running on Windows Vista, 3GB RAM.
Start eclipse with -consolelog option.
Start by looking at the error log. Under Windows → Show View → Other → Error Log. See if you can find any errors.
Another option is to try starting with a new Workspace (File → Switch Workspace). You can easily import your existing projects and see if the problem persists.
I would also recommend upgrading to PDT 2.2, which is part of the upcoming Helios release (Eclipse 3.6).
First thing, make sure that you have the latest version of Eclipse. Second, you can turn off things like automatic building, reporting problems as you type, content assist, and you can turn off the "Link with Editor" on the outline view to boost performance. The drawbacks, of course, are that you won't have those features.
As your code grows, with these features turned on, your performance decreases.
The memory range that you report can be normal, depending on the size of your code. However, the memory shouldn't continue to grow if you're not adding to the code.
I haven't witnessed any memory leaks in the latest version of Eclipse.
I was experiencing long delays with Eclipse on a large PHP project before I upgraded to a dual core processor.