Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPython 3 async not supported #887
Comments
|
Hi @adrienverge first of all, thanks for your interest and for the nice report! We know that we have several issues with the folding function of Speaking for myself, I'm not using python-mode folding feature, I've disabled it and I'm using 'Konfekt/FastFold' and 'tmhedberg/SimpylFold' vim plugins to provide this feature. If you want to help us fixing the problems with our current folding feature, we would gladly accept a PR with such improvement (which is very much needed). |
|
Hi Diego, Thanks for your fast answer, 'Konfekt/FastFold' and 'tmhedberg/SimpylFold' are incredible: they solve my I've looked a bit at python-mode folding code, and it looks OK to me ( Thanks again! I let choose whether this issue should be closed, or kept as reference for other users experiencing the same. Adrien |
Disable python-mode folding and enable it with 'tmhedberg/SimpylFold' (+ 'Konfekt/FastFold'), which solves the bug (with `async` or classes in classes), and is much faster. For reference see the discussion at python-mode/python-mode#887 (comment)
Disable python-mode folding and enable it with 'tmhedberg/SimpylFold' (+ 'Konfekt/FastFold'), which solves the bug (with `async` or classes in classes), and is much faster. For reference see the discussion at python-mode/python-mode#887 (comment)
|
It seems completion on self in an |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
@Stale the issue is not solved, but let it open so that other users can find it easily. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
@Stale the issue is not solved, but let it open so that other users can find it easily. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
@Stale here is a comment so that you don't close the issue. It's not solved yet. Please let it open so that other users can find it easily. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
@Stale here is a comment so that you don't close the issue. It's not solved yet. Please let it open so that other users can find it easily. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
@Stale you are annoying. This issue is not solved and should remain open so that other users can find it easily. |
|
@adrienverge is this issue really still happening? Have you tried it again with our latest release? Because for me it seems to be working fine. I mean, I had to add |
|
Hi Diego, thanks for the tip, I didn't know about In the meantime, I still use |
|
Hi @adrienverge, nice to know! To be very honest with you, It will be hard for me to dedicate time to python-mode folding feature. Especially considering that we have FastFold and SimplyFold that do the job very well. And python-mode folding feature is indeed knowingly problematic. So, I'll let it up to you regarding leaving this issue opened or not. I don't mind. ;) |
Hello,
Before you ask: I have read the docs and use
let g:pymode_python = 'python3';-)asynckeywords are not recognized, are reported as syntax errors and prevent correct folding. This happens on Fedora, both with Vim and Neovim.To make sure this was not related to my system or
__pycache__(like reported by @kierun on #845), I reproduced the bug on a fresh virtual machine:~/.vimrccontents::versionandvim -i NONE -u ~/.vim/debugvimrc.vim test.py).ropeprojectis created (withconfig.pyglobalnameshistoryobjectdbinside it)Result: folding does work for regular functions, but not for async ones.
asynckeywords are reported as syntax errors. It's the same for Vim and Neovim.Am I doing something wrong?
I'd be glad to provide more info and try anything!