0

Title pretty much says it all. Autocomplete works fine for variables I declare in the main script body, but when I instantiate an object of a class, autocomplete doesn't predict any of the class's variables or methods. I believe the extension Pylance should be providing this feature? But it has 2 uncaught errors: illegal state - object is disposed. Google doesn't seem to have anything about this error in this circumstance. Can anyone help please?

I'm definitely setting up my classes and calling the methods fine, because if I type it all out my program runs fine. I'd just like the little window with suggestions as I'm bad at programming and they really help me. I've tried re-installing Pylance but the 2 errors persist.

4
  • I think we need more info to figure out what is happening here. And btw, it is not necessary to apologize for asking questions on this site. Commented Sep 24 at 11:39
  • Thanks for your comment :) What further info do you think would help? Commented Sep 24 at 13:49
  • Please create a minimal reproducible example. It's impossible to tell what happened when there's no code. Commented Sep 25 at 0:09
  • We have no idea what plugins and what versions you are using, what code this happens on, or any info on that error. Commented Sep 25 at 8:30

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.