Open Charadon opened 1 year ago
I think I figured it out. It fails if the project hasn't been set up with git
yet.
git
shouldn't have anything to do with this. I can't reproduce your issue.
git
shouldn't have anything to do with this. I can't reproduce your issue.
I've managed to reproduce it by not using git. If I don't have a git repo initialized (renaming .git to .git_backup for example), it won't work anymore, but if I have git, it will work again. Is git being used to find the top level of the project directory?
No. We don't use git for that.
No. We don't use git for that.
Then I dunno. I can keep reproducing it by just getting rid of the git repo. It might be something with coc-nvim maybe?
A few questions:
I think I figured it out. And it's most likely a quirk in coc-nvim. Basically, I had a recursive git repo thing going on (Git repo inside a git repo). And in the sub directory I had the program in, it didn't have it's own git repo set up yet. So coc-nvim was probably look at the toplevel of the git repo (which would be the "meta" repo) and couldn't find meson.build or compile_commands.json and would as such, fail.
Now as for the questions above. I can really only tell you i'm opening the source file from the directory that the meson.build is in. As for VLS's output, I don't know how to get that from coc-nvim. I've checked every log command coc-nvim has, and vala appears to not spew any errors (Or any output aside from the fact it launched)
Describe the bug For some reason, I keep getting the error:
The namespace name 'Gtk' could not be found (vala)
Even though it compiles correctly. I've tried copying the compile_commands.json into src and the root of the folder with no success.Software OS and version (e.g. Ubuntu 20.04): Slackware 15.0 Code editor (e.g. VSCode): Vim with coc-nvim Vala Language Server (e.g. git commit, or PPA/AUR version): 0.48.7 Vala version (
valac --version
): 0.54.6To Reproduce This code should replicate it. https://pagure.io/charadon/grpmi
Steps to reproduce the behavior:
Any help for trying to figure out what's wrong would be appreciated, as this is the first time i've ran into this issue. And what's more odd, is that this bug doesn't affect my other vala project: https://pagure.io/charadon/Dungeon-Vala
Me not get it