• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 7168
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: ng_goal_and_system
DEFAULT BRANCH: main
Ran 30 Sep 2015 02:37PM UTC
Jobs 8
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
7168

push

travis-ci

ericzundel
Make a nicer diagnostic on parse error in pants.ini

Cleanup to give a nicer error output on misconfiguration in pants.ini that raises a SyntaxError from eval()

Testing Done:
Was:

```
Exception caught:
  ...
  File "/Users/zundel/.pex/install/pantsbuild.pants-0.0.49_square_20150924_01-py2-none-any.whl.<a class=hub.com/pantsbuild/pants/commit/<a class="double-link" href="https://git"><a class=hub.com/pantsbuild/pants/commit/<a class="double-link" href="https://git"><a class=hub.com/pantsbuild/pants/commit/d5493d74c62f5a977c5119c97760061ccd69069a">d5493d74c/pantsbuild.pants-0.0.49_square_20150924_01-py2-none-any.whl/pants/option/parser.py", line 401, in parse_typed_item
    return None if val_str is None else value_type(expand(val_str))
  File "/Users/zundel/.pex/install/pantsbuild.pants-0.0.49_square_20150924_01-py2-none-any.whl.d5493d74c62f5a977c5119c97760061ccd69069a/pantsbuild.pants-0.0.49_square_20150924_01-py2-none-any.whl/pants/option/custom_types.py", line 28, in list_option
    return _convert(s, (list, tuple))
  File "/Users/zundel/.pex/install/pantsbuild.pants-0.0.49_square_20150924_01-py2-none-any.whl.d5493d74c62f5a977c5119c97760061ccd69069a/pantsbuild.pants-0.0.49_square_20150924_01-py2-none-any.whl/pants/option/custom_types.py", line 52, in _convert
    return parse_expression(val, acceptable_types, raise_type=ParseError)
  File "/Users/zundel/.pex/install/pantsbuild.pants-0.0.49_square_20150924_01-py2-none-any.whl.d5493d74c62f5a977c5119c97760061ccd69069a/pantsbuild.pants-0.0.49_square_20150924_01-py2-none-any.whl/pants/util/eval.py", line 46, in parse_expression
    parsed_value = eval(val)

Exception message: EOL while scanning string literal (<string>, line 5)

```

Now:

```

~/Development/java zundel/pants-sake-wire-codegen PANTS_DEV=1 ./pants compile service/exemplar
2015-09-30 09:24:44,251: Regenerated BUILD files in 7.566 seconds.
Error in sys.excepthook:
Traceback (most recent call last):
  File "/Users/zundel/Src/pants/src/python/pants/bin/pants_exe.py", line 45, in unhandled_exception_hook
    msg = '\nException caught: ({})\n' + ''.join(type(exception), self._format_tb(tb))
TypeError: join() takes exactly one argument (2 given)

Original exception was:
Traceback (most recent call last):
  File "/Users/zundel/Src/pants/src/python/pants/bin/pants_exe.py", line 122, in <module>
    main()
  ...
  File "/Users/zundel/Src/pants/src/python/pants/option/custom_types.py", line 52, in _convert
    return parse_expression(val, acceptable_types, raise_type=ParseError)
  File "/Users/zundel/Src/pants/src/python/pants/util/eval.py", line 54, in parse_expression
    value=format_raw_value())))
pants.option.errors.ParseError:       The value cannot be evaluated as a literal expression: EOL while scanning string literal (<string>, line 5)
      Given raw value:
       1: [
 2: "squarepants.plugins.copy_signed_jars",
 3: "squarepants.plugins.repo",
 4: "squarepants.plugins.ruby",
 5: "squarepants.plugins.sake_wire_codegen',
 6: "squarepants.plugins.sjar",
 7: ]

(Having trouble with Pants and think you've found a bug?  Let us know with ./pants bug-report)

```

Bugs closed: 2286

Reviewed at https://rbcommons.com/s/twitter/r/2907/
Jobs
ID Job ID Ran Files Coverage
1 7168.1 (CI_FLAGS="-cjlpn 'Various pants self checks'") 30 Sep 2015 02:37PM UTC 0
Travis Job 7168.1
4 7168.4 (CI_FLAGS="-fkmsrcjlp 'Python contrib tests'") 30 Sep 2015 02:42PM UTC 0
Travis Job 7168.4
5 7168.5 (CI_FLAGS="-fkmsrjlpn -i 0/6 'Python integration tests for pants - shard 1'") 30 Sep 2015 02:43PM UTC 0
Travis Job 7168.5
6 7168.6 (CI_FLAGS="-fkmsrjlpn -i 1/6 'Python integration tests for pants - shard 2'") 30 Sep 2015 02:47PM UTC 0
Travis Job 7168.6
7 7168.7 (CI_FLAGS="-fkmsrjlpn -i 2/6 'Python integration tests for pants - shard 3'") 30 Sep 2015 02:56PM UTC 0
Travis Job 7168.7
8 7168.8 (CI_FLAGS="-fkmsrjlpn -i 3/6 'Python integration tests for pants - shard 4'") 30 Sep 2015 02:50PM UTC 0
Travis Job 7168.8
9 7168.9 (CI_FLAGS="-fkmsrjlpn -i 4/6 'Python integration tests for pants - shard 5'") 30 Sep 2015 02:51PM UTC 0
Travis Job 7168.9
10 7168.10 (CI_FLAGS="-fkmsrjlpn -i 5/6 'Python integration tests for pants - shard 6'") 30 Sep 2015 02:54PM UTC 0
Travis Job 7168.10
Source Files on build 7168
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7168
  • 3f1930f8 on github
  • Prev Build on master (#7166)
  • Next Build on master (#7173)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc