Skip to content
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

Open
wxyeah opened this issue Feb 4, 2025 · 6 comments

Comments

@wxyeah
Copy link

wxyeah commented Feb 4, 2025

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 this env_2 by conda 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:

  • I started a new Spyder instance from env_1, but the tree layout still didn't show up.
  • I created a new script and added sections and functions to it, still no luck.

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!

Image

@wxyeah
Copy link
Author

wxyeah commented Feb 4, 2025

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 env_2 (i.e., switching the Python Interpreter), I changed two scripts to run some test. The issue of 'disappeared tree layout' only happened to these two changed scripts. For the other scripts, I can still see the layout tree (see screenshot below). However, after I zoomed in (cmd + +), the tree also disappeared.

Could you help with this? Thank you in advance!

Image

@dalthviz
Copy link
Member

dalthviz commented Feb 4, 2025

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 env_1 one? And could it be possible for you to share the output of running conda list for your envs (env_1 and env_2)?

Let us know if you can share more info and/or if something of the above helps!

@wxyeah
Copy link
Author

wxyeah commented Feb 4, 2025

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 env_1 one? And could it be possible for you to share the output of running conda list for your envs (env_1 and env_2)?

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:

  1. I tried restarting PLS under env_2 (x86 architechture) following your suggestion, but it didn't help.
  2. I then changed to the interpreter for env_1 (ARM architechture) and opened a new console. The tree didn't show up for the already opened scripts, but I opened a new scirpt and was able to see the tree.
  3. I then changed back the interpreter for env_2 and opened a new console. I saw the tree was still there (possibly a legacy from above test 2), but the tree disappeared after I changed the script (adding a line of code). I restarted LSP but it didn't help. I opened another new script and still no tree.
  4. Then, I changed to the interpreter for env_1 and opened a new console. Initially the tree didn't show up (possibly a legacy from above test 3). But the tree showed up if I close and reopen the script.

Based on above tests, it seems the issue is tied to the new env_2. Below is the conda list for the two env. Please let me know if there is anything I can do to help bring back this feature. Thank you so much!

pkg in env_2:

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 env_1:
Name Version Build Channel
alabaster 0.7.16 py39hca03da5_0
appdirs 1.4.4 pypi_0 pypi
applaunchservices 0.3.0 py39hca03da5_0
appnope 0.1.2 py39hca03da5_1001
arrow 1.2.3 py39hca03da5_1
astroid 2.14.2 py39hca03da5_0
asttokens 2.0.5 pyhd3eb1b0_0
atomicwrites 1.4.0 py_0
attrs 23.1.0 py39hca03da5_0
autopep8 2.0.4 pyhd3eb1b0_0
babel 2.11.0 py39hca03da5_0
backcall 0.2.0 pyhd3eb1b0_0
beautifulsoup4 4.12.3 py39hca03da5_0
binaryornot 0.4.4 pyhd3eb1b0_1
black 24.4.2 py39hca03da5_0
blas 1.0 openblas
bleach 4.1.0 pyhd3eb1b0_0
blosc 1.21.3 h313beb8_0
bokeh 3.4.3 pypi_0 pypi
bottleneck 1.3.7 py39hbda83bc_0
brotli 1.0.9 h80987f9_8
brotli-bin 1.0.9 h80987f9_8
brotli-python 1.0.9 py39h313beb8_8
bzip2 1.0.8 h80987f9_6
c-ares 1.19.1 h80987f9_0
c-blosc2 2.12.0 h7df6c2f_0
ca-certificates 2024.11.26 hca03da5_0
certifi 2024.12.14 py39hca03da5_0
chardet 4.0.0 py39hca03da5_1003
charset-normalizer 3.3.2 pyhd3eb1b0_0
click 8.1.7 py39hca03da5_0
cloudpickle 3.0.0 py39hca03da5_0
colorama 0.4.6 py39hca03da5_0
comm 0.2.1 py39hca03da5_0
contourpy 1.2.0 py39h48ca7d4_0
cookiecutter 2.6.0 py39hca03da5_0
cycler 0.11.0 pyhd3eb1b0_0
cyrus-sasl 2.1.28 h9131b1a_1
cython 3.0.10 py39h80987f9_0
cytriangle 1.0.2 pypi_0 pypi
debugpy 1.6.7 py39h313beb8_0
decorator 5.1.1 pyhd3eb1b0_0
defusedxml 0.7.1 pyhd3eb1b0_0
diff-match-patch 20200713 pyhd3eb1b0_0
dill 0.3.8 py39hca03da5_0
docstring-to-markdown 0.11 py39hca03da5_0
docutils 0.18.1 py39hca03da5_3
exceptiongroup 1.2.0 py39hca03da5_0
executing 0.8.3 pyhd3eb1b0_0
flake8 7.0.0 py39hca03da5_0
fonttools 4.51.0 py39h80987f9_0
freetype 2.12.1 h1192e45_0
gettext 0.21.0 h13f89a0_1
glib 2.78.4 h313beb8_0
glib-tools 2.78.4 h313beb8_0
gst-plugins-base 1.14.1 h313beb8_1
gstreamer 1.14.1 h80987f9_1
h5py 3.11.0 pypi_0 pypi
hdf5 1.12.1 h05c076b_3
icu 73.1 h313beb8_0
idna 3.7 py39hca03da5_0
imagesize 1.4.1 py39hca03da5_0
importlib-metadata 7.0.1 py39hca03da5_0
importlib_metadata 7.0.1 hd3eb1b0_0
importlib_resources 6.4.0 py39hca03da5_0
inflection 0.5.1 py39hca03da5_0
intervaltree 3.1.0 pyhd3eb1b0_0
ipykernel 6.28.0 py39hca03da5_0
ipython 8.15.0 py39hca03da5_0
ipywidgets 8.1.5 pypi_0 pypi
isort 5.13.2 py39hca03da5_0
jaraco.classes 3.2.1 pyhd3eb1b0_0
jedi 0.19.1 py39hca03da5_0
jellyfish 1.0.1 py39h15d1925_0
jenn 1.0.8 pypi_0 pypi
jinja2 3.1.4 py39hca03da5_0
joblib 1.4.2 pyhd8ed1ab_0 conda-forge
jpeg 9e h80987f9_2
jsonpointer 3.0.0 pypi_0 pypi
jsonschema 4.23.0 pypi_0 pypi
jsonschema-specifications 2023.7.1 py39hca03da5_0
jupyter_client 8.6.0 py39hca03da5_0
jupyter_core 5.7.2 py39hca03da5_0
jupyterlab-widgets 3.0.13 pypi_0 pypi
jupyterlab_pygments 0.2.2 py39hca03da5_0
keyring 24.3.1 py39hca03da5_0
kiwisolver 1.4.4 py39h313beb8_0
krb5 1.20.1 hf3e1bf2_1
lazy-object-proxy 1.10.0 py39h80987f9_0
lcms2 2.12 hba8e193_0
lerc 3.0 hc377ac9_0
libbrotlicommon 1.0.9 h80987f9_8
libbrotlidec 1.0.9 h80987f9_8
libbrotlienc 1.0.9 h80987f9_8
libclang 14.0.6 default_h1b80db6_1
libclang13 14.0.6 default_h24352ff_1
libcurl 8.11.1 hde089ae_0
libcxx 18.1.8 h167917d_1 conda-forge
libdeflate 1.17 h80987f9_1
libedit 3.1.20230828 h80987f9_0
libev 4.33 h1a28f6b_1
libffi 3.4.4 hca03da5_1
libgfortran 5.0.0 11_3_0_hca03da5_28
libgfortran5 11.3.0 h009349e_28
libglib 2.78.4 h0a96307_0
libiconv 1.16 h80987f9_3
libllvm14 14.0.6 h7ec7a93_3
libnghttp2 1.57.0 h62f6fdd_0
libopenblas 0.3.21 h269037a_0
libpng 1.6.39 h80987f9_0
libpq 12.17 h02f6b3c_0
libsodium 1.0.18 h1a28f6b_0
libspatialindex 1.9.3 hc377ac9_0
libsqlite 3.46.0 hfb93653_0 conda-forge
libssh2 1.11.1 h3e2b118_0
libtiff 4.5.1 h313beb8_0
libwebp-base 1.3.2 h80987f9_0
libxml2 2.10.4 h0b34f26_2
libzlib 1.2.13 hfb2fe0b_6 conda-forge
linkify-it-py 2.0.3 pypi_0 pypi
llvm-openmp 18.1.8 hde57baf_0 conda-forge
lz4-c 1.9.4 h313beb8_1
lzo 2.10 h1a28f6b_2
markdown 3.6 pypi_0 pypi
markdown-it-py 2.2.0 py39hca03da5_1
markupsafe 2.1.3 py39h80987f9_0
matlabengine 24.1.2 pypi_0 pypi
matplotlib 3.8.4 py39hca03da5_0
matplotlib-base 3.8.4 py39h46d7db6_0
matplotlib-inline 0.1.6 py39hca03da5_0
mccabe 0.7.0 pyhd3eb1b0_0
mdit-py-plugins 0.4.1 pypi_0 pypi
mdurl 0.1.0 py39hca03da5_0
mistune 2.0.4 py39hca03da5_0
more-itertools 10.3.0 pypi_0 pypi
mypy_extensions 1.0.0 py39hca03da5_0
mysql 5.7.24 ha71a6ea_2
nbclient 0.8.0 py39hca03da5_0
nbconvert 7.10.0 py39hca03da5_0
nbformat 5.9.2 py39hca03da5_0
ncurses 6.4 h313beb8_0
nest-asyncio 1.6.0 py39hca03da5_0
numexpr 2.8.7 py39hecc3335_0
numpy 1.26.4 py39h3b2db8e_0
numpy-base 1.26.4 py39ha9811e2_0
numpydoc 1.7.0 py39hca03da5_0
openjpeg 2.4.0 h0ed58ac_2
openseespy 3.4.0.2 pypi_0 pypi
openseespymac 3.4.0.2 pypi_0 pypi
openssl 3.3.1 hfb2fe0b_2 conda-forge
opstool 0.8.7 pypi_0 pypi
opsvis 1.1.10 pypi_0 pypi
orjson 3.10.6 pypi_0 pypi
packaging 24.1 py39hca03da5_0
pandas 2.2.2 py39h313beb8_0
pandocfilters 1.5.0 pyhd3eb1b0_0
panel 1.4.4 pypi_0 pypi
param 2.1.1 pypi_0 pypi
parso 0.8.3 pyhd3eb1b0_0
pathspec 0.10.3 py39hca03da5_0
pcre2 10.42 hb066dcc_1
pexpect 4.8.0 pyhd3eb1b0_3
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 10.4.0 py39h80987f9_0
pip 24.0 py39hca03da5_0
platformdirs 3.10.0 py39hca03da5_0
plotly 5.23.0 pypi_0 pypi
pluggy 1.0.0 py39hca03da5_1
ply 3.11 py39hca03da5_0
pooch 1.8.2 pypi_0 pypi
prompt-toolkit 3.0.43 py39hca03da5_0
psutil 5.9.0 py39h1a28f6b_0
ptyprocess 0.7.0 pyhd3eb1b0_2
pure_eval 0.2.2 pyhd3eb1b0_0
py-cpuinfo 9.0.0 py39hca03da5_0
pybind11-abi 4 hd3eb1b0_1
pycodestyle 2.11.1 py39hca03da5_0
pydocstyle 6.3.0 py39hca03da5_0
pydoe3 1.0.3 pypi_0 pypi
pyflakes 3.2.0 py39hca03da5_0
pygments 2.15.1 py39hca03da5_1
pylint 2.16.2 py39hca03da5_0
pylint-venv 3.0.3 py39hca03da5_0
pyls-spyder 0.4.0 pyhd3eb1b0_0
pyobjc-core 10.1 py39h80987f9_0
pyobjc-framework-cocoa 10.1 py39hb094c41_0
pyobjc-framework-coreservices 10.1 py39hdd8dd1f_0
pyobjc-framework-fsevents 10.1 py39hca03da5_0
pyparsing 3.0.9 py39hca03da5_0
pyqt 5.15.10 py39h313beb8_0
pyqt5-sip 12.13.0 py39h80987f9_0
pyqtwebengine 5.15.10 py39h313beb8_0
pysocks 1.7.1 py39hca03da5_0
pytables 3.9.2 py39h2f855a9_0
python 3.9.18 hd7ebdb9_1_cpython conda-forge
python-dateutil 2.9.0post0 py39hca03da5_2
python-fastjsonschema 2.16.2 py39hca03da5_0
python-lsp-black 2.0.0 py39hca03da5_0
python-lsp-jsonrpc 1.1.2 pyhd3eb1b0_0
python-lsp-server 1.10.0 py39hca03da5_0
python-slugify 5.0.2 pyhd3eb1b0_0
python-tzdata 2023.3 pyhd3eb1b0_0
python.app 3 py39h1a28f6b_0
python_abi 3.9 4_cp39 conda-forge
pytoolconfig 1.2.6 py39hca03da5_0
pytz 2024.1 py39hca03da5_0
pyvista 0.44.1 pypi_0 pypi
pyviz-comms 3.0.2 pypi_0 pypi
pyyaml 6.0.1 py39h80987f9_0
pyzmq 25.1.2 py39h313beb8_0
qdarkstyle 3.2.3 pyhd3eb1b0_0
qstylizer 0.2.2 py39hca03da5_0
qt-main 5.15.2 h0917680_10
qt-webengine 5.15.9 h2903aaf_7
qtawesome 1.2.2 py39hca03da5_0
qtconsole 5.5.1 py39hca03da5_0
qtpy 2.4.1 py39hca03da5_0
readline 8.2 h1a28f6b_0
referencing 0.30.2 py39hca03da5_0
requests 2.32.3 py39hca03da5_0
rich 13.7.1 py39hca03da5_0
rope 1.12.0 py39hca03da5_0
rpds-py 0.10.6 py39hf0e4da2_0
rtree 1.0.1 py39hca03da5_0
scikit-learn 1.5.1 py39h3c33c8b_0 conda-forge
scipy 1.13.1 py39hd336fd7_0
scooby 0.10.0 pypi_0 pypi
seaborn 0.13.2 py39hca03da5_0
sectionproperties 3.3.0 pypi_0 pypi
setuptools 69.5.1 py39hca03da5_0
shapely 2.0.5 pypi_0 pypi
sip 6.7.12 py39h313beb8_0
six 1.16.0 pyhd3eb1b0_1
smt 2.6.3 pypi_0 pypi
snowballstemmer 2.2.0 pyhd3eb1b0_0
sortedcontainers 2.4.0 pyhd3eb1b0_0
soupsieve 2.5 py39hca03da5_0
sphinx 7.3.7 py39hca03da5_0
sphinxcontrib-applehelp 1.0.2 pyhd3eb1b0_0
sphinxcontrib-devhelp 1.0.2 pyhd3eb1b0_0
sphinxcontrib-htmlhelp 2.0.0 pyhd3eb1b0_0
sphinxcontrib-jsmath 1.0.1 pyhd3eb1b0_0
sphinxcontrib-qthelp 1.0.3 pyhd3eb1b0_0
sphinxcontrib-serializinghtml 1.1.10 py39hca03da5_0
spyder 5.5.1 py39hca03da5_3
spyder-kernels 2.5.0 py39hca03da5_0
sqlite 3.45.3 h80987f9_0
stack_data 0.2.0 pyhd3eb1b0_0
tabulate 0.9.0 py39hca03da5_0
tenacity 9.0.0 pypi_0 pypi
text-unidecode 1.3 pyhd3eb1b0_0
textdistance 4.2.1 pyhd3eb1b0_0
threadpoolctl 3.5.0 pyhc1e730c_0 conda-forge
three-merge 0.1.1 pyhd3eb1b0_0
tinycss2 1.2.1 py39hca03da5_0
tk 8.6.14 h6ba3021_0
tomli 2.0.1 py39hca03da5_0
tomlkit 0.11.1 py39hca03da5_0
tornado 6.4.1 py39h80987f9_0
tqdm 4.66.4 pypi_0 pypi
traitlets 5.14.3 py39hca03da5_0
triangle 20200424 pypi_0 pypi
typing-extensions 4.11.0 py39hca03da5_0
typing_extensions 4.11.0 py39hca03da5_0
tzdata 2024a h04d1e81_0
uc-micro-py 1.0.3 pypi_0 pypi
ujson 5.10.0 py39h313beb8_0
unicodedata2 15.1.0 py39h80987f9_0
unidecode 1.2.0 pyhd3eb1b0_0
uqpylab 1.0.2 pypi_0 pypi
urllib3 2.2.2 py39hca03da5_0
vfo 0.0.12 pypi_0 pypi
vtk 9.3.1 pypi_0 pypi
watchdog 4.0.1 py39h80987f9_0
wcwidth 0.2.5 pyhd3eb1b0_0
webencodings 0.5.1 py39hca03da5_1
whatthepatch 1.0.2 py39hca03da5_0
wheel 0.43.0 py39hca03da5_0
widgetsnbextension 4.0.13 pypi_0 pypi
wrapt 1.14.1 py39h1a28f6b_0
wurlitzer 3.0.2 py39hca03da5_0
xyzservices 2024.6.0 pypi_0 pypi
xz 5.4.6 h80987f9_1
yaml 0.2.5 h1a28f6b_0
yapf 0.40.2 py39hca03da5_0
zeromq 4.3.5 h313beb8_0
zipp 3.17.0 py39hca03da5_0
zlib 1.2.13 hfb2fe0b_6 conda-forge
zlib-ng 2.0.7 h80987f9_0
zstd 1.5.5 hd90d995_2

@dalthviz
Copy link
Member

dalthviz commented Feb 5, 2025

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 env_2 interpreter as custom interpreter?

As a workaround for you to try, could you install Spyder over the env_2 and launch it from that env?

What do you think about this one @ccordoba12 ? Is there something over Spyder or maybe over the python-lsp-server package that could/should be done?

@wxyeah
Copy link
Author

wxyeah commented Feb 5, 2025

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 env_2 interpreter as custom interpreter?

As a workaround for you to try, could you install Spyder over the env_2 and launch it from that env?

What do you think about this one @ccordoba12 ? Is there something over Spyder or maybe over the python-lsp-server package that could/should be done?

Thank you @dalthviz for your reply! Below are my answers to your feedback:

  • The completions and linting seem working fine in env_2. Just a reminder: the Spyder was launched from env_1 and I have spyder-kernel in env_2.
  • I installed Spyder to env_2 without uninstalling spyder-kernel and launched it from env_2. I can now see the layout tree! Thank you so much for this workaround! This is very helpful!

@dalthviz dalthviz changed the title Cannot show tree layout in the Outline pane Cannot show tree layout in the Outline pane when using custom interpreter with a different architecture (ARM vs x86) Feb 6, 2025
@ccordoba12
Copy link
Member

What do you think about this one @ccordoba12 ? Is there something over Spyder or maybe over the python-lsp-server package that could/should be done?

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.

@ccordoba12 ccordoba12 added this to the v6.x.x milestone Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants