-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Intellisense stops working for python files when using the new 'Outline' feature #1721
Comments
initially things seem to work fine.
killing the python completion.py sometimes works... |
|
Can this be related with this question I did in SO? If this comment violate de rules, I'll remove. Thanks. |
As a further note.
thx |
Does Jedi leave a DB file behind. What i also notice is that the Outline in insiders also stops working. If i close all the open editors, open a new file, then the outline for the newly opened file is identical from to when it stopped working. In following diagram you can see the open file is ccconfig_mod.py. |
This is also happening to me, and it's incredibly frustrating. VScode-Python kills all intellisense for me. |
A better solution to get intellisense back working is to just disable the extension Python. With it disabled, intellisense seems to be working. Obviously now ive lost
Extremely disappointing that it has come to this. |
That's where I'm at as well. It's incredibly frustrating to have something so critical not work on the canonical extension for python language support in VSCode. This happens for me regardless of virtual environment, python language, distribution, etc. |
@joristaglio Please respect the devs, they're doing great work you're not paying for and they only have so many hands. If you want to have this resolved earlier, contribute your time and help the Microsoft team reproduce this issue. I'm using Python in my everyday work yet I never managed to stumble upon this problem so it's likely that it only affects a small fraction of the community. |
appreciate the devs and the effort. |
This depends on type of the project and source code. Completion process basically runs Jedi out of process. There is a shallow wrapper there over Jedi to handle out of process requests from the extension for the completion, tooltips etc. One way to try and repro (and maybe report directly in Jedi GH) is to import Jedi (it is in Python) and write short code that asks Jedi to return completions for a given file and location. Just see if it works as is. |
@derekwallace - no, Jedi does not appear to cache results of persist a database. |
I get similar reports in patrys/vscode-code-outline#134 (this is older than the built-in Outline mentioned above but works in the same way) which suggests that over time the SymbolProvider stops working. |
I decided to create a brand new workspace (on network p: drive). I have the same issue with Outline and symbols. Initially work for a few mins and then stop. As a note, i have another issue open wrt performance of the Debugger. See #1744 I then created exact same workspace on c: |
@derekwallace We've had other reported issues with network drives. Could you provide the sample files that triggers the issue for you? |
HI, Attached the workspace below , when i use the word "freeze" it means
Here is what i do to trigger the issue.
I cant find a specific pattern that causes it. but i can always get it to happen.
I hope this is of use. Derek |
I just realized something: where is that outline coming from? Do you have another extension installed to show that? If so can you disable all extensions but ours and see if this is still a problem? |
@brettcannon I removed all extensions and the behavior continued with only the Python extension– and the behavior was not also triggered by any of my other extensions if I enabled them each one at a time. |
@brettcannon Both outline implementations (my extension and the one built into VSCode) call "executeSymbolProvider" to obtain a list of symbols and their ranges. |
@brettcannon disabled all extensions. Same behaviour. A further note. Disable the Python extension, reload, and now intellisense is working (without Python knowledge, and outline etc...). But at least i get some code completion and my snippets work. Enable Python and reload. Outline starts working, and quickly it stops and intellisese becomes unresponsive. Its clearly the Python extension. |
@DonJayamanne i downloaded and installed the developer version of the python extension. Unfortunately the issue remains. Same/similar behavior as before. Error message in console. This seems to happen when intellisense becomes unresponsive and outline completely stops refreshing.
|
@DonJayamanne To be sure i re-tried and i saw the same behaviour. At the moment that intellisense became un-responsive the below error appeared in console.
|
|
@DonJayamanne Uninstalled and deleted the folders. Installed .vsix and the same behavior. Also get lots of errors from parso as its still 0.2.0 |
saw this error while testing again.
|
@DonJayamanne Why is the issue closed? |
@derekwallace because we updated to Parso 0.2.1 in |
I tested the development build of the python extension and it doesn't
resolve the issue. I was asked to test it and provide feedback . I have
done this and report that the issue persists. I don't see how the issue can
be closed.
…On Tue, 5 Jun 2018, 21:56 Brett Cannon, ***@***.***> wrote:
@derekwallace <https://github.com/derekwallace> because we updated to
Parso 0.2.1 in master which you can test in either our development build
or wait until our 2018.6.0 release.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1721 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFUOVpmTSFu74Ra3HosOeQM5f2qxqGHaks5t5vCUgaJpZM4UJPik>
.
|
Is there any update? Did the dev build include more than the parso update? Did it have something to denounce the outline update. |
@derekwallace I understand this can be quite frustrating for you as well, hence can I suggest you just turn off the
You can see all of the updates to this issue here, please scroll up and you'll have the answers to all of your questions. Again all of this information you see is on this issue (including the links to the VS Code issue). Once again, please consider turn off ( |
I appreciate the support trying to resolve the issues. My colleagues have
the same issue. I'd be confident others do as well.
I have the developer build of python extension with parso update.
I looked at the vscode update. Is this in the insiders build? How do I know
I have this update?
I see from other issues that you seem to be working on another python
analysis extension. Is there any early access to this that I could try?
Thx.
Derek.
…On Wed, 6 Jun 2018, 19:11 Don Jayamanne, ***@***.***> wrote:
@derekwallace <https://github.com/derekwallace>
Please understand that we are doing our best to resolve issues. Also, at
this stage you seem to be the only user experiencing this issue.
I understand this can be quite frustrating for you as well, hence can I
suggest you just turn off the Outline view for the moment.
Is there any update?
You can see all of the updates to this issue here, please scroll up and
you'll have the answers to all of your questions.
Also VS Code have added some additional fixes at their end (see here microsoft/vscode#51096
(comment)
<microsoft/vscode#51096 (comment)>
).
*Again all of this information you see are on this issue (including the
links to the VS Code issue).*
Once again, please consider turn off (hiding) the Outline view for the
moment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1721 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFUOVjGBTUyP3EJ583ixkC4BgR-h4se2ks5t6BtFgaJpZM4UJPik>
.
|
The parso update is in the latest public release of The new analysis engine is available for testing if you know the hidden setting to switch it on, but I'm not ready to give that out for this instance as we have not tested it yet with the Outline view. |
This seems to have been fixed as I can't reproduce at least with a checkout build. |
I don't think it should be closed. With OUTLINE enabled, python code auto-complete takes 10-15 seconds to produce a suggestion, then even longer to show function/method input arguments. Disabling Outline, makes everything normal again. this is for VCcode 1.24.0 on Ubuntu 16.04, with python 3.6 over Anaconda (with all the latest packages, including parso 0.2.1) |
I don't think it should be closed either.
The updates have improved behaviour. In general I've found that the micro
test project both outline and intellisense work.
However on my large network drive project the outline is unusable and when
enabled makes the intellisense completely unresponsive. Disabling and
intellisense is just about workable. Sometimes responsive, Sometimes it's
laggy,
So there is still something going on that is interfering with normal
behaviour.
…On Tue, 12 Jun 2018, 18:38 myron, ***@***.***> wrote:
I don't think it should be closed.
With OUTLINE enabled, python code auto-complete takes 10-15 seconds to
produce a suggestion, then even longer to show function/method input
arguments. Disabling Outline, makes everything normal again.
this is for VCcode 1.24.0 on Ubuntu 16.04, with python 3.6 over Anaconda
(with all the latest packages, including parso 0.2.1)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1721 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFUOVrpgY6mobqFcdkP1ba-hdWJbyTJkks5t8ELtgaJpZM4UJPik>
.
|
"there is still something going on that is interfering with normal behaviour", and that behaviour is the outline view. 😉 VS Code is basically hammering Jedi every 250 ms to re-parse the file and analyze it for symbols. IOW there's not much we can do here short of throttling even more or magically making Jedi faster (also realize the Outline view is in preview for VS Code for a reason 😉; we actually had to provide the feedback to even have the 250 ms throttle added as originally it was every key press triggering a re-scan). We are hoping to have the Outline view supported by our experimental analysis engine soon which should help alleviate this performance bottleneck. Once #1934 is merged and we have verified the new analysis engine works with the outline view I can provide instructions here on how to flip it on. |
Thanks Brett for providing clear explanation of what is happening. Do you
think it would be possible that the 250 could be a setting so that users
that have an issue would be able to investigate finding a sweet spot that
works sufficiently for them? Or the ability to refresh the outline only on
file load &save?
If you want any feedback or roadtest of the new engine I'm willing to try.
Thanks
…On Wed, 13 Jun 2018, 14:57 Brett Cannon, ***@***.***> wrote:
"there is still something going on that is interfering with normal
behaviour", and that behaviour is the outline view. 😉 VS Code is
basically hammering Jedi every 250 ms to re-parse the file and analyze it
for symbols. IOW there's not much we can do here short of throttling even
more or magically making Jedi faster (also realize the Outline view is in
preview for VS Code for a reason 😉; we actually had to provide the
feedback to even have the 250 ms throttle added as originally it was every
key press triggering a re-scan).
We are hoping to have the Outline view supported by our experimental
analysis engine soon which should help alleviate this performance
bottleneck. Once #1934
<#1934> is merged and we
have verified the new analysis engine works with the outline view I can
provide instructions here on how to flip it on.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1721 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFUOVnyJ4XGy5fhlwA1lBC13pUFPd8zMks5t8WCXgaJpZM4UJPik>
.
|
The latest build of the new language server should have the Outline functioning as expected. You can download a development build of the extension to test it out. |
Environment data
Actual behavior
using network drive as project is hosted on a shared drive.
intellisense becomes un-responsive after a few python files are opened.
snippets also stops working
intellisense will work fine for other file types.
using process explorer i kill "python completion.py".
intellisense becomes responsive and works correct.
Expected behavior
intellisense always work.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: