[BUG] Using an accessor operator (dot notation) on a variable makes the "new" keyword lose color
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, wasm
- Lĩnh vực
- developer-experience
Hướng nghiên cứu
The bug is that the new keyword loses its syntax highlight color when written after a dot accessor, such as project.sound = new WickSound(...), while sound = new ... stays colored. The payload names no file, so start by finding the Candlestick code editor's syntax highlighting rules for keywords and compare how member-assignment tokens are matched. Done means new stays red after project. in the reproduction, with the highlighting behavior checked against the Wick 1.19.4 output.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
In the code editor, if you write code like project.sound = new WickSound(...);, the new loses its red color. This does not occur if you just use sound = ....
To reproduce
Steps to reproduce the behavior:
- Write
project.sound = new WickSound("sound.mp3");in a script (projectcan really be anything) - Delete the
project.to see it return to normal
Expected behavior
The new keyword remains red.
Screenshots
Candlestick
Wick 1.19.4 (works as expected)
Editor version
Is this bug reproducible in Wick Editor 1.19.3/1.19.4 or only Candlestick?
Candlestick 1.3.0
Do you have a suggested solution to this issue? (ex. has another program fixed this bug a certain way? Are you familiar with where in the code base someone would need to fix this issue?)
I would have to guess it's library updates... I haven't tested this in my autocomplete branch yet.
- Ngôn ngữ chính
- JavaScript
- Star
- 53
- Fork
- 22
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Candlestickers/Candlestick
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Candlestickers/Candlestick#255 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Candlestickers/Candlestick#240 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
BuiltinAssets.js is unusedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Candlestickers/Candlestick#239 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] frames with names lose their circleCó thể đã có người làm @BaronAWC đã nhận 5 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Candlestickers/Candlestick#237 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Candlestickers/Candlestick#203 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Candlestickers/Candlestick
Issue tương tự
-
[Website] Catalog: unknown sort value and mixed-case technology in the URL break the filtersCó thể đã có người làm @barbierajput378-pixel đã nhận hôm nay. Đang mởarea/website framework/jekyll help wanted language/css language/javascript language/markdown
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
meshery/meshery.io#3088 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
firecrawl/firecrawl-mcp-server#548 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area:WebGL p5.js 2.0+
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
processing/p5.js#9302 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue hacktoberfest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
wassim-azi/agy-powerline#47 ·
Maintainer thường phản hồi trong vòng 1 ngày