TanStack / TanStack/devtools

Go to source feature not working on Linux

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

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

Ngôn ngữ chính
TypeScript
Star
499
Fork
100
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
4

Mô tả

TanStack Devtools version

v0.7.0

Framework/Library version

React v19.1.0

Describe the bug and the steps to reproduce it

On Linux, by default the ctrl+shift+click is not working (I use both code and windsurf).

Adding the editor configuration as such:

open: async (path, lineNumber, columnNumber) => {
          console.log(path);
          const { exec } = await import('node:child_process');
          exec(
            // or windsurf/cursor/webstorm
            `code -g "${path.replaceAll('$', '\\$')}${lineNumber ? `:${lineNumber}` : ''}${columnNumber ? `:${columnNumber}` : ''}"`,
          );
        },

It opens a new editor with an empty file. However, what I can see on the console log, is that the file path is not correct.

In my case it prints:
/home/fernion/dev/proj1/apps/web/home/fernion/dev/proj1/packages/package1/src/panel.tsx

My node is running on /home/fernion/dev/proj1/apps/web and the file is located on /home/fernion/dev/proj1/packages/package1/src/panel.tsx

Somehow the path parameters has the two paths concatenated.

Please let me know what additional information I can provide.

I am using Ubuntu 24.04.3 LTS.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

not applicable

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

None

Terms & Code of Conduct
  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Tái hiện luồng ctrl+shift+click trên Ubuntu 24.04.3 với open callback của cấu hình trình soạn thảo và kiểm tra đường dẫn được ghi lại. Truy vết cách xử lý đường dẫn Linux xung quanh callback đó; hoàn tất khi callback nhận đúng đường dẫn tuyệt đối của nguồn mà không nối thêm thư mục làm việc.

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

Đánh giá

Công nghệ
linux, react, typescript
Lĩnh vực
devtools, operating-systems
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
42/100

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.