Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error reporting hangs in a big projects #577

Open
istocniks opened this issue Apr 8, 2015 · 12 comments
Open

Syntax error reporting hangs in a big projects #577

istocniks opened this issue Apr 8, 2015 · 12 comments

Comments

@istocniks
Copy link

I have a big Erlang project opened in IDEA 14.1.1 (~1000 erl modules, 500k lines of code), Erlang 0.5.11.
Sometimes syntax errors highlighting hangs and I need to wait for quite some time for errors to disappear. Usually it's related to number of function arguments. Pictures will better explain my issue:

screen shot 2015-04-07 at 4 43 22 pm
screen shot 2015-04-07 at 4 44 25 pm

Here you can see that function check_contact/4 is defined, but error shows that it's not.
The error I showed above is there for at least 20 minutes already and my laptop cooler spins like crazy.

@istocniks istocniks changed the title Syntax error reporting hangs with big projects Syntax error reporting hangs in a big projects Apr 8, 2015
@deadok22
Copy link
Collaborator

deadok22 commented Apr 8, 2015

Please, share a CPU profiling snapshot for this problem as well (https://intellij-support.jetbrains.com/entries/29983118-Reporting-performance-problems)

@istocniks
Copy link
Author

Here we go: http://cl.ly/3f05291Q1n26
I didn't wait for error to go away

@istocniks
Copy link
Author

Probably related issue, that's what I see in my IDE for about an hour already
screen shot 2015-04-08 at 2 58 44 pm

@Andy-Richards
Copy link

+1

I see this also, in a reasonable sized project the syntax error reporting is too slow to be useful to the point where you need to need to pause and wait for the IDE to catch up :-(

@deadok22
Copy link
Collaborator

@istocniks, thank you for sharing your snapshot - it helped a lot.

Please try out the latest build and let me know if it got better. And also attach a performance snapshot, if it's still slow.

The latest build is available here: https://github.com/ignatov/intellij-erlang/releases/

@istocniks
Copy link
Author

@deadok22 thanks, it seems like it's much faster now, but I can still see some stuck errors sometimes, they clear after a ~5-60 seconds though

@deadok22
Copy link
Collaborator

deadok22 commented May 6, 2015

Please, share a new snapshot so that we can see what is to be optimized.
On May 6, 2015 6:51 AM, "istocniks" notifications@github.com wrote:

@deadok22 https://github.com/deadok22 thanks, it seems like it's much
faster now, but I can still see some stuck errors sometimes, they clear
after a ~5-60 seconds though


Reply to this email directly or view it on GitHub
#577 (comment)
.

@istocniks
Copy link
Author

Here it is, an error was stuck for ~20 secs
http://cl.ly/1j242T2e1n1m

deadok22 added a commit that referenced this issue Jun 7, 2015
don't search through all files in ebin when application name is known
@deadok22
Copy link
Collaborator

deadok22 commented Jun 7, 2015

@istocniks would you check if it's better now? Share a new snapshot, please.

@deadok22
Copy link
Collaborator

ping

@istocniks
Copy link
Author

I did upload a new snapshot the next day you asked for it here #610 :)

@deadok22
Copy link
Collaborator

Oh, it is there. I'm sorry then =)

I was browsing through commits to figure what's to be included in release notes, and there were commits referencing this issue, which is still open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants