You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue
CPU usage increases dramatically when there is a pow function in the code. The specific process seems to be this one ../start/coc-pyright/node_modules/pyright/langserver.index.js--node-ipc--clientProcessId=xxxxxxx.
During this time, the CocAction doHover cannot be called. CPU usage can stay high for 3+ minutes before it seemingly resolves, doHover functionality is restored, and the parameter inlay hints are displayed.
Minimum reproducable steps
echo "pow(1,-1,1)" > code.py
nvim code.py
Hopefully it's not just me. May also be an upstream issue, but I'm not sure.
Afternote: Also happens with pow(1,1)
What's the output of :CocCommand pyright.version
coc-pyright 1.1.365 with Pyright 1.1.365
What's the output of :CocCommand workspace.showOutput Pyright
This was captured moments after opening the file. If I wait for it to resolve, then the output is 6000+ lines long, so I won't post it unless asked
OK, I think I found the culprit after spending a bunch of time messing with the settings. The issue goes away when I set inlayHints.parameterTypes = false, so it's probably something about how that's implemented. I'm happy to have this marked as closed if you are.
coc-pyright uses getCallNodeAndActiveParameterIndex from Pyright to add parameter inlayHint, and Pyright is slow on this case, we can't do anything for this by now. Leave this open for future debugging.
Issue
CPU usage increases dramatically when there is a pow function in the code. The specific process seems to be this one
../start/coc-pyright/node_modules/pyright/langserver.index.js--node-ipc--clientProcessId=xxxxxxx
.During this time, the CocAction
doHover
cannot be called. CPU usage can stay high for 3+ minutes before it seemingly resolves,doHover
functionality is restored, and the parameter inlay hints are displayed.Minimum reproducable steps
Hopefully it's not just me. May also be an upstream issue, but I'm not sure.
Afternote: Also happens with
pow(1,1)
What's the output of
:CocCommand pyright.version
coc-pyright 1.1.365 with Pyright 1.1.365
What's the output of
:CocCommand workspace.showOutput Pyright
This was captured moments after opening the file. If I wait for it to resolve, then the output is 6000+ lines long, so I won't post it unless asked
The text was updated successfully, but these errors were encountered: