Go to source feature not working on Linux
Personne n'a encore pris cette issue.
- Langage dominant
- TypeScript
- Étoiles
- 499
- Forks
- 100
- Merge moyen
- 1 j 17 h
- PR mergées (30 j)
- 4
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.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Reproduisez le flux ctrl+shift+click sur Ubuntu 24.04.3 avec le open callback de la configuration de l’éditeur et examinez le chemin journalisé. Suivez la gestion des chemins Linux autour de ce callback ; le travail est terminé lorsque le callback reçoit le chemin source absolu correct sans concaténer le répertoire de travail.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- linux, react, typescript
- Domaine
- devtools, operating-systems
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100