redhat-developer / redhat-developer/vscode-java

Improve error message when moving types

Open
#1,246 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When moving a class, an error message appears when the target already exists:
image

Users have to expand to see the real error, and reading the exception is painful.

In this case, a clearer error message could be provided. @testforstephen could you help improve that?

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 error in VS Code Java by moving a class into a location where the target already exists, then inspect the displayed exception and its expandable details. Done means the resulting message clearly explains the conflict without requiring users to expand the error.

Written by the indexing model from the issue text.

Assessment

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