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

ERROR: Function does not take positional arguments. #63

Closed
conraid opened this issue May 6, 2022 · 2 comments
Closed

ERROR: Function does not take positional arguments. #63

conraid opened this issue May 6, 2022 · 2 comments

Comments

@conraid
Copy link

conraid commented May 6, 2022

compiling on slackware current there is this error, what can it depend on?

The Meson build system
Version: 0.62.1
Source dir: /tmp/pkg/pdftricks-0.4.1
Build dir: /tmp/pkg/pdftricks-0.4.1/r
Build type: native build
Project name: com.github.muriloventuroso.pdftricks
Project version: 0.2.3
C compiler for the host machine: ccache cc (gcc 11.3.0 "cc (GCC) 11.3.0")
C linker for the host machine: cc ld.bfd 2.38-slack151
Vala compiler for the host machine: valac (valac 0.54.7)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Message: project name and programming language
Message: Adds project arguments
Message: Include the translations module
Message: Set our translation domain
Message: Listing dependencies
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency gio-unix-2.0 found: YES 2.70.4
Run-time dependency granite found: YES 6.2.0
Message: Src build
Configuring config.vala using configuration
Message: Adds files to build
Message: Defines executable

../data/meson.build:31:5: ERROR: Function does not take positional arguments.

A full log can be found at /tmp/pkg/pdftricks-0.4.1/r/meson-logs/meson-log.txt

meson-log.txt

@eli-schwartz
Copy link

i18n.merge_file (
'desktop',

i18n.merge_file (
'appdata',

These positional arguments need to be removed, i18n.merge_file only accepts keyword arguments. They used to be ignored entirely, but due to stricter data validation the unexpected positional arguments are now an error.

Simply remove lines 32 and 43, then commit + PR the result.

@conraid
Copy link
Author

conraid commented May 7, 2022

Thanks. With this everything is ok

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

No branches or pull requests

2 participants