Open ZdenekM opened 5 years ago
Indeed, I can confirm the error. For the time being I've created a branch which reproduces the error - I think the error might boil down to a too-strict assertion, i.e. maybe the code would just work with the assertion disabled. Have you tried running your code with -O
(i.e. optimization flag passed to python
that disables assertions)? Does it work then, or brakes somewhere else?
The issue seems to be gone with -O
flag.
Any chance that this will be fixed soon? :) Thanks...
Yeah, I'm working on this issue (and some related ones that emerged) right now. Feel free to test with current issue_3
branch - should be fixed there, but I'll do some more tests before merging and publishing new version.
I can confirm that the issue is fixed in issue_3
branch. Any chance that it will be merged and released to PyPI soon?
Yes, sorry for the wait! And thanks for the verification. I'll get down to finalize those fixes soon!
@mbdevpl It would be great if you can make a new release containing this fix. The project I'm working on depends on horast and this issue causes some troubles :-) Many thanks!
If the following code:
is passed to
horast.parse
, an AssertionError is raised:If I replace
# type: ignore
by normal comment, it works. Also, if# whatever comment
is removed, it works. Tested with horast version 0.3.1. Any ideas? Many thanks!