-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
gnome.marshal() accept files in addition to strings for the sources #9827
Comments
The argument is semantically files, and as such we generally expect to allow files objects in addition to strings naming a file. The added type checking violated that constraint in many places -- I already fixed this for gtkdoc() and gdbus_codegen() in git master, but I didn't do a full cleanup, so more are probably lurking... This is a regression and needs to be fixed for 0.61.1. Update: apparently we used to only accept a string or an array of strings, with homebrew typechecking that only validated a list but not what was in it. However, it is not unreasonable to use files() here, and we immediately pass it in to a custom_target as inputs, which obviously works flawlessly, so the error message if you used |
It used to support: - a single string - an array of anything And as long as CustomTarget supported it too, everything worked fine. So, a `files('foo')` worked but a `files('foo')[0]` did not, which is silly... and it's not exactly terrible to use files() here, the input is literally a list of source files. Fixes building gnome-terminal Fixes mesonbuild#9827
Can you try the linked PR? |
It used to support: - a single string - an array of anything And as long as CustomTarget supported it too, everything worked fine. So, a `files('foo')` worked but a `files('foo')[0]` did not, which is silly... and it's not exactly terrible to use files() here, the input is literally a list of source files. Fixes building gnome-terminal Fixes mesonbuild#9827
Trying the PR gives no
Here's the entire log from Here's the entire |
It used to support: - a single string - an array of anything And as long as CustomTarget supported it too, everything worked fine. So, a `files('foo')` worked but a `files('foo')[0]` did not, which is silly... and it's not exactly terrible to use files() here, the input is literally a list of source files. Fixes building gnome-terminal Fixes mesonbuild#9827 Test updated by Nirbheek Chauhan <nirbheek@centricular.com>
Still failing, with new errors:
Though I don't know if that's meson or gnome-terminal. |
It used to support: - a single string - an array of anything And as long as CustomTarget supported it too, everything worked fine. So, a `files('foo')` worked but a `files('foo')[0]` did not, which is silly... and it's not exactly terrible to use files() here, the input is literally a list of source files. Fixes building gnome-terminal Fixes mesonbuild#9827 Test updated by Nirbheek Chauhan <nirbheek@centricular.com>
It used to support: - a single string - an array of anything And as long as CustomTarget supported it too, everything worked fine. So, a `files('foo')` worked but a `files('foo')[0]` did not, which is silly... and it's not exactly terrible to use files() here, the input is literally a list of source files. Fixes building gnome-terminal Fixes mesonbuild#9827 Test updated by Nirbheek Chauhan <nirbheek@centricular.com>
It used to support: - a single string - an array of anything And as long as CustomTarget supported it too, everything worked fine. So, a `files('foo')` worked but a `files('foo')[0]` did not, which is silly... and it's not exactly terrible to use files() here, the input is literally a list of source files. Fixes building gnome-terminal Fixes #9827 Test updated by Nirbheek Chauhan <nirbheek@centricular.com>
/cc @paper42 for linked PR |
It used to support: - a single string - an array of anything And as long as CustomTarget supported it too, everything worked fine. So, a `files('foo')` worked but a `files('foo')[0]` did not, which is silly... and it's not exactly terrible to use files() here, the input is literally a list of source files. Fixes building gnome-terminal Fixes #9827 Test updated by Nirbheek Chauhan <nirbheek@centricular.com>
Not related to meson. The PATCH 16/16 you use relies upon a revert within the branch Sorry for Off-Topic. |
It used to support: - a single string - an array of anything And as long as CustomTarget supported it too, everything worked fine. So, a `files('foo')` worked but a `files('foo')[0]` did not, which is silly... and it's not exactly terrible to use files() here, the input is literally a list of source files. Fixes building gnome-terminal Fixes mesonbuild#9827 Test updated by Nirbheek Chauhan <nirbheek@centricular.com>
Hello!
Since meson > 0.61 the method gnome.marshal() doesn't accept anymore a list of files for the parameter
sources
. According to the documentation this is correct:I assume a more strict and therefore better type checking. The maintainers of gnome-terminal prefer to keep passing files. Is it possible to extend the API?
The text was updated successfully, but these errors were encountered: