Closed x007007007 closed 3 years ago
run example on ubuntu
Traceback (most recent call last):
File "javaparser.py", line 2194, in <module>
main(*(sys.argv[1:]))
File "javaparser.py", line 2189, in main
p = Parser(verbose=verbose, keepfiles=keepfiles)
File "/home/xxc/workspace/sql/venv/lib/python3.8/site-packages/bison/__init__.py", line 227, in __init__
self.engine = ParserEngine(self)
File "src/bison/cython/bison_.pyx", line 135, in bison.bison_.ParserEngine.__init__
File "src/bison/cython/bison_.pyx", line 172, in bison.bison_.ParserEngine.openCurrentLib
File "src/bison/cython/bison_.pyx", line 676, in bison.bison_.ParserEngine.buildLib
File "/home/xxc/.pyenv/versions/3.8.0/lib/python3.8/shutil.py", line 409, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/home/xxc/.pyenv/versions/3.8.0/lib/python3.8/shutil.py", line 259, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'lex.yy.h'
Hi @x007007007,
thanks for your feedback!
I looked into the issues a little bit and it seems, that
flex
not always produces the needed header fileYYLVAL
, which was not neededI fixed both issue in a new branch fix-renaming, feel free to test it!
However, there exists another problem with the example you used.
It seems to me that the JSONParser
is not capable of parsing the example file. :sweat_smile:
Anyway, we will test the changes a bit and will deploy a new version afterwards.
I use flex 2.6.4 and bison (GNU Bison) 3.7.4.