-
Notifications
You must be signed in to change notification settings - Fork 294
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
View value in Data Viewer exception when viewing class variables #4606
Comments
Great catch, this is happening because we are using the |
Thanks for the fast response and solution :) |
No problem! Fix should become available in our February release (in a couple weeks' time). Thanks for taking the time to report a bug 😊 |
Validated. tc.a is viewable now in the data viewer. |
Not sure if this patch has been already applied but in ms-toolsai.jupyter v2021.2.603412351 the problem is still persistent... |
@q-wertz the fix for this went out in v2021.2.603412351. I'm not able to reproduce the class variables issue, i.e. if I run the code you provided above and right click on |
Sorry restarted the IDE and now it works 🎉 |
Awesome, thanks for confirming and again thanks for reporting a bug! |
Environment data
python.languageServer
setting: PylanceExpected behaviour
When creating a class it should be possible to view the instance variables in the the Data Viewer.
Actual behaviour
Instance variables cannot be viewed in the data viewer and errors are raised. In the case in the mp4 below:
In a bigger class I get some different error, just cannot reproduce it in a short example:
Steps to reproduce:
bugreport2.mp4
As you can see, in the second part of the video after adding variable
a
when I try to open thetc.a
class instance thea
variable is shown.To me it looks like the wrong variable name is handed over to the Data Viewer.
Sample Code:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: