Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#4,351 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java
Lĩnh vực
desktop

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Java
Star
124
Fork
269
Merge trung bình
2 ngày 2 giờ
Pull request đã merge (30 ngày)
70

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-platform/eclipse.platform.ui

Tất cả issue của eclipse-platform/eclipse.platform.ui

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.