You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proper error does not come up in the Vscode error pop-up. I only see:- "Some error occurred {0}".
So I cloned the extension and debugged it. On the debug window, I see stderr = "gtags: directory '' not found.
Screenshot attached.
I debugged a bit more and see that the basePath variable is valid inside the generateTags function, but not inside the Promise. I am not an expert on Javascript/Typescript and sound stupid.
Screenshot attached:
I hope this helps. Please let me know if you need anything else. Please let me know if I can contribute in anyway.
The text was updated successfully, but these errors were encountered:
Now when the the params is passed to cp.execFile, the command is being executed as:
$ gtags ""
This gives the error:-
% gtags ""
gtags: directory '' not found.
Which is seen in the stderr in my screenshot.
I wrote a test extension - gtags runner to debug this.
And for me the this works gtags works fine. This is how my code looks like (just pasting the relevant parts.). I am passing an empty array instead of [""] to gtags as an argument.:
const gtagsPath = 'gtags'; // Adjust this if `gtags` is located elsewhere
const options = { cwd: folderPath };
vscode.window.showInformationMessage(`Running gtags in: ${folderPath}`);
cp.execFile(gtagsPath, [], options, (err, stdout, stderr) => {
Environment/version
Steps to reproduce
The proper error does not come up in the Vscode error pop-up. I only see:- "Some error occurred {0}".
So I cloned the extension and debugged it. On the debug window, I see stderr = "gtags: directory '' not found.
Screenshot attached.
I debugged a bit more and see that the basePath variable is valid inside the generateTags function, but not inside the Promise. I am not an expert on Javascript/Typescript and sound stupid.
Screenshot attached:
I hope this helps. Please let me know if you need anything else. Please let me know if I can contribute in anyway.
The text was updated successfully, but these errors were encountered: