Go to source feature not working on Linux
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- linux, react, typescript
- Domain
- devtools, operating-systems
Research direction
Reproduce the ctrl+shift+click flow on Ubuntu 24.04.3 with the editor configuration's open callback and inspect the logged path. Trace the Linux path handling around that callback; done means the callback receives the correct absolute source path without concatenating the working directory.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- TypeScript
- Stars
- 499
- Forks
- 100
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TanStack/devtools
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 74/100
All issues in TanStack/devtools
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
fil-donadoni/tolaria#4409 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·