{"action":"created","issue":{"url":"https://api.github.com/repos/pantsbuild/pants/issues/2084","labels_url":"https://api.github.com/repos/pantsbuild/pants/issues/2084/labels{/name}","comments_url":"https://api.github.com/repos/pantsbuild/pants/issues/2084/comments","events_url":"https://api.github.com/repos/pantsbuild/pants/issues/2084/events","html_url":"https://github.com/pantsbuild/pants/issues/2084","id":103749353,"number":2084,"title":"'Can only scan directories' error looks like a pants bug, its a typo on the cmdline","user":{"login":"ericzundel","id":119728,"avatar_url":"https://avatars.githubusercontent.com/u/119728?v=3","gravatar_id":"","url":"https://api.github.com/users/ericzundel","html_url":"https://github.com/ericzundel","followers_url":"https://api.github.com/users/ericzundel/followers","following_url":"https://api.github.com/users/ericzundel/following{/other_user}","gists_url":"https://api.github.com/users/ericzundel/gists{/gist_id}","starred_url":"https://api.github.com/users/ericzundel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericzundel/subscriptions","organizations_url":"https://api.github.com/users/ericzundel/orgs","repos_url":"https://api.github.com/users/ericzundel/repos","events_url":"https://api.github.com/users/ericzundel/events{/privacy}","received_events_url":"https://api.github.com/users/ericzundel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pantsbuild/pants/labels/starter","name":"starter","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-28T16:15:44Z","updated_at":"2015-08-28T21:30:11Z","closed_at":null,"body":"This error results in a stack trace and looks like a pants bug. I think it should be caught by the exception handler and the stack trace suppressed.\r\n```\r\n~/Development/java zundel/pants-conditional-integration-test ./pants idea no-such-dir:: \r\n2015-08-28 12:13:12,811: Regenerated BUILD files in 9.011 seconds.\r\n*** Using BETA channel.  Unset PANTS_VERSION to use the stable channel.\r\nRunning Pants version square-20150824-01\r\n\r\nException caught:\r\n  File \".bootstrap/_pex/pex.py\", line 315, in execute\r\n    self._wrap_coverage(self._wrap_profiling, self._execute)\r\n  File \".bootstrap/_pex/pex.py\", line 250, in _wrap_coverage\r\n    runner(*args)\r\n  File \".bootstrap/_pex/pex.py\", line 282, in _wrap_profiling\r\n    runner(*args)\r\n  File \".bootstrap/_pex/pex.py\", line 358, in _execute\r\n    return self.execute_entry(self._pex_info.entry_point)\r\n  File \".bootstrap/_pex/pex.py\", line 416, in execute_entry\r\n    runner(entry_point)\r\n  File \".bootstrap/_pex/pex.py\", line 434, in execute_pkg_resources\r\n    runner()\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/bin/pants_exe.py\", line 88, in main\r\n    _run(exiter)\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/bin/pants_exe.py\", line 79, in _run\r\n    goal_runner.setup(options_bootstrapper, working_set)\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/bin/goal_runner.py\", line 157, in setup\r\n    self._expand_goals_and_specs()\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/bin/goal_runner.py\", line 209, in _expand_goals_and_specs\r\n    for address in spec_parser.parse_addresses(spec, fail_fast):\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/base/cmd_line_spec_parser.py\", line 85, in parse_addresses\r\n    for address in self._parse_spec(spec, fail_fast):\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/base/cmd_line_spec_parser.py\", line 136, in _parse_spec\r\n    raise self.BadSpecError(e)\r\n\r\nException message: Can only scan directories and no-such-dir is not a valid dir\r\n\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/pantsbuild/pants/issues/comments/135893054","html_url":"https://github.com/pantsbuild/pants/issues/2084#issuecomment-135893054","issue_url":"https://api.github.com/repos/pantsbuild/pants/issues/2084","id":135893054,"user":{"login":"ericzundel","id":119728,"avatar_url":"https://avatars.githubusercontent.com/u/119728?v=3","gravatar_id":"","url":"https://api.github.com/users/ericzundel","html_url":"https://github.com/ericzundel","followers_url":"https://api.github.com/users/ericzundel/followers","following_url":"https://api.github.com/users/ericzundel/following{/other_user}","gists_url":"https://api.github.com/users/ericzundel/gists{/gist_id}","starred_url":"https://api.github.com/users/ericzundel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericzundel/subscriptions","organizations_url":"https://api.github.com/users/ericzundel/orgs","repos_url":"https://api.github.com/users/ericzundel/repos","events_url":"https://api.github.com/users/ericzundel/events{/privacy}","received_events_url":"https://api.github.com/users/ericzundel/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T21:30:11Z","updated_at":"2015-08-28T21:30:11Z","body":"Here is another similar error (unknown argument --tags) , I'm sure they can be fixed in similar fashion:\r\n\r\n```\r\n./pants test foo:: --tags=-integration\r\n2015-08-28 17:28:01,733: Regenerated BUILD files in 7.160 seconds.\r\n*** Using BETA channel.  Unset PANTS_VERSION to use the stable channel.\r\nRunning Pants version square-20150824-01\r\n\r\nException caught:\r\n  File \".bootstrap/_pex/pex.py\", line 315, in execute\r\n    self._wrap_coverage(self._wrap_profiling, self._execute)\r\n  File \".bootstrap/_pex/pex.py\", line 250, in _wrap_coverage\r\n    runner(*args)\r\n  File \".bootstrap/_pex/pex.py\", line 282, in _wrap_profiling\r\n    runner(*args)\r\n  File \".bootstrap/_pex/pex.py\", line 358, in _execute\r\n    return self.execute_entry(self._pex_info.entry_point)\r\n  File \".bootstrap/_pex/pex.py\", line 416, in execute_entry\r\n    runner(entry_point)\r\n  File \".bootstrap/_pex/pex.py\", line 434, in execute_pkg_resources\r\n    runner()\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/bin/pants_exe.py\", line 88, in main\r\n    _run(exiter)\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/bin/pants_exe.py\", line 79, in _run\r\n    goal_runner.setup(options_bootstrapper, working_set)\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/bin/goal_runner.py\", line 127, in setup\r\n    self.run_tracker = RunTracker.global_instance()\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/subsystem/subsystem.py\", line 112, in global_instance\r\n    return cls._instance_for_scope(cls.options_scope)\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/subsystem/subsystem.py\", line 134, in _instance_for_scope\r\n    cls._scoped_instances[key] = cls(scope, cls._options.for_scope(scope))\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/option/options.py\", line 228, in for_scope\r\n    values = copy.deepcopy(self.for_scope(scope.rpartition('.')[0]))\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/option/options.py\", line 232, in for_scope\r\n    self._parser_hierarchy.get_parser_by_scope(scope).parse_args(flags_in_scope, values)\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/option/parser.py\", line 144, in parse_args\r\n    new_args = vars(self._argparser.parse_args(args))\r\n  File \"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py\", line 1704, in parse_args\r\n    self.error(msg % ' '.join(argv))\r\n  File \"/Users/zundel/.pex/install/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl.47167df4f7c9695ad64ab03b2b73f718fcdded5e/pantsbuild.pants-0.0.44_square_20150824_01-py2-none-any.whl/pants/option/parser.py\", line 36, in error\r\n    raise ParseError('{0} in {1} scope'.format(message, scope))\r\n\r\nException message: unrecognized arguments: --tags=-integration in global scope\r\n```"}}