-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gtags: directory '' not found #61
Comments
Hi @vintprox , Where / when do you see this error message? Which command are you running? The extension depends on these tools working properly (installed and configured as described in README.md) on you machine, so I suggest you to run them via shell, to make sure it is being recognised by VS Code.
I don't know about Linux, but I suppose it works similar to MacOS on this matter, so I guess some of the tips in #24 should similar to you. Hope this helps |
I'm closing this issue because no new comments has been made since my last question. |
Don't think remote support is available yet based on #52 but I'm experiencing this same error trying to generate tags on a remote SSH server. I can run Have set GTAGSCONF, GTAGSLABEL and PYTHONPATH (suggested by #24) and have them seen by VSCode terminal, the variables are also read correctly by gtags when running with OS: Ubuntu 20.04 (Linux 5.4.0-66-generic) |
Hi @trey-k , It's been a long time I don't need to use SSH, but based on VS Code documentations, it should work quite similar to Docker (when it comes to how extensions should work), which I use quite frequently. And you are right, the extension does not support any remotes, yet. I don't use FreePascal and just recently started using Linux (on Docker/WSL), and I wasn't able to properly install/setup If you could provide the instructions to install/setup them on Linux/Docker environment, I would be able to test and hopefully, make the extension properly support Remotes. One thing you should take in consideration. Some extensions requires to be installed on remotes, mostly because the need to access tools/resources on that remote. I'm not entirely sure, but I suppose this will be the case for the Pascal extension too. But that's not a big issue, because you can easily setup it on your settings. BTW, the idea of #52 is to make the extension to support Remotes, and #66 is to support Codespaces (which uses a container/web based scenario). These are complementary issues. Thank you |
@alefragnani I can walk through what I did so far, I already do have the extensions installed and running on the server even if they aren't remote compatible, let me know if I'm missing anything. I'm on Ubuntu 20.04 so I just went with the available packages on my remote server:
After installing I set
Once everything is setup you can go to your project directory and run If anything seems wrong the Add to remote settings JSON if you want to have the variables set every session:
|
Hi @trey-k , Thanks for the detailed steps. I’ll try out, and if everything goes ok, it should be easier to update the extension to support remotes. Stay tuned |
Please add these debug steps to the Readme/Project page. This was very helpful in debugging my environment. I am able to start using this now. But still "Pascal: generate tags" and "Pascal: Update tags" commands are not working in VSCode environment. I have to manually generate the tags ('gtags') and then restart my VSCode to read fresh tags. Also "Find All References" and "Go to References" is not working. And BTW, thanks for this wonderful Pascal extension. |
After installing dependencies (GNU Global, ctags, gtags, python and pygments), reloading everything and editing *.pas, I keep getting following error in VSC:
Consequently, I cannot harness extension's code navigation.
OS: Ubuntu 20.04 (Linux x64 5.4.0-31-generic)
Visual Studio Code: 1.45.1
The text was updated successfully, but these errors were encountered: