vala-language-server icon indicating copy to clipboard operation
vala-language-server copied to clipboard

No documentation about --pkg

Open cacilhas opened this issue 2 years ago • 1 comments

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.

cacilhas avatar Sep 28 '23 01:09 cacilhas

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

benwaffle avatar Sep 28 '23 05:09 benwaffle

@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.

Hermholtz avatar Mar 11 '24 13:03 Hermholtz

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.

benwaffle avatar Mar 23 '24 00:03 benwaffle

Thank you, that's helpful.

Hermholtz avatar Mar 23 '24 08:03 Hermholtz