Comments (5)
Once a selection is made, the option is stored in the workspace state database :
Lines 604 to 611 in e578b50
vscode-java/src/buildFilesSelector.ts
Lines 296 to 300 in e578b50
With that said, can you try what's mentioned in that comment, and just set :
{
"java.import.gradle.enabled": "...",
"java.import.maven.enabled": "..."
}
in your workspace (.vscode/settings.json
) settings file ?
as a workaround ?
Update: Also, yes, if https://github.com/moderneinc/rewrite-recipe-starter is the project, then I'm seeing the same error. @snjeza any idea why ?
from vscode-java.
Okay, generally changing the build tool works when setting either one of the
"java.import.gradle.enabled": false,
"java.import.maven.enabled": true
settings to true
or false
and then do a Java: Clean Language Server Workspace
. Just reloading the window for instance is not enough to change it.
In terms of making this more accessible, maybe the Type
in Java: Configure Runtimes
could be made editable similar to how the Java version can be changed there:
from vscode-java.
I guess https://github.com/microsoft/vscode-java-pack/blob/main/src/java-runtime/index.ts could be updated to modify the active build tool for the particular workspace. @testforstephen , thoughts on this improvement ?
from vscode-java.
Pls note that Configure Runtime for Projects
page is purely nodejs UI thing, no any Java logic. If we want to open the ability to reimport the workspace with different build tool there, this definitely requires language server to provide the command to do that.
Anyway, I think when you clean the language server workspace, Java extension should prompt and ask you to select the build tool again before importing mixed build tool workspace. If this is not the behavior, then it's a bug in vscode-java extension.
from vscode-java.
Java: Clean Language Server Workspace
should clear the saved build tool selection now.
from vscode-java.
Related Issues (20)
- bug: 🐛 VSCode JLS error when loading project with lot of Maven sub modules HOT 7
- Extension breaks "clipboardPasteAction" in Java files HOT 1
- Building a project never finishes HOT 6
- Terminal cannot running HOT 1
- Syntax highlighting changes HOT 7
- [Navigation Breadcrumbs] - Not Available in library classes
- [Bug - Go To/Navigation Java Records] - Can not go to Class
- [Bug - Autocompletion] - Does not work with Record implements Interface
- [Bug - Go To/Navigation/References] - Does not work for Private Methods/Constructor
- Show call hierarchy with lambda functions doesn't show the full stack call
- Gradle 8.6 and 8.7 are unsupported HOT 5
- Language Support Fails to Start on MacOS: Error: Unable to generate a random pipe name with 7 characters. HOT 4
- vscode Java no definition found no references found Java HOT 1
- Cannot Commit HOT 1
- Support debug on SpyBeans HOT 5
- Java language sever only opens for user with id=1000 on wsl HOT 1
- Static import quick fix offered on unrelated error
- Base class methods are missing when generating override methods with source action. HOT 3
- Preview features enabled at an invalid source release level 21, preview can be enabled only at source level 22 HOT 2
- JDK config in both windows and linux HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-java.