TanStack / TanStack/devtools

Go to source feature not working on Linux

オープン
#176 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
499
フォーク
100
平均マージ
1日 17時間
マージ済み PR(30日)
4

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Ubuntu 24.04.3 上で、エディター設定の open callback を使って ctrl+shift+click のフローを再現し、記録されたパスを確認します。その callback 周辺の Linux のパス処理を追跡します。完了条件は、callback が作業ディレクトリを連結せずに正しい絶対ソースパスを受け取ることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
linux, react, typescript
領域
devtools, operating-systems
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。