https://pantsbuild.org/ logo
#general
Title
# general
w

witty-crayon-22786

09/12/2018, 6:17 PM
what roadblocks? would be interested in fixing those.
m

magnificent-coat-60998

09/13/2018, 8:17 AM
first we we're dealing with rust bootstrapping issues and then when we ran: PANTS_PLUGINS="[]" \ PANTS_PYTHONPATH="+['/home/palli/code/forks/pants/contrib/go/src/python']" \ PANTS_BACKEND_PACKAGES="+['pants.contrib.go', 'pants.contrib.node']" \ /home/palli/code/forks/pants/pants compile :: we get this:
081626 00:07 [antlr-py] Invalidated 1 target.. 081626 00:07 [antlr] ==== stderr ==== error(100): testprojects/src/antlr/python/test/bogus.g1129: syntax error: antlr: testprojects/src/antlr/python/test/bogus.g1129: unexpected token: bogus error(100): testprojects/src/antlr/python/test/bogus.g121: syntax error: antlr: testprojects/src/antlr/python/test/bogus.g121: unexpected token: null error(100): testprojects/src/antlr/python/test/bogus.g121: syntax error: antlr: testprojects/src/antlr/python/test/bogus.g121: expecting SEMI, found 'null' error(150): grammar file testprojects/src/antlr/python/test/bogus.g has no rules error(100): testprojects/src/antlr/python/test/bogus.g00: syntax error: assign.types: <AST>00: unexpected end of subtree error(100): testprojects/src/antlr/python/test/bogus.g00: syntax error: define: <AST>00: unexpected end of subtree error(10): internal error: testprojects/src/antlr/python/test/bogus.g : java.lang.NullPointerException org.antlr.grammar.v2.DefineGrammarItemsWalker.trimGrammar(DefineGrammarItemsWalker.java:94) org.antlr.grammar.v2.DefineGrammarItemsWalker.finish(DefineGrammarItemsWalker.java:77) org.antlr.grammar.v2.DefineGrammarItemsWalker.grammar(DefineGrammarItemsWalker.java:206) org.antlr.tool.Grammar.defineGrammarSymbols(Grammar.java:702) org.antlr.tool.CompositeGrammar.defineGrammarSymbols(CompositeGrammar.java:351) org.antlr.Tool.process(Tool.java:426) org.antlr.Tool.main(Tool.java:91) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) com.martiansoftware.nailgun.NGSession.run(NGSession.java:280) ==== stdout ====
w

witty-crayon-22786

09/13/2018, 3:46 PM
./pants compile ::
in the pantsbuild repo is not expected to work
in particular, the
testprojects
directory contains intentional broken code
would take a look at the contributors guide with regard to how to test things: https://www.pantsbuild.org/howto_develop.html#dev_run_all_tests
it should also not be necessary to adjust which backends are in use
m

magnificent-coat-60998

09/14/2018, 11:05 AM
ah, ok. I'll try that. You might want to update the Running from sources section here: https://www.pantsbuild.org/howto_develop.html
thanks for the tip 🙂
w

witty-crayon-22786

09/14/2018, 4:05 PM
@magnificent-coat-60998: it's probably not clear, but: the "running from sources" section is for running the source copy of pants in some other repo
if you're running it in the pantsbuild/pants repo, there is nothing to do other than to just use the
./pants
script in the repo
4 Views