redhat-developer / redhat-developer/vscode-java

Gradle projects do not build correctly (the bin/ directory again)

Open
#2,344 9 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

#634 is the underlying issue, but that was closed by brushing it under the carpet (IMO it deserves to be fixed). The problem I have is actually worse - the classpath is incomplete because it doesn't contain resources created and/or copied into build/resources/main (for instance) by script targets in the build. It's easy to reproduce the problem - here's an example: https://github.com/scratches/vscode-gradle-nonsense (load it up in VSCode and try and run the tests from the codelens and they fail, even though the build succeeds from command line).

See also https://github.com/microsoft/vscode-java-debug/issues/1127

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 with the linked reproduction repository and compare running tests from the VSCode codelens with the successful command-line build. Read issue #634 and the related vscode-java-debug issue, then trace how resources created or copied into build/resources/main are represented in the codelens test classpath. Done means the reproduced tests run successfully with those resources available.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
build-system, tooling
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.