Closed n-gao closed 1 week ago
thanks for the logs.
can you turn on Trace? see https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue
thank you.
Here is a more complete log:
can you export your conda environment
conda env export > environment.yml
name: jax0317
channels:
- nvidia
- conda-forge
- defaults
dependencies:
- _libgcc_mutex=0.1=conda_forge
- _openmp_mutex=4.5=2_kmp_llvm
- absl-py=1.2.0=pyhd8ed1ab_0
- autopep8=1.6.0=pyhd3eb1b0_1
- c-ares=1.18.1=h7f98852_0
- ca-certificates=2022.6.15=ha878542_0
- certifi=2022.6.15=pyhd8ed1ab_1
- cuda-nvcc=11.4.152=0
- cudatoolkit=11.4.1=h8ab8bb3_9
- cudatoolkit-dev=11.4.0=h5e8e339_5
- cudnn=8.4.1.50=hed8a83a_0
- etils=0.7.1=pyhd8ed1ab_0
- grpc-cpp=1.46.4=h05bd8bd_7
- importlib_resources=5.9.0=pyhd8ed1ab_0
- ld_impl_linux-64=2.38=h1181459_1
- libabseil=20220623.0=cxx17_h48a1fff_3
- libblas=3.9.0=16_linux64_openblas
- libcblas=3.9.0=16_linux64_openblas
- libffi=3.3=he6710b0_2
- libgcc-ng=12.1.0=h8d9b700_16
- libgfortran-ng=12.1.0=h69a702a_16
- libgfortran5=12.1.0=hdcd56e2_16
- liblapack=3.9.0=16_linux64_openblas
- libopenblas=0.3.21=pthreads_h78a6416_3
- libprotobuf=3.21.5=h6239696_0
- libstdcxx-ng=12.1.0=ha89aaad_16
- libzlib=1.2.12=h166bdaf_2
- llvm-openmp=14.0.4=he0ac6c6_0
- nccl=2.14.3.1=h0800d71_0
- ncurses=6.3=h5eee18b_3
- numpy=1.23.2=py39hba7629e_0
- openssl=1.1.1q=h166bdaf_0
- opt_einsum=3.3.0=pyhd8ed1ab_1
- pip=22.1.2=py39h06a4308_0
- pycodestyle=2.8.0=pyhd3eb1b0_0
- python=3.9.13=haa1d7c7_1
- python_abi=3.9=2_cp39
- re2=2022.06.01=h27087fc_0
- readline=8.1.2=h7f8727e_1
- scipy=1.9.1=py39h8ba3f38_0
- setuptools=63.4.1=py39h06a4308_0
- sqlite=3.39.2=h5082296_0
- tk=8.6.12=h1ccaba5_0
- toml=0.10.2=pyhd3eb1b0_0
- typing_extensions=4.3.0=pyha770c72_0
- tzdata=2022a=hda174b7_0
- wheel=0.37.1=pyhd3eb1b0_0
- xz=5.2.5=h7f8727e_1
- zipp=3.8.1=pyhd8ed1ab_0
- zlib=1.2.12=h7f8727e_2
- pip:
- anyio==3.6.1
- argon2-cffi==21.3.0
- argon2-cffi-bindings==21.2.0
- ase==3.22.1
- asttokens==2.0.8
- attrs==22.1.0
- babel==2.10.3
- backcall==0.2.0
- beautifulsoup4==4.11.1
- bleach==5.0.1
- cachetools==5.2.0
- cffi==1.15.1
- charset-normalizer==2.1.1
- chex==0.1.4
- colorama==0.4.5
- commonmark==0.9.1
- cryptography==38.0.1
- cupy==11.1.0
- cycler==0.11.0
- debugpy==1.6.3
- decorator==5.1.1
- defusedxml==0.7.1
- dm-tree==0.1.7
- docopt==0.6.2
- docutils==0.19
- entrypoints==0.4
- executing==1.0.0
- fastjsonschema==2.16.1
- fastrlock==0.8
- flax==0.6.0
- fonttools==4.37.1
- future==0.18.2
- gitdb==4.0.9
- gitpython==3.1.27
- google-auth==2.11.1
- google-auth-oauthlib==0.4.6
- grpcio==1.49.1
- h5py==3.7.0
- idna==3.3
- importlib-metadata==4.12.0
- ipykernel==6.15.2
- ipympl==0.9.2
- ipython==8.5.0
- ipython-genutils==0.2.0
- ipywidgets==8.0.2
- jaraco-classes==3.2.2
- jaxlib==0.3.18
- jaxopt==0.5
- jedi==0.18.1
- jeepney==0.8.0
- jinja2==3.1.2
- jraph==0.0.6.dev0
- json5==0.9.10
- jsonpickle==1.5.2
- jsonschema==4.16.0
- jupyter-client==7.3.5
- jupyter-core==4.11.1
- jupyter-server==1.18.1
- jupyterlab==3.4.6
- jupyterlab-pygments==0.2.2
- jupyterlab-server==2.15.1
- jupyterlab-widgets==3.0.3
- keyring==23.9.1
- kiwisolver==1.4.4
- lxml==4.9.1
- markdown==3.4.1
- markupsafe==2.1.1
- matplotlib==3.5.3
- matplotlib-inline==0.1.6
- merge-args==0.1.4
- mistune==2.0.4
- more-itertools==8.14.0
- mpmath==1.2.1
- msgpack==1.0.4
- munch==2.5.0
- nbclassic==0.4.3
- nbclient==0.6.8
- nbconvert==7.0.0
- nbformat==5.4.0
- nest-asyncio==1.5.5
- notebook==6.4.12
- notebook-shim==0.1.0
- nvidia-ml-py==11.495.46
- nvitop==0.8.0
- oauthlib==3.2.1
- optax==0.1.3
- packaging==21.3
- pandas==1.4.4
- pandocfilters==1.5.0
- parso==0.8.3
- pexpect==4.8.0
- pickleshare==0.7.5
- pillow==9.2.0
- pkginfo==1.8.3
- prometheus-client==0.14.1
- prompt-toolkit==3.0.31
- protobuf==3.19.5
- psutil==5.9.2
- ptyprocess==0.7.0
- pure-eval==0.2.2
- py-cpuinfo==8.0.0
- pyasn1==0.4.8
- pyasn1-modules==0.2.8
- pycparser==2.21
- pygments==2.13.0
- pymongo==4.2.0
- pyparsing==3.0.9
- pyrsistent==0.18.1
- pyscf==2.1.0
- python-dateutil==2.8.2
- pytz==2022.2.1
- pyyaml==6.0
- pyzmq==23.2.1
- readme-renderer==37.1
- requests==2.28.1
- requests-oauthlib==1.3.1
- requests-toolbelt==0.9.1
- rfc3986==2.0.0
- rich==11.2.0
- rsa==4.9
- sacred==0.8.3
- secretstorage==3.3.3
- send2trash==1.8.0
- six==1.16.0
- smmap==5.0.0
- sniffio==1.3.0
- soupsieve==2.3.2.post1
- stack-data==0.5.0
- sympy==1.11.1
- tensorboard==2.10.1
- tensorboard-data-server==0.6.1
- tensorboard-plugin-wit==1.8.1
- tensorboardx==2.5.1
- termcolor==1.1.0
- terminado==0.15.0
- tinycss2==1.1.1
- toolz==0.12.0
- tornado==6.2
- tqdm==4.64.1
- traitlets==5.3.0
- twine==4.0.1
- uncertainties==3.1.7
- urllib3==1.26.12
- wcwidth==0.2.5
- webencodings==0.5.1
- websocket-client==1.4.1
- werkzeug==2.2.2
- widgetsnbextension==4.0.3
- wrapt==1.14.1
variables:
LD_LIBRARY_PATH: /nfs/staff-ssd/gaoni/miniconda3/envs/jax0317/lib/
prefix: /nfs/staff-ssd/gaoni/miniconda3/envs/jax0317
Could you provide a minimal code sample that exhibits the problem?
Constructing a minimal example is hard since the problem worsens with the size of the project. In small workspaces, PyLance works well but on a larger code base (as the one linked first) autocomplete stops working after some time.
A note on the setup, I access the code via vscode SSH on a remote machine. I noticed that after killing all vscode processes linting works fine for some time but the performance degrades over time.
Thank you for the report! Given our current limited resources, it's unlikely we will be able to fix this issue in the near future. We're closing it so we can focus on higher priority issues. However, if this is a critical issue for you let us know and we can reevaluate. Thanks!
Problem
When using JAX PyLance takes very long to analyze a file and one typically has to wait several seconds until suggestions are available.
Potentially related to #2098.
Environment data
What might be related: I develop on a server via SSH where the directory is mounted via nfs. Though, the network interface shouldn't be a bottleneck nor the compute of the server.
Here's my conda environment:
Code Snippet
The project is available here: https://github.com/n-gao/pesnet Here's the pylance log: