microsoft / microsoft/vscode-java-debug

Unable to add a folder to java sourcePath in recent Language Server version

Open
#1,362 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged question
Dominant language
TypeScript
Stars
591
Forks
429
Avg merge
1d 9h
Merged PRs (30d)
19

Description

I have a enum class which is generated during build time.

package com.xxx.xx.xx.i18n;

public enum MessageIds {
/**

  • An error occurred while updating an existing site.
    */
    RTSUI02014E,
    }

rest-shared\target\generated-sources\java
the above class is generated in the generated-sources.

Problem : The file is showing in the Workspace view but file is not showing in Java Project view

it worked in previous version . after upgrading the Language Server Add to sourcePath is not working.

Environment
  • Windows
  • JDK version: 8
  • Visual Studio Code version: 1.80.0
  • Java extension version: v0.25.12
  • Java Debugger extension version: v0.52.0
Steps To Reproduce

The file is showing in the Workspace view but file is not showing in Java Project view
image

Current Result
Expected Result
Additional Informations

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 issue on Windows with the generated source path rest-shared\target\generated-sources\java and compare the current behavior with the previous Language Server version. The work is done when the generated MessageIds enum appears in the Java Project view as well as the Workspace view.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
devtools
Issue type
Bug
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.