Comments (5)
The lightweight mode ("java.server.launchMode": "LightWeight"
) can satisfy your need. It can provide reference navigation between your own source code, but it doesn't cover the dependencies.
from eclipse.jdt.ls.
@ethan-vanderheijden Could you attach a project example?
from eclipse.jdt.ls.
my_project
│ pom.xml
│
└───src
└───main
└───java
└───my_package
Foo.java
Foo.java
and pom.xml
can both be empty. Disable "java.import.maven.enabled" and run "Java: Clean Java Language Server Workspace". Then, open up Foo.java
and you should see the yellow squiggle saying this is a non-project file.
You can force the project to be imported as a standard project in two ways:
- rename "pom.xml" to anything else
- create a java file at the project root
If it is supposed to fall back on the standard importer when the maven/gradle importer is disabled, I think the fix is as simple as checking if maven/gradle is disabled here:
from eclipse.jdt.ls.
I don't think this is a typical scenario. The question is why you want to use InvisibleProjectImporter to import your project instead of Maven importer?
from eclipse.jdt.ls.
We don't support Maven projects in our environment, and I was caught a little off guard when disabling Maven turned everything into non-project files. At first, I thought that falling back to the invisible project importer would allow some language features (e.g. resolving references between files) to start working again, but in retrospect, this doesn't make much sense. After all, if I turn off Maven projects, I should expect that they aren't supported.
from eclipse.jdt.ls.
Related Issues (20)
- Enable PGP signing, instead of Eclipse CBI jar signing
- Gradle tests fail when running the build with Java 22 HOT 2
- Unsupported class file major version 61
- Autobuilding setting isn't applied until didChangeConfiguration is received.
- codeAction/resolve throws errors when your machine's processor count is too low. HOT 1
- Java Model Exception: Error in Java Model (code 969): src/main/.... [in app] does not exist HOT 11
- Maven support HOT 3
- Filter reported for workspace/willRename excludes folders/packages HOT 8
- Incoming call's hierarchy item's selectionRange behaves differently to all other (tested) servers HOT 1
- Outgoing calls hierarchies runs into NullPointerException if hashCode() is called HOT 3
- Outgoing call hierarchies sometimes duplicate the results
- can't build project after latest jdt core updates (ArrayBinding cannot be cast to class ReferenceBinding) HOT 2
- very slow on large project comparing to intellij HOT 14
- supertypes returns empty list HOT 1
- callHierarchy/outgoingCalls errors "Compilation unit name must end with .java" HOT 2
- Use latest LSP4J release (cuts off some dependencies)
- Use standard `decorator` instead of `annotation` token type for highlighting Java annotation
- Can't get method declaration searches with parameters to work HOT 5
- Can the transport protocol use the websocket port HOT 1
- Change signature is only available over method with an annotation / documentation / comment
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 eclipse.jdt.ls.