Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Linked Resources: PARENT-N-PROJECT_LOC variable cannot be removed because '-' is rejected on Apply

Aperta
#4,351 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
java
Ambito
desktop

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

bug

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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eclipse-platform/eclipse.platform.ui

Tutte le issue di eclipse-platform/eclipse.platform.ui

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.