Linked Resources: PARENT-N-PROJECT_LOC variable cannot be removed because '-' is rejected on Apply
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start by tracing the Linked Resources → Path Variables properties page and its Apply-time validation in the Eclipse Platform UI code; the issue does not name specific files or tests. Reproduce with an existing PARENT-2-PROJECT_LOC entry in .project, remove it in the UI, and apply. Done means deletion succeeds for an existing invalid variable without allowing invalid names to be created or updated.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
A project contains a path variable named PARENT-2-PROJECT_LOC.
The variable is visible under:
Project Properties -> Resource -> Linked Resources -> Path Variables
It can be selected and removed in the UI, but when pressing Apply, Eclipse reports:
Path variable name cannot contain character: '-'.
As a result, the variable cannot be removed through the GUI and the only workaround is to manually edit .project.
This is especially problematic because PARENT-2-PROJECT_LOC also has special meaning to the Eclipse path-variable resolver. A stale project variable with this name can shadow the dynamically resolved value.
Example:
PROJECT_LOC = C:\Workspace\CurrentProject\Software\App\IDE_Project
Expected:
PARENT-2-PROJECT_LOC = C:\Workspace\CurrentProject\Software
Actual stale value:
PARENT-2-PROJECT_LOC = C:\Workspace\OldProject\Software
The GUI allows requesting removal of the variable, but applying the change fails because the variable-name validator rejects the - characters.
Expected behavior:
The UI/API should allow deletion of an existing variable even if its name is no longer considered valid, or PARENT-N-* variables should be handled specially so that this invalid state cannot occur.
Workaround:
Manually remove the corresponding variable entry from .project.
Environment:
STM32CubeIDE 1.18.1 / Windows
Eclipse Platform version: [insert version]
Additional note:
Creation/update validation and deletion validation should not necessarily be identical. If an invalid or legacy variable already exists, the UI must still provide a way to remove it.
- Lingua principale
- Java
- Stelle
- 124
- Fork
- 269
- Merge medio
- 2g 7h
- PR unite (30g)
- 68
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di eclipse-platform/eclipse.platform.ui
-
Theme controls do not show/hide when the checkbox is toggledForse già presa @nburnwal09 l’ha presa 1 giorno fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
eclipse-platform/eclipse.platform.ui#4502 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
eclipse-platform/eclipse.platform.ui#4125 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
eclipse-platform/eclipse.platform.ui#4016 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
eclipse-platform/eclipse.platform.ui#3892 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
eclipse-platform/eclipse.platform.ui#2687 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di eclipse-platform/eclipse.platform.ui
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/rocketmq-dashboard#6896 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OpenIntegrationEngine/engine#496 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
SasanLabs/VulnerableApp#836 ·
I maintainer di solito rispondono entro 1 giorno