After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 663070 - vala uses --pkg=X and valac --pkg X
vala uses --pkg=X and valac --pkg X
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: 1.0
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-31 00:08 UTC by pancake
Modified: 2018-02-20 16:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
compiler: Properly parse arguments for vala interpeter-mode (4.59 KB, patch)
2017-11-09 13:37 UTC, Rico Tzschichholz
committed Details | Review

Description pancake 2011-10-31 00:08:20 UTC
The 'vala' program does not accepts specifying the pkg as an argument to --pkg, it requires an '=' between --pkg and the package name. Else you get this error:

$ vala --pkg gtk+-2.0 hello.vala
Missing argument for --pkg

Both syntaxes should be supported.
Comment 1 Rico Tzschichholz 2016-09-20 12:23:24 UTC
This was fixed somewhere in the past.
Comment 2 Rico Tzschichholz 2016-09-20 12:24:24 UTC
Oh, with "vala" not "valac"
Comment 3 Michael 'Mickey' Lauer 2017-11-05 20:57:18 UTC
This is somewhat confusing for newcomers. Would be good to fix it before 1.0 IMO.
Comment 4 Rico Tzschichholz 2017-11-09 13:37:59 UTC
Created attachment 363290 [details] [review]
compiler: Properly parse arguments for vala interpeter-mode

Arguments for the target need to be passed with --run-args from now on.
Comment 5 Rico Tzschichholz 2017-11-19 15:52:32 UTC
Attachment 363290 [details] pushed as 0e45b19 - compiler: Properly parse arguments for vala interpeter-mode