question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing Gradle project configuration file: .settings/org.eclipse.buildship.core.prefs while import.gradle is disabled

See original GitHub issue

I see error “Missing Gradle project configuration file: .settings/org.eclipse.buildship.core.prefs” of my maven project despite "java.import.gradle.enabled": false is in my .vscode/settongs.json.

There is still gradlew and build.gradle files, but they are not intended to be used for building java project.

Environment
  • Operating System: rhel 7
  • JDK version: 8
  • Visual Studio Code version: 1.55
  • Java extension version: 0.76.0

BTW I also see such errors in log:

[Warn  - 4:50:56 PM] Apr 6, 2021, 4:50:56 PM Failed to detect project changes
SynchronizingBuildScriptUpdateListener failed
org.eclipse.core.runtime.CoreException: SynchronizingBuildScriptUpdateListener failed
	at org.eclipse.buildship.core.internal.workspace.SynchronizingBuildScriptUpdateListener$1.visit(SynchronizingBuildScriptUpdateListener.java:75)
	at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:67)
	at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
	at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:51)
	at org.eclipse.buildship.core.internal.workspace.SynchronizingBuildScriptUpdateListener.visitDelta(SynchronizingBuildScriptUpdateListener.java:68)
	at org.eclipse.buildship.core.internal.workspace.SynchronizingBuildScriptUpdateListener.resourceChanged(SynchronizingBuildScriptUpdateListener.java:55)
	at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:305)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:295)
	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:158)
	at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:380)
	at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1502)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2306)
	at org.eclipse.core.internal.events.NotificationManager$NotifyJob.run(NotificationManager.java:44)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.eclipse.buildship.core.internal.GradlePluginsRuntimeException: Can't read root project location for project located at /data/XXXXX/myproject
	at org.eclipse.buildship.core.internal.configuration.BuildConfigurationPersistence.readPathToRoot(BuildConfigurationPersistence.java:90)
	at org.eclipse.buildship.core.internal.configuration.DefaultConfigurationManager.loadProjectConfiguration(DefaultConfigurationManager.java:114)
	at org.eclipse.buildship.core.internal.workspace.SynchronizingBuildScriptUpdateListener.isEnabledInPreferences(SynchronizingBuildScriptUpdateListener.java:63)
	at org.eclipse.buildship.core.internal.workspace.SynchronizingBuildScriptUpdateListener.doVisitDelta(SynchronizingBuildScriptUpdateListener.java:85)
	at org.eclipse.buildship.core.internal.workspace.SynchronizingBuildScriptUpdateListener.access$000(SynchronizingBuildScriptUpdateListener.java:44)
	at org.eclipse.buildship.core.internal.workspace.SynchronizingBuildScriptUpdateListener$1.visit(SynchronizingBuildScriptUpdateListener.java:73)
	... 14 more

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
foxplutocommented, Aug 16, 2022

@CsCherrYY yes, all my projects are Gradle projects and the value of java.import.gradle.enabled is enabled.

Did this means something to you?

Regards, S.

0reactions
CsCherrYYcommented, Aug 15, 2022

@foxpluto Is your project a Gradle project or not? And what’s the value of your java.import.gradle.enabled?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "Missing Gradle project configuration file" issue in ...
The easiest solution, using just the mouse · Right click on the project then click Properties · In the properties window go to...
Read more >
Newcomers » Importing a Gradle Project into Eclipse
Missing Gradle project configuration file : .settings/org.eclipse.buildship.core.prefs. How do I create it? Thanks,
Read more >
How to fix "Missing Gradle project configuration file" issue in ...
Right click on the project then click Properties; In the properties window go to the Project Natures and remove the Gradle Nature then...
Read more >
redhat-developer/vscode-java - Gitter
Hi Mikey. No expect but I think it builds the code using the eclipse compiler (vscode-java uses the eclipse jdt language server in...
Read more >
Using the Gradle build system in the Eclipse IDE - Tutorial
The tooling provides wizards for creating new Java based Gradle projects and options to execute Gradle build from the IDE. 2. Install Eclipse...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found