Skip to content
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

Warn user if .vala file hasn't been added to meson #154

Open
Cogitri opened this issue Sep 30, 2020 · 2 comments
Open

Warn user if .vala file hasn't been added to meson #154

Cogitri opened this issue Sep 30, 2020 · 2 comments
Labels
enhancement A new feature

Comments

@Cogitri
Copy link
Contributor

Cogitri commented Sep 30, 2020

Describe the bug
Right now if the user creates a new .vala file and forgets to add it to meson, code completion doesn't work in the file and every type is interpreted as null. It's easy enough to recognise this and add the missing file afterwards, but I think it'd be nice if VLS issued a warning if the user edits a (new) .vala file that hasn't been added to meson yet. But of course this can be low-priority :)

To Reproduce
Source code repo:

Steps to reproduce the behavior:

  1. Create new vala file
  2. Start editing, all types show up as null <- Would be nice if VLS issued a warning here
  3. Add to meson file
  4. It works now
@Prince781
Copy link
Member

I think we'd want to have VLS only warn you when you have errors that could be resolved by adding the file to the build system. Otherwise this could be annoying.

Perhaps what we'd want is for VLS to tell from the error messages when a certain namespace is being relied on that exists in one of the other projects that VLS knows about.

@gavr123456789
Copy link

wow, really nice idea, never throw about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature
Projects
None yet
Development

No branches or pull requests

3 participants