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

Consider porting Vala to Meson #964

Open
Diego-Ivan opened this issue Jul 10, 2024 · 2 comments · May be fixed by #969
Open

Consider porting Vala to Meson #964

Diego-Ivan opened this issue Jul 10, 2024 · 2 comments · May be fixed by #969
Labels

Comments

@Diego-Ivan
Copy link
Contributor

Vala currently uses scripts to compile and run, which has been working great so far, but it comes with a couple of limitations:

  • Vala users must specify the dependencies that they want to use in the script command. Misspelling them would cause the language server to break
  • When writing demo in Vala from the ground up, shebang is not included by default, and the users must copy/paste it from other demos. The language server does not read the shebang when it is added immediately, so the code would be filled with false errors until it catches up.
  • Adding/removing a dependency from the shebang is not caught by the language server immediately, which leads to false errors.

Using Meson as build system would require choosing the dependencies beforehand, just as Rust does, saving the user the need to specify them themselves. This comes at the cost that the users would not be able to add other dependencies that may have available vapi files, but this is something Rust has too and does not seem to be a problem.

Adding new demos that require new dependencies would force us to keep the build systems updated too, but I think Workbench has gotten to a point where pretty much all the libraries used in GNOME projects have been covered, so this will not occur frequently.

If porting Vala to Meson is viable, I can start working on this issue :)

CC @lw64

@sonnyp sonnyp added the vala label Jul 10, 2024
@lw64
Copy link
Contributor

lw64 commented Jul 11, 2024

this sounds like a good idea. there was already an effort by someone to port it to meson, as part of the idea to also have gresources. Not sure if that can be reused.

@Diego-Ivan
Copy link
Contributor Author

Cool, is there a branch or PR that I can take a look at?

@sonnyp sonnyp linked a pull request Oct 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants