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
Reproduced the issue after updating with pip install -U spyder
Tried basic troubleshooting (if a bug/error)
Restarted Spyder
Retried in a new development environment
Tried the other applicable steps from the Troubleshooting Guide
Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
I am currently writing an python module in a spyder project. The __init__.py files classes aren't shown in the outline. I am not able to find any error message in the debug output.
If I rename the file to test.py, the outline immediately shows the classes as intended. After renaming the file back to __init__.py the outline doesn't show any classes again.
Outside a spyder project the outline works for the file. When I open the file in a different project it doesn't work.
After testing the things above I closed the project - and the outline didn't work, even after reopening the file.
I am therefore not able to postulate a rule when the problem occurs. It seems like it is more likely to occur within spyprojects.
Update 1
When looking at some code in the spyder repository I had this issue with other files as well. One didn't work even after renaming, the outline showed its loading animation. Another file worked after placing the cursor inside the linked line.
What is the expected output? What do you see instead?
I have the same problem. When looking at an __init__.py file in the editor, the outline pane does not display any variables, functions, or classes. Special comments "# ----" and cells "# %%" do still appear in the outline, but cell hierarchy is flattened ("# %%%" does not appear nested beneath "# %%" in the outline). Using Spyder 5.0.1, Python 3.8.5 64-bit, Qt 5.9.7, PyQt5 5.9.2, Windows 10
Issue Report Checklist
pip install -U spyder
Problem Description
I am currently writing an python module in a spyder project. The
__init__.py
files classes aren't shown in the outline. I am not able to find any error message in the debug output.If I rename the file to
test.py
, the outline immediately shows the classes as intended. After renaming the file back to__init__.py
the outline doesn't show any classes again.Outside a spyder project the outline works for the file. When I open the file in a different project it doesn't work.
After testing the things above I closed the project - and the outline didn't work, even after reopening the file.
I am therefore not able to postulate a rule when the problem occurs. It seems like it is more likely to occur within spyprojects.
Update 1
When looking at some code in the spyder repository I had this issue with other files as well. One didn't work even after renaming, the outline showed its loading animation. Another file worked after placing the cursor inside the linked line.
What is the expected output? What do you see instead?
I see:
I expect something like that:
Versions
Dependencies
The text was updated successfully, but these errors were encountered: