redhat-developer / redhat-developer/vscode-java

Java language support for embedded Gradle plugin

Open
#978 3 comments 0 reactions 1 assignee View on GitHub

@snjeza is already working on this.

Since Jul 10, 2019.

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

Description

I have a Gradle project with an embedded plugin in buildSrc that has Java code in buildSrc/srcmain/my/package/Foo.java. When I open these Java files, a "Foo.java isn't on the classpath" notification pops up and things like Oragnize Imports and javadoc hovers don't work.

It would be awesome if vscode-java would recognize buildSrc in a Gradle project so language support would work in plugin source code.

Environment
  • Operating System: macOS 10.12
  • JDK version: 1.8.0_171
  • Visual Studio Code version: 1.37.0-insider
  • Java extension version: 0.46.0
Steps To Reproduce
  1. Create a Gradle project and open it in vscode
  2. Add Java source files to buildSrc/package/Foo.java
  3. Open the Java source files
Current Result

No language support available

Expected Result

Working language support

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.