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

User feedback regarding performance #857

Open
akaroml opened this issue Mar 25, 2019 · 12 comments
Open

User feedback regarding performance #857

akaroml opened this issue Mar 25, 2019 · 12 comments

Comments

@akaroml
Copy link
Contributor

akaroml commented Mar 25, 2019

A user left some comments for Java Extension Pack and it's regarding language server performance.
Screen Shot 2019-03-25 at 8 30 55 AM

There are two aspects to this problem:

  1. The long lag for language server to load bigger projects (~8500 files in this case)
  2. Progress update was not effective and the user gets the "stops responding" impression

While @yaohaizh is pushing for 1, @testforstephen could you please help revisit 2?

Here's the source of the comments:
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack&ssr=false#review-details

@kelvinwop
Copy link

I feel like adding a short sleep every once in awhile would greatly help the "vscode has stopped responding" part. I mean the computation part is inevitable, but stopping once in awhile to check for user input would do wonders for responsiveness. Not sure how easy or hard that would be to implement though (or depending on design of code whether or not that would even help lol, just an idea).

@kelvinwop
Copy link

image
some pics for effect

@yaohaizh
Copy link
Collaborator

@kelvinwop Could you attach your log information here. See how to get log information: https://github.com/redhat-developer/vscode-java/wiki/Troubleshooting#enable-logging

@kelvinwop
Copy link

Aha, you're in luck! It just froze:
https://paste.ofcode.org/FzBfetrNzCFfPqyktjT3eK

@yaohaizh
Copy link
Collaborator

@kelvinwop Could you help disable other java extension(Debugger for Java, Maven for Java, Java Dependency Viewer, Java Test Runner), leave only the Language Support for Java(TM) by redhat, and try it to see whether the perf issue hits?

@snjeza
Copy link
Contributor

snjeza commented Mar 25, 2019

@kelvinwop
Copy link

kelvinwop commented Mar 25, 2019

Will do,

Extra info: when I get this notification:
image

there is no lag ever but all the "find references/control click trace/etc" break beyond all hell (eg. send you to the wrong file, interpret stuff wrong, send you to the wrong methods, etc etc)

@akaroml
Copy link
Contributor Author

akaroml commented Mar 26, 2019

Related issues - eclipse/eclipse.jdt.ls#824, Microsoft/vscode-java-pack#81

Here's more on microsoft/vscode-java-pack#81. It turns out to be a vscode issue. We observed lots of such issues recently and got no luck in all the investigations. And after some time, other extension authors started to receive similar issues, and then we started to suspect it was a vscode issue. @Eskibear has more info and will update that issue. It will be closed soon.

@kelvinwop
Copy link

Some more info: after disabling the other extensions, I got the Classpath is incomplete error on every file. After enabling it again, the lag went away and the Find By References broke. In any case, I've moved to android studio for the android sdk support. Thanks!

@yaohaizh
Copy link
Collaborator

yaohaizh commented Mar 27, 2019

@kelvinwop So you open Android project in VSCode? If this is the case, VSCode Java has not support Android yet. See the related issue: #396

@kelvinwop
Copy link

Yeah I realized that pretty quick, but funnily, vscode's file search/function tracing is better than intelliJ/android studio, despite having pages upon pages of errors. Anyways I finished most of the tracing work so I'm now moving between IDEs depending on what I'm doing

@apupier
Copy link
Member

apupier commented Mar 26, 2021

in 2019:

It will be closed soon.

@akashshinde @Eskibear any update on this issue?

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

No branches or pull requests

6 participants