Linked Resources: PARENT-N-PROJECT_LOC variable cannot be removed because '-' is rejected on Apply
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Java
- 星标
- 124
- 派生
- 269
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 71
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
eclipse-platform/eclipse.platform.ui 的其他 Issue
-
Theme controls do not show/hide when the checkbox is toggled可能已有人在做 @nburnwal09 于 3 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
eclipse-platform/eclipse.platform.ui#4502 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
eclipse-platform/eclipse.platform.ui#4125 · 4 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
eclipse-platform/eclipse.platform.ui#4016 · 3 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
eclipse-platform/eclipse.platform.ui#3892 · 4 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
eclipse-platform/eclipse.platform.ui#2687 · 2 条评论 ·
维护者通常 1 天内回复
查看 eclipse-platform/eclipse.platform.ui 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
quarkiverse/quarkus-google-cloud-services#1188 ·
维护者通常 1 天内回复
-
Component: Frontend Component: Web Component Type: Maintenance
难度 2/5 1-3 小时 新手友好度 76/100
it-at-m/refarch-templates#1944 ·
维护者通常 2 天内回复
-
priority: p2 type: bug
难度 2/5 1-3 小时 新手友好度 68/100
googleapis/java-genai#1372 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 60/100