vala-lang / vala-language-server

Code Intelligence for Vala & Genie
GNU Lesser General Public License v2.1
287 stars 41 forks source link

No documentation about --pkg #298

Closed cacilhas closed 3 months ago

cacilhas commented 9 months ago

There’s no documentation about how to enable --pkg.

For instance, I have a project in VSCode that uses --pkg gtk+-3.0, but vala-language-server keeps showing errors about the namespace Gtk could not be found, and the document explaining how to make it work is None.

benwaffle commented 9 months ago

You can either create a meson project, or add a #/usr/bin/env -S vala --pkg gtk+-3.0 line at the top

Hermholtz commented 4 months ago

@benwaffle That would be so helpful if this line was in the main README.md. There's only a vague explanation there which is not clear at all for newbies.

benwaffle commented 3 months ago

Added here - https://github.com/vala-lang/vala-language-server/blob/master/README.md#specifying-dependencies

Let me know if there's a better place to put it.

Hermholtz commented 3 months ago

Thank you, that's helpful.