redhat-developer / redhat-developer/vscode-java

Making any changes to eclipse formatter xml is not reflecting to actual format of java file

Open
#2,738 5 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Environment
  • Operating System: Arch Linux x86_64
  • JDK version: openjdk 18.0.2 2022-07-19
  • Visual Studio Code version: 1.72.1
  • Java extension version: v1.11.0
Steps To Reproduce
  1. Make sure "java.format.settings.url" is pointing to correct eclipse formatter xml
  2. Make any changes to the eclipse formatter xml
  3. Reload/Restart vscode and format the file
  4. File will get formatted but new changes will be not reflected
Current Result

FIle is formatted but irrespective of changes made in eclipse formatter xml.

Expected Result

File should be formatted with respect to the changes made in eclipse formatter xml.

Additional Informations

This is happening since v1.11.0, version < 1.11.0 have no such issues.

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 issue with java.format.settings.url and the Eclipse formatter XML described in the steps, comparing behavior before and after version 1.11.0. Trace the formatting entry point used when the Java file is formatted after a VS Code reload; done means XML changes are reflected in the resulting formatting.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.