spring-projects / spring-projects/spring-tools

redraw problem in pom.xml editor when upgrading to latest patch version

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

Nobody has claimed this yet.

for: eclipse status: needs-investigation theme: refactoring type: bug
Dominant language
Java
Stars
983
Forks
240
Avg merge
7d 1h
Merged PRs (30d)
7

Description

Steps:

  • create Rest Service sample project
  • open pom.xml editor
  • change version to 3.0.1
  • wait for validation to show up newer versions markers
  • go to problems view, select new patch version marker, apply quick fix from the problems view to upgrade to latest patch version
  • pom.xml editor is dirty now, but the version hasn't changed

Interestingly this seems to be a redraw problem only. When I set the cursor to the line of the parent pom version, it redraws the line and the version displays now as 3.0.7. Even when I press save (before moving the cursor), the project gets updated correctly to 3.0.7, so the file content seems to be correctly changed, but the editor redraw is lagging behind somehow.

Anbohre interesting (slightly weird) point is that I haven't seen the same redraw problem when upgrading via the quick fix to 3.1.0 for unknown reasons...

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

Reproduce the issue with a Rest Service sample project by opening pom.xml, changing the parent version to 3.0.1, and applying the latest patch-version quick fix from the Problems view. Observe the pom.xml editor before and after moving the cursor or saving; done means the editor redraws the updated version immediately without appearing dirty.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.