redhat-developer / redhat-developer/vscode-quarkus

The Rest Client object should have the `@Inject` annotation to be injected as a CDI bean. `microprofile-restclient(InjectAnnotationMissing)`

Open
#730 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
79
Forks
31
Avg merge
12h 51m
Merged PRs (30d)
6

Description

Warning:
The Rest Client object should have the @Inject annotation to be injected as a CDI bean. microprofile-restclient(InjectAnnotationMissing)

image

According to the docs, @Inject is not required.

Quarkus documentation says

the client stub is injected with the @RestClient annotation instead of the usual CDI @Inject

  • Update:

Related: https://github.com/redhat-developer/vscode-quarkus/issues/708

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 source file or test is named. Start by locating the implementation of the microprofile-restclient(InjectAnnotationMissing) warning and compare its behavior with the linked Quarkus documentation and related issue. Done means valid @RestClient injection no longer produces this warning, with regression coverage for the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, 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.