-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError in lex #63
Comments
Would need more details. The lextab and tabmodule arguments to PLY really are meant to be strings containing the names of the lextab and parsetab modules. I quickly looked at the source code to slimit and don't see where it is doing anything different. Maybe I'm missing something. |
This line in slimit ends up passing the module itself instead of the string down to the lex module: https://github.com/rspivak/slimit/blob/master/src/slimit/parser.py#L56 which calls https://github.com/rspivak/slimit/blob/master/src/slimit/lexer.py#L102 |
Looking at it. Hmmm. I'll be honest, I'm not super keen on supporting this passing of the bare module objects like that (although apparently past versions of PLY allowed it for some reason). Let me ponder it further. |
IMHO if you don't want to support handling the bare module the version number should bump up to 4.0, since this is technically an API change |
Pepper Plugin API where its IDL lexer makes a call also exhibits |
I'm going to fix this, but I'm going to wait another 4-5 days for a release just to see if other issues come in. |
FWIW this also breaks building of Chromium, due to the issue reported by @NormalRa above. |
Ah yes, bleeding-edge distributions. We are guinea pigs! c: |
The way slimit uses Ply v3.6 causes errors. See dabeaz/ply#63
I've pushed a fix to github. Would appreciate some testing. |
It's unfortunately still broken when building Chromium:
|
Why is it passing a tabmodule of None? That is not documented nor is it the default value for that argument. |
I have no idea, I just know it works when I install ply 3.4 😄 I also opened this Chromium issue but so far nothing happened except of someone adding a |
Slimit runs ok, with latest patch, thank you. |
Have made an additional patch to try and fix this. |
Thanks for this fix. With ply 3.6, I couldn't build qt5 from source, in Arch Linux. The latest git version of ply fixes this. |
dabeaz/ply#63 This unbreaks www/chromium Reported by: pkg-fallout With hat: portmgr git-svn-id: svn+ssh://svn.freebsd.org/ports/head@390980 35697150-7ecd-e111-bb59-0022644237b5
dabeaz/ply#63 This unbreaks www/chromium Reported by: pkg-fallout With hat: portmgr
So Ply 3.7 fixes this issue, right? The latest version I can install with pip is 3.6, and that still seems to have the issue. Can you update this on pypi? |
Download ply-3.7 and see if it fixes the issue. |
@dabeaz it does. I also see you've updated the pypi version to 3.8, thanks. |
dabeaz/ply#63 This unbreaks www/chromium Reported by: pkg-fallout With hat: portmgr
With the 3.6 update, I see the following TypeError where slimit makes a call to ply:
The text was updated successfully, but these errors were encountered: