LSP hover emits literal \n in Markdown code fences
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- c
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Bắt đầu trong src/eigenlsp.c tại handle_hover, nơi các chuỗi fence " eigenscript\\n" và "\\n " được thêm vào trước khi được JSON-escape lần thứ hai; lần theo đường escape để xem backslash+n literal được tạo ra ở đâu. Tái hiện bằng make lsp và driver briefs/out/r1-8/drivers/hover_format_gap.py, so sánh với hover-format-gap.json. Hoàn tất khi contents.value đã giải mã chứa newline thật quanh fence và các test JSON-RPC bao phủ hover builtin/symbol cùng cả literal số int và float mà không thay đổi các phân loại hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The LSP hover formatter emits the two characters backslash + n inside its Markdown code fences instead of newline characters. This is inherited by the numeric literal hover added during #1758 R1.8; the formatter already affected builtin/symbol hover on the base.
src/eigenlsp.c:handle_hover appends C strings "```eigenscript\\n" and "\\n```", then JSON-escapes them again. A real JSON-RPC hover over 3.0 returns a contents.value whose Python representation is '```eigenscript\\nfloat\\n```', with zero actual newline characters. Markdown consumers therefore do not receive a fenced code block.
Reproducer: build make lsp, initialize a JSON-RPC session, didOpen print of 3.0\n, request textDocument/hover at line 0, character 9, and inspect the decoded contents.value. The read-only reproduction driver and result are in the R1.8 handoff: briefs/out/r1-8/drivers/hover_format_gap.py and hover-format-gap.json.
Done when:
- Hover content contains actual newlines around the code block, without literal backslash+n in their place.
- Real JSON-RPC tests cover a builtin/symbol hover and both numeric literal kinds.
- Existing hover text and numeric
int/floatclassifications remain correct.
Principle: No silent wrong answers. This is a formatting gap outside R1.8's numeric semantics and is surfaced separately rather than silently broadening that round.
- Ngôn ngữ chính
- C
- Star
- 3
- Fork
- 7
- Merge trung bình
- 6 giờ 28 phút
- Pull request đã merge (30 ngày)
- 312
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 InauguralSystems/EigenScript
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
InauguralSystems/EigenScript#2311 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
InauguralSystems/EigenScript#2305 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:ci bug found-by:duet-audit
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
InauguralSystems/EigenScript#2283 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:docs found-by:duet-audit kind:docs-drift
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
InauguralSystems/EigenScript#2282 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
X11 title and ctype tests pick their display from $$ and can silently attach to a foreign X serverĐang mởarea:gfx kind:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
InauguralSystems/EigenScript#2216 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của InauguralSystems/EigenScript
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 9 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
containers/bubblewrap#826 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Vulkan: create_device reads the device extension list after freeing it (random crash at start)Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 62/100
Revivedx/SavageWindRecomp#488 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-device
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100