redhat-developer / redhat-developer/vscode-java

"The source path must be contained in the project root folder"

Open
#3,581 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

I'm new to VS Code and now trying to convert an Eclipse project to VS Code.
I have multiple Java projects stored in a common folder.
Each project have its own .vscode/settings.json file.
The projects refer to each other on source level as which requires cross-project references.
The projects are unmanaged using VS Code terminology.

Environment
  • Operating System: Mac Sonoma 14.4.1
  • JDK version: 21
  • Visual Studio Code version: 1.88.1
  • Java extension version: 1.29
Steps To Reproduce
  1. Try to add a source path from another project in the folder.
    Then you get the error message from the issue.

[Please attach a sample project reproducing the error]
Please attach logs

Current Result
Expected Result
Additional Informations

If this will be addressed, I think "sourcePaths" should permit relative and absolute paths to any folder.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the error with multiple Java projects and their .vscode/settings.json files. Inspect how the sourcePaths setting is validated when it refers to a folder outside the project root. Done means the intended cross-project source path is accepted, with regression coverage for the reported configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.