-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cannot show tree layout in the Outline pane when using custom interpreter with a different architecture (ARM vs x86) #23636
Comments
I just found something wierd and thought to add it here, in case this information can help debug. I have many scirpts (i.e., tabs) open in Spyder. After switching to the new Could you help with this? Thank you in advance! |
Hi @wxyeah thank you for the report! Could it be possible for you to see if restarting the Python Language Server helps? To do that you can check https://docs.spyder-ide.org/current/troubleshooting/common-illnesses.html#lsp-has-stopped-working Also, what happens when you change again the selected interpreter for the Let us know if you can share more info and/or if something of the above helps! |
Hi Daniel, thank you for your kind reply! Below please find my feedback about 4 tests:
Based on above tests, it seems the issue is tied to the new pkg in
Name Version Build Channel
appdirs 1.4.4 pypi_0 pypi
appnope 0.1.2 py39hecd8cb5_1001
asttokens 2.0.5 pyhd3eb1b0_0
attrs 25.1.0 pypi_0 pypi
backcall 0.2.0 pyhd3eb1b0_0
blas 1.0 openblas
bleach 6.2.0 pypi_0 pypi
blosc 1.21.3 hcec6c5f_0
bokeh 3.4.3 pypi_0 pypi
bottleneck 1.4.2 py39hf3fd67a_0
brotli-python 1.0.9 py39h6d0c2b6_9
bzip2 1.0.8 h6c40b1e_6
c-ares 1.19.1 h6c40b1e_0
c-blosc2 2.12.0 hcf5af9b_0
ca-certificates 2025.1.31 h8857fd0_0 conda-forge
certifi 2025.1.31 pypi_0 pypi
charset-normalizer 3.4.1 pypi_0 pypi
click 8.1.8 pypi_0 pypi
cloudpickle 3.0.0 py39hecd8cb5_0
comm 0.2.1 py39hecd8cb5_0
contourpy 1.2.1 py39h1962661_1
cycler 0.11.0 pyhd3eb1b0_0
cython 3.0.11 py39h46256e1_1
cytriangle 1.0.3 pypi_0 pypi
debugpy 1.8.11 py39h6d0c2b6_0
decorator 5.1.1 pyhd3eb1b0_0
exceptiongroup 1.2.0 py39hecd8cb5_0
executing 0.8.3 pyhd3eb1b0_0
fonttools 4.55.3 py39h46256e1_0
freetype 2.12.1 hd8bbffd_0
h5py 3.12.1 py39ha611a00_0
hdf5 1.12.1 ha01d115_3
idna 3.10 pypi_0 pypi
importlib-metadata 8.5.0 py39hecd8cb5_0
importlib_metadata 8.5.0 hd3eb1b0_0
importlib_resources 6.4.0 py39hecd8cb5_0
ipykernel 6.29.5 py39hecd8cb5_1
ipython 8.15.0 py39hecd8cb5_0
ipywidgets 8.1.5 pypi_0 pypi
jedi 0.19.2 py39hecd8cb5_0
jenn 1.0.8 pypi_0 pypi
jinja2 3.1.5 pypi_0 pypi
joblib 1.4.2 pyhd8ed1ab_1 conda-forge
jpeg 9e h46256e1_3
jsonpointer 3.0.0 pypi_0 pypi
jsonschema 4.23.0 pypi_0 pypi
jsonschema-specifications 2024.10.1 pypi_0 pypi
jupyter_client 8.6.3 py39hecd8cb5_0
jupyter_core 5.7.2 py39hecd8cb5_0
jupyterlab-widgets 3.0.13 pypi_0 pypi
kiwisolver 1.4.4 py39hcec6c5f_0
krb5 1.20.1 h428f121_1
lcms2 2.16 h4f63f0c_0
lerc 4.0.0 h6d0c2b6_0
libcurl 8.11.1 h9bcc28a_0
libcxx 19.1.7 hf95d169_0 conda-forge
libdeflate 1.22 h46256e1_0
libedit 3.1.20230828 h6c40b1e_0
libev 4.33 h9ed2024_1
libffi 3.4.4 hecd8cb5_1
libgfortran 5.0.0 11_3_0_hecd8cb5_28
libgfortran5 11.3.0 h9dfd629_28
libnghttp2 1.57.0 h9beae6a_0
libopenblas 0.3.21 h54e7dc3_0
libpng 1.6.39 h6c40b1e_0
libsodium 1.0.18 h1de35cc_0
libssh2 1.11.1 h3a17b82_0
libtiff 4.5.1 h6fa9cd1_1
libwebp-base 1.3.2 h46256e1_1
linkify-it-py 2.0.3 pypi_0 pypi
llvm-openmp 19.1.7 ha54dae1_0 conda-forge
lz4-c 1.9.4 hcec6c5f_1
lzo 2.10 haf1e3a3_2
markdown 3.7 pypi_0 pypi
markdown-it-py 3.0.0 pypi_0 pypi
markupsafe 3.0.2 pypi_0 pypi
matlabengine 24.2 pypi_0 pypi
matplotlib 3.9.2 py39hecd8cb5_1
matplotlib-base 3.9.2 py39h919b35b_1
matplotlib-inline 0.1.6 py39hecd8cb5_0
mdit-py-plugins 0.4.2 pypi_0 pypi
mdurl 0.1.2 pypi_0 pypi
more-itertools 10.6.0 pypi_0 pypi
narwhals 1.24.2 pypi_0 pypi
ncurses 6.4 hcec6c5f_0
nest-asyncio 1.6.0 py39hecd8cb5_0
numexpr 2.10.1 py39hc59c7be_0
numpy 1.26.4 py39hf6dca73_0
numpy-base 1.26.4 py39hd8f4981_0
openjpeg 2.5.2 hbf2204d_0
openseespy 3.4.0.2 pypi_0 pypi
openseespymac 3.4.0.2 pypi_0 pypi
openssl 3.4.0 hc426f3f_1 conda-forge
opstool 0.8.7 pypi_0 pypi
opsvis 1.1.13 pypi_0 pypi
orjson 3.10.15 pypi_0 pypi
packaging 24.2 py39hecd8cb5_0
pandas 2.2.3 py39h6d0c2b6_0
panel 1.4.5 pypi_0 pypi
param 2.2.0 pypi_0 pypi
parso 0.8.4 py39hecd8cb5_0
pexpect 4.8.0 pyhd3eb1b0_3
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 11.1.0 py39h47bf62f_0
pip 25.0 py39hecd8cb5_0
platformdirs 3.10.0 py39hecd8cb5_0
plotly 6.0.0 pypi_0 pypi
pooch 1.8.2 pypi_0 pypi
prompt-toolkit 3.0.43 py39hecd8cb5_0
psutil 5.9.0 py39h46256e1_1
ptyprocess 0.7.0 pyhd3eb1b0_2
pure_eval 0.2.2 pyhd3eb1b0_0
py-cpuinfo 9.0.0 py39hecd8cb5_0
pybind11-abi 4 hd3eb1b0_1
pydoe3 1.0.4 pypi_0 pypi
pygments 2.15.1 py39hecd8cb5_1
pyparsing 3.2.0 py39hecd8cb5_0
pytables 3.9.2 py39h85d5a67_0
python 3.9.21 hce00570_1
python-dateutil 2.9.0post0 py39hecd8cb5_2
python-tzdata 2023.3 pyhd3eb1b0_0
python_abi 3.9 2_cp39 conda-forge
pytz 2024.1 py39hecd8cb5_0
pyvista 0.44.2 pypi_0 pypi
pyviz-comms 3.0.4 pypi_0 pypi
pyyaml 6.0.2 pypi_0 pypi
pyzmq 26.2.0 py39h6d0c2b6_0
readline 8.2 hca72f7f_0
referencing 0.36.2 pypi_0 pypi
requests 2.32.3 pypi_0 pypi
rich 13.9.4 pypi_0 pypi
rpds-py 0.22.3 pypi_0 pypi
scikit-learn 1.6.1 py39he8fe7b2_0 conda-forge
scipy 1.13.1 py39hb060737_1
scooby 0.10.0 pypi_0 pypi
seaborn 0.13.2 py39hecd8cb5_0
sectionproperties 3.3.0 pypi_0 pypi
setuptools 72.1.0 py39hecd8cb5_0
shapely 2.0.7 pypi_0 pypi
six 1.16.0 pyhd3eb1b0_1
smt 2.6.3 pypi_0 pypi
spyder-kernels 2.5.0 py39hecd8cb5_0
sqlite 3.45.3 h6c40b1e_0
stack_data 0.2.0 pyhd3eb1b0_0
threadpoolctl 3.5.0 pyhc1e730c_0 conda-forge
tk 8.6.14 h4d00af3_0
tornado 6.4.2 py39h46256e1_0
tqdm 4.67.1 pypi_0 pypi
traitlets 5.14.3 py39hecd8cb5_0
triangle 20230923 pypi_0 pypi
typing_extensions 4.12.2 py39hecd8cb5_0
tzdata 2025a h04d1e81_0
uc-micro-py 1.0.3 pypi_0 pypi
unicodedata2 15.1.0 py39h46256e1_1
uqpylab 1.0.2 pypi_0 pypi
urllib3 2.3.0 pypi_0 pypi
vfo 0.0.12 pypi_0 pypi
vtk 9.3.1 pypi_0 pypi
wcwidth 0.2.5 pyhd3eb1b0_0
webencodings 0.5.1 pypi_0 pypi
wheel 0.45.1 py39hecd8cb5_0
widgetsnbextension 4.0.13 pypi_0 pypi
wurlitzer 3.0.2 py39hecd8cb5_0
xyzservices 2025.1.0 pypi_0 pypi
xz 5.4.6 h6c40b1e_1
zeromq 4.3.5 hcec6c5f_0
zipp 3.21.0 py39hecd8cb5_0
zlib 1.2.13 h4b97444_1
zlib-ng 2.0.7 h6c40b1e_0
zstd 1.5.6 h138b38a_0
pkg in |
Thank you for the extra info @wxyeah ! So indeed seems like there is an incompatibility due to the architecture that prevents some features like the outline to work (which is something that the Python Language Server is in charge of). In fact, are completions and linting working for you when using the As a workaround for you to try, could you install Spyder over the What do you think about this one @ccordoba12 ? Is there something over Spyder or maybe over the |
Thank you @dalthviz for your reply! Below are my answers to your feedback:
|
I don't think so. This is a very subtle problem, so probably not easy to fix in Jedi (python-lsp-server is just a wrapper for it regarding symbols). Perhaps the best we could do is to show a warning when interpreters for different architectures are selected. |
I am on Macbook Air M3 chip, and I'm using Anaconda for env management. I installed Spyder (version 5.5.1) into
env_1
. I've been working with this setup for quite a while w/o any problem.Today I had to create a new env (let's call it
env_2
) that is configured to x86 architechture, because one essential Python pkg is only compatible with x86 architechture but not ARM architechture. I installed spyder kernel to thisenv_2
byconda install spyder-kernels=2.5
so that I don't need to install Spyder twice.During the entire process, I had the Spyder open. I was able to switch the Python Interpreter to this new
env_2
in Spyder and run code successfully. But I notice that I couldn't expand the sections to show the tree layout in the Outline pane as before. I have many sections created by#%%
and also function definitions in the script. Previously I could see them nicely displayed as a tree and I relied on this feature to navigate my code. Now they are all gone. Please see the screenshot below. I right clicked and tried all options including 'Expand' and 'Restore' but none worked.Other things I tried but didn't work:
env_1
, but the tree layout still didn't show up.Since the only change I've made is creating the new
env_2
, I suppose that's the cause of the issue. By any chance, could anyone help me with this? I really need the tree layout as my code stucture is complex and the script is pretty long. Thank you in advance!The text was updated successfully, but these errors were encountered: