{"action":"opened","issue":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/247","labels_url":"https://api.github.com/repos/mesonbuild/meson/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/mesonbuild/meson/issues/247/comments","events_url":"https://api.github.com/repos/mesonbuild/meson/issues/247/events","html_url":"https://github.com/mesonbuild/meson/issues/247","id":103386312,"number":247,"title":"subdir('a/b') crashes","user":{"login":"rhd","id":3422847,"avatar_url":"https://avatars.githubusercontent.com/u/3422847?v=3","gravatar_id":"","url":"https://api.github.com/users/rhd","html_url":"https://github.com/rhd","followers_url":"https://api.github.com/users/rhd/followers","following_url":"https://api.github.com/users/rhd/following{/other_user}","gists_url":"https://api.github.com/users/rhd/gists{/gist_id}","starred_url":"https://api.github.com/users/rhd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhd/subscriptions","organizations_url":"https://api.github.com/users/rhd/orgs","repos_url":"https://api.github.com/users/rhd/repos","events_url":"https://api.github.com/users/rhd/events{/privacy}","received_events_url":"https://api.github.com/users/rhd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-26T23:25:26Z","updated_at":"2015-08-26T23:25:26Z","closed_at":null,"body":"In my top level meson.build I have this:\r\n\r\n```\r\nsubdir('main/standards')\r\n```\r\n\r\nThis directory structure exists in the source code, except I'm attempting to bypass putting meson.build into the 'main' dir as there is nothing there except for another directory.\r\n\r\nmeson crashes like this:\r\n\r\n```\r\n/tmp/meson/meson.py build\r\n\r\nTraceback (most recent call last):\r\n  File \"/tmp/meson/meson.py\", line 197, in run\r\n    app.generate()\r\n  File \"/tmp/meson/meson.py\", line 138, in generate\r\n    intr.run()\r\n  File \"/tmp/meson/interpreter.py\", line 954, in run\r\n    self.evaluate_codeblock(self.ast)\r\n  File \"/tmp/meson/interpreter.py\", line 976, in evaluate_codeblock\r\n    raise e\r\n  File \"/tmp/meson/interpreter.py\", line 970, in evaluate_codeblock\r\n    self.evaluate_statement(cur)\r\n  File \"/tmp/meson/interpreter.py\", line 1039, in evaluate_statement\r\n    return self.function_call(cur)\r\n  File \"/tmp/meson/interpreter.py\", line 1740, in function_call\r\n    return self.funcs[func_name](node, self.flatten(posargs), kwargs)\r\n  File \"/tmp/meson/interpreter.py\", line 59, in wrapped\r\n    return f(self, node, args, kwargs)\r\n  File \"/tmp/meson/interpreter.py\", line 1543, in func_subdir\r\n    os.mkdir(os.path.join(self.environment.build_dir, subdir))\r\nFileNotFoundError: [Errno 2] No such file or directory: '/tmp/foo/build/main/standards'\r\n```"}}