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

Starting JLS stuck at refreshing project... #1318

Open
OOP-778 opened this issue Mar 5, 2020 · 8 comments
Open

Starting JLS stuck at refreshing project... #1318

OOP-778 opened this issue Mar 5, 2020 · 8 comments

Comments

@OOP-778
Copy link

OOP-778 commented Mar 5, 2020

JLS hands on starting the server... It hangs on refreshing project...
https://hasteb.in/icuronux.diff - server log
https://hasteb.in/reguviha.css - java log

Environment
  • Operating System: Windows 10
  • JDK version: RED_HAT java-1.8.0-openjdk-1.8.0.242-3
  • Visual Studio Code version: 1.43 Insider
  • Java extension version: 0.58.0

Not sure how to reproduce it. IT only happens on my gradle project, it works fine under plain file.
Basically JLS hangs on this
5be94702 Importing root project: 79% Refreshing '/SuperiorPrison'. [790/1000]
23dfded5 Refreshing Maven model: [0/-1]
3e0ac9c8 Repository registry initialization [Done]
fe0c31d9 Updating indexes [Done]

There's no errors whatsoever I've tried a lot of solutions, none worked.

@OOP-778
Copy link
Author

OOP-778 commented Mar 5, 2020

Nevermind... Issue is that it refreshes the project slowly. After my last update it came to 80% which means 1% per 11 minutes? The project is 5k lines, is that too big?

@OOP-778
Copy link
Author

OOP-778 commented Mar 5, 2020

Okay. So it finally loaded. It took around an half of hour. Any ideas how can I speed it up?
It's a multi module project.
image

@snjeza
Copy link
Contributor

snjeza commented Mar 5, 2020

@misterzet you may want to take a look at #1084 and eclipse-jdtls/eclipse.jdt.ls#1200

@OOP-778
Copy link
Author

OOP-778 commented Mar 6, 2020

I’m confused, what would the setting be for my project? Do I need it also read dependencies? I’m confused

@OOP-778
Copy link
Author

OOP-778 commented Mar 6, 2020

Is thete way for it to debug what files it’s refreshing? So I can see where it takes so long? Also is it possible to do it multithreaded?

@snjeza
Copy link
Contributor

snjeza commented Mar 6, 2020

I’m confused, what would the setting be for my project? Do I need it also read dependencies? I’m confused

You can import only some parts of your project.

@OOP-778
Copy link
Author

OOP-778 commented Mar 7, 2020

Isn't there way to debug what files it's refreshing atm?

@OOP-778
Copy link
Author

OOP-778 commented Mar 7, 2020

So for testing purposes, I've took https://github.com/spring-projects/spring-framework and imported into vscode. It took much less. Like 5 minutes to import it (download dependencies, etc.) without adding any exclusions... So what might be wrong with my project then?

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

3 participants