-
-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
I'm not really sure how best to get this reviewed. I probably should have created a commit when I imported the files... My process was basically:
|
Hm... Something failing in the tests because it's using the walrus. I guess that's the meta-parser (primarily). Serhiy actually has attempted a fix for that, maybe it's useful? This should be released as typed_ast 2.0 I suppose. I will look at it in detail after breakfast. :-) |
Yeah, that would have helped. Is it too late to redo it? I guess you could create a temporary branch with that and then rebase this branch over that. So far I've managed to build and install it using
It seems Also, testing with mypy and Python 3.8 is tricky because mypy checks sys.version and uses |
Running the tests manually (on Mac) is a pain. I tried
Forcing PYTHONPATH to the Then I tried But this copies the .so file into the source tree. (!) So I tried Now it segfaults:
So at least we know there's something fishy with |
Oh, it's simpler.
|
I have a bit more from lldb, but then I'll stop (probably better to try and understand what you did before trying to debug the segfault). The crash is at line 410 in pegen.c:
It appears
and the problem is that All that points to deeper problems. Probably it's easier for you. |
Thank you for looking into this! I will definitely be able to redo it. And I was going to stream some later today anyway, so I will also record it (maybe that will also help 🤷♂️) |
Whatever can be automated in the adaptation of the copied files to work here should be automated (as should the copying itself, perhaps). We will be doing this many times. I wouldn't expect that it's only the grammar that changes (then we could just regenerate parse.c and be done) -- I expect plenty of changes to the support code as well, sometimes systematic changes like python/cpython#19987. |
Superseded by #138 |
Fixes #118