redhat-developer / redhat-developer/vscode-java

gradle - import to class in testFixtures cannot be resolved.

Open
#1,430 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I have a project where I depend on some testFixtures from another project. The import to a class within the testFixtures source set cannot be resolved.

    implementation project(':core')
    implementation testFixtures(project(":core"))
    implementation project(':tests:e2e-base')
Environment
  • Operating System: Ubuntu 19.10
  • JDK version: 11
  • Visual Studio Code version: 1.44.2
  • Java extension version: 0.61.0
P.s.:

I'm amazed on the progress you guys made on supporting Java in VSCode. Nice work!

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

No repository files, tests, or entry points are named. Start by reproducing the unresolved import with the Gradle dependencies shown in the issue on the stated Java and VS Code versions; done means the class from the testFixtures source set resolves correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.