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

[Bug] - Project Explorer won't load the project #848

Closed
mamilic opened this issue Aug 13, 2024 · 2 comments
Closed

[Bug] - Project Explorer won't load the project #848

mamilic opened this issue Aug 13, 2024 · 2 comments
Labels
question Further information is requested

Comments

@mamilic
Copy link
Contributor

mamilic commented Aug 13, 2024

Steps to reproduce:

After opening the project explorer it will display that No Java projects found, however this is a Maven project, and should be loaded.

@mamilic
Copy link
Contributor Author

mamilic commented Aug 13, 2024

Hm, it seems that real issue was importing the project. As it throws the,

[Error - 2:28:53 PM] Aug 13, 2024, 2:28:53 PM Initialization failed
org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Cannot get non-null property 'jetbrainsPluginRepoToken' on root project 'idea_plugin' as it does not exist
java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Cannot get non-null property 'jetbrainsPluginRepoToken' on root project 'idea_plugin' as it does not exist
at java.base/java.util.concurrent.CompletableFuture.reportJoin(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.join(Unknown Source)
at com.microsoft.gradle.bs.importer.Utils.getBuildTargetsMappedByProjectPath(Utils.java:47)
at com.microsoft.gradle.bs.importer.GradleBuildServerProjectImporter.importProjects(GradleBuildServerProjectImporter.java:322)
at com.microsoft.gradle.bs.importer.GradleBuildServerProjectImporter.importToWorkspace(GradleBuildServerProjectImporter.java:226)
at org.eclipse.jdt.ls.core.internal.managers.ProjectsManager.importProjects(ProjectsManager.java:164)
at org.eclipse.jdt.ls.core.internal.managers.ProjectsManager.initializeProjects(ProjectsManager.java:126)
at org.eclipse.jdt.ls.core.internal.handlers.InitHandler$1.runInWorkspace(InitHandler.java:277)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:43)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Cannot get non-null property 'jetbrainsPluginRepoToken' on root project 'idea_plugin' as it does not exist

After changing the idea_plugin/build.gradle.kts 48 line of code
val jetbrainsPluginRepoToken: String by project to
val jetbrainsPluginRepoToken = "test' the rpject was imported succsessfuly.

@jdneo
Copy link
Member

jdneo commented Aug 14, 2024

Hi @mamilic
If your intention is to import the maven project, you can disable the gradle import setting:
image

@jdneo jdneo closed this as completed Aug 14, 2024
@jdneo jdneo added the question Further information is requested label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants