Giter Club home page Giter Club logo

Comments (4)

cyberphone avatar cyberphone commented on June 12, 2024

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.

cyberphone avatar cyberphone commented on June 12, 2024

.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.

KyleCoCo avatar KyleCoCo commented on June 12, 2024

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.

cyberphone avatar cyberphone commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.