{"action":"closed","issue":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/3292","repository_url":"https://api.github.com/repos/mesonbuild/meson","labels_url":"https://api.github.com/repos/mesonbuild/meson/issues/3292/labels{/name}","comments_url":"https://api.github.com/repos/mesonbuild/meson/issues/3292/comments","events_url":"https://api.github.com/repos/mesonbuild/meson/issues/3292/events","html_url":"https://github.com/mesonbuild/meson/issues/3292","id":307695828,"number":3292,"title":"Error in 0.45 but no error in 0.29","user":{"login":"lucianodato","id":1414264,"avatar_url":"https://avatars0.githubusercontent.com/u/1414264?v=4","gravatar_id":"","url":"https://api.github.com/users/lucianodato","html_url":"https://github.com/lucianodato","followers_url":"https://api.github.com/users/lucianodato/followers","following_url":"https://api.github.com/users/lucianodato/following{/other_user}","gists_url":"https://api.github.com/users/lucianodato/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianodato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianodato/subscriptions","organizations_url":"https://api.github.com/users/lucianodato/orgs","repos_url":"https://api.github.com/users/lucianodato/repos","events_url":"https://api.github.com/users/lucianodato/events{/privacy}","received_events_url":"https://api.github.com/users/lucianodato/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-22T15:33:19Z","updated_at":"2018-03-22T19:55:09Z","closed_at":"2018-03-22T19:55:09Z","author_association":"NONE","body":"Hi, I'm having issues with a new version installed with pip3. This is my meson.build \r\n\r\n```\r\nproject(\r\n    'noise-repellent',\r\n    'c',\r\n    default_options: 'c_std=c99'\r\n)\r\n\r\n#shared object name\r\nlv2_name = 'nrepel'\r\n\r\n#source to compile\r\nsrc = 'src/nrepel.c'\r\n\r\n#dependencies for noise repellent\r\nnr_dep = [\r\n    fftw_dep = dependency('fftw3f'),\r\n    lv2_dep = dependency('lv2')\r\n]\r\n\r\n#compiler optimization flags\r\ncflags = [\r\n    '-msse',\r\n    '-msse2',\r\n    '-mfpmath=sse',\r\n    '-ffast-math',\r\n    '-fomit-frame-pointer',\r\n    '-fno-finite-math-only'\r\n]\r\n\r\n#build configuration\r\nshared_library(\r\n    lv2_name,\r\n    src,\r\n    name_prefix: '',\r\n    dependencies: nr_dep,\r\n    c_args: cflags\r\n)\r\n```\r\nThis is the error output:\r\n```\r\nBuild type: native build\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mesonmain.py\", line 361, in run\r\n    app.generate()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mesonmain.py\", line 150, in generate\r\n    self._generate(env)\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mesonmain.py\", line 189, in _generate\r\n    intr = interpreter.Interpreter(b, g)\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/interpreter.py\", line 1431, in __init__\r\n    self.load_root_meson_file()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/interpreterbase.py\", line 149, in load_root_meson_file\r\n    self.ast = mparser.Parser(code, self.subdir).parse()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 452, in parse\r\n    block = self.codeblock()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 688, in codeblock\r\n    curline = self.line()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 682, in line\r\n    return self.statement()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 457, in statement\r\n    return self.e1()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 467, in e1\r\n    value = self.e1()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 460, in e1\r\n    left = self.e2()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 485, in e2\r\n    left = self.e3()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 494, in e3\r\n    left = self.e4()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 503, in e4\r\n    left = self.e5()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 510, in e5\r\n    return self.e5add()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 513, in e5add\r\n    left = self.e5sub()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 519, in e5sub\r\n    left = self.e5mod()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 525, in e5mod\r\n    left = self.e5mul()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 531, in e5mul\r\n    left = self.e5div()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 537, in e5div\r\n    left = self.e6()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 547, in e6\r\n    return self.e7()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 550, in e7\r\n    left = self.e8()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 577, in e8\r\n    args = self.args()\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 599, in args\r\n    a = ArgumentNode(s)\r\n  File \"/usr/local/lib/python3.5/dist-packages/mesonbuild/mparser.py\", line 359, in __init__\r\n    self.subdir = token.subdir\r\nAttributeError: 'AssignmentNode' object has no attribute 'subdir'\r\n```\r\nI can't figure out what is happening. I'm sorry if this was an obvious error from my part, I'm learning this great build system. I'm forcing to update meson since I need to use name_prefix: '' and wasn't working with the older version. Thanks in advance!"}}
{"actor":{"display_login":"lucianodato"}}