Comments (4)
It turned out that a working solution is to use Eclipse .project
and .classpath
files as suggested in: #3582
Sample project:
multi-xref.zip
For somebody with no previous experience with Eclipse, this seems a bit complex.
Is this documented somewhere?
from vscode-java.
.classpath
file of project p2 which refers to source in project common:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="common"/>
<classpathentry kind="output" path="bin"/>
</classpath>
.project
file of project p2:
<projectDescription>
<name>p2</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.jdt.ls.unmanagedFolderNature</nature>
</natures>
<filteredResources>
<filter>
<id>1713454214439</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
<linkedResources>
<link>
<name>common</name>
<type>2</type>
<locationURI>copy_PARENT/common/src</locationURI>
</link>
</linkedResources>
<variableList>
<variable>
<name>copy_PARENT</name>
<value>${PROJECT_LOC}/..</value>
</variable>
</variableList>
</projectDescription>
from vscode-java.
Hi. I'm also new to VS Code and encountered this problem. Maybe you should add your folder to workspace. The details are in
Add Folder to Workspace.
After that, try to reload your projects using the command >java: Reload Projects
.
from vscode-java.
Hi @KyleCoCo Thanx! I will though keep the published solution (for now...) because I need the ${PROJECT} macro capability as well
from vscode-java.
Related Issues (20)
- Java Language Server fails with classes that extends sealed class.
- 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 HOT 1
- 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
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.