Closed tbm closed 8 years ago
Original comment by Martin Blais (Bitbucket: blais, GitHub: blais).
This makes little sense to me. Nothing changed in the parser at that version.
Are you using bison-3.x? What's your version of Bison and Flex?
#!bash
mandarine [hg|default]:~/p/.../beancount/parser$ bison --version
bison (GNU Bison) 3.0.4
Written by Robert Corbett and Richard Stallman.
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
mandarine [hg|default]:~/p/.../beancount/parser$ flex --version
flex 2.5.39
Original comment by Aaron Bull Schaefer (Bitbucket: elasticdog, GitHub: elasticdog).
My Mercurial-fu is definitely lacking in comparison to Git, so I wasn't able to figure out how to use hg bisect
only on the default branch. I instead tried manually checking out revisions, but wasn't able to get a clean build...so I tried a fresh clone and everything worked. Not sure what changed within my workspace, but I'm up and running now.
I apologize for the noise...it seems like my pattern of periodically running this seems to break every now and then:
hg pull
hg update
python3 setup install
make build
...is there a better sequence of steps I should be doing?
Original comment by Martin Blais (Bitbucket: blais, GitHub: blais).
hg fetch # same as (hg pull; hg update), you might have to install the "fetch" extension make clean build
That's it. If you python3 setup install, that will build and install it somewhere else.
If you use it locally -- I highly recommend it, just make your PYTHONPATH include .../beancount/src/python and use "make clean build". This way you can also test other branches at some point if you want to.
Original comment by Aaron Bull Schaefer (Bitbucket: elasticdog, GitHub: elasticdog).
So that's basically what I have been doing (I usually hg fetch
, but expanded that above since it is an extension).
Thus far, I've not needed to run things locally and liked using python3 setup install
so the binaries were under /usr/local/bin, which is already in my $PATH...but I don't think things worked without my also running make clean build
regularly. Should that not be the case?
Original report by Aaron Bull Schaefer (Bitbucket: elasticdog, GitHub: elasticdog).
I pulled the most recent beancount and ran the
python3 setup install
just fine, but was warned that "The Beancount parser C extension module is out-of-date." when trying abean-check
. Trying to rebuild the extension, I'm running across this error:Using
hg bisect
, it looks like this was the first bad revision (from just a couple of days ago):