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

Pylance reports import Missing in inexistent file when git enabled #5895

Closed
Saltsmart opened this issue May 18, 2024 · 21 comments
Closed

Pylance reports import Missing in inexistent file when git enabled #5895

Saltsmart opened this issue May 18, 2024 · 21 comments
Assignees
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version fixed in next version (release) A fix has been implemented and will appear in an upcoming version user responded Was "waiting for user response" and they responded

Comments

@Saltsmart
Copy link

Type: Bug

  1. Create a workspace with git initialized
  2. Add some imports for local packages
  3. Git commit

Extension version: 2024.5.1
VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:13:33.891Z)
OS version: Windows_NT x64 10.0.22000
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 15.85GB (6.66GB free)
Process Argv --crash-reporter-id deaad0bf-2897-480e-b8cf-04d2a61dc2e3
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
tftest:31042121
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
chatpanelt:31048053
dsvsc021:30996838
0ee40948:31013168
pythoncenvpt:31049070
a69g1124:31046351
pythonprc:31047982
dwnewjupyter:31046869
26j00206:31048877

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label May 18, 2024
@Saltsmart
Copy link
Author

Here are some screenshots.
This problem seems to happen in large files or projects, as in this workspace.
These files contain private contents so I am sorry for unable to provide them.
1
2

@heejaechang
Copy link
Contributor

not sure I am following what you are saying. either way, we probably need log to do anyting,

so, can you provide us some logs as described in the troubleshooting guide?

@Saltsmart
Copy link
Author

not sure I am following what you are saying. either way, we probably need log to do anyting,

so, can you provide us some logs as described in the troubleshooting guide?

Here is the log:
Python Language Server for issue #5895.log

Pylance seems to analyse the old versions of file that has been commited before, which is of no necessary and really annoying.

Snipaste_2024-05-19_09-47-49

@heejaechang
Copy link
Contributor

heejaechang commented May 20, 2024

so, we see this

git:/e%3A/Project/batterynet/datapreprocessing_and_plots.ipynb.py?%7B%22path%22%3A%22e%3A%5C%5CProject%5C%5Cbatterynet%5C%5Cdatapreprocessing_and_plots.ipynb%22%2C%22ref%22%3A%22cc590018e1eed0d31f547210db71cc2fc6abfbf1%22%7D#W1sZ2l0

meaning something is sending us unexpected request git:/ and we don't allow random request to see content of local hard drive, so that is probably why it can't import train_model.py and other local files. and that's probably why it shows the errors.

by the way, does that error ever go away? (something who sent us that git:/ request should have sent us open file request over that git:/ before sending us that request, I wonder it send us proper close file request as well, otherwise, that error will never go away)

@heejaechang
Copy link
Contributor

by the way, can you let us know what caused that git:/ to be send to us if you find out?

@StellaHuang95 StellaHuang95 added waiting for user response Requires more information from user and removed needs repro Issue has not been reproduced yet labels May 20, 2024
@Saltsmart
Copy link
Author

by the way, does that error ever go away? (something who sent us that git:/ request should have sent us open file request over that git:/ before sending us that request, I wonder it send us proper close file request as well, otherwise, that error will never go away)

These errors are not going away, before I restart the python language server.

@github-actions github-actions bot added user responded Was "waiting for user response" and they responded and removed waiting for user response Requires more information from user labels May 21, 2024
@Saltsmart
Copy link
Author

Saltsmart commented May 21, 2024

I have confirmed:

  1. It has nothing related to the following extensions except Python and Pylance (Pylance has dependency on Python, so I can't disable Python with Pylance still on). I have done bisect test, and tried to disable the other extensions manually.
    image

  2. Pylance will analyse the .ipynb files in git history, and .py files will not be analysed. I have reproduced this in another directory. Here is the log:

Python.Language.Server.for.issue.5895 another directory.log

@Saltsmart
Copy link
Author

UPDATE:

It has nothing related to the git, since I reproduce the problem in a non-git workspace.

It seems to caused by a workspace with multiple directories. I have create a workspace file in the issues directory. After adding another directory in the workspace, the issue happens:
image

After removing another directory, leaving only the current working directory, the issue disappears:
image

Here is all test files:
issue #5895 and #5896.zip

@rchiodo
Copy link
Contributor

rchiodo commented May 21, 2024

Can you list the steps you took? I'm not reproing the problem.

I did this:

  1. Downloaded the zip
  2. Copied the two folders out of the zip
  3. Opened the 'issues' folder
  4. Opened the main.ipynb
  5. No errors shown
  6. Added the 'aaa' folder
  7. No errors shown

@heejaechang
Copy link
Contributor

heejaechang commented May 21, 2024

I still see this

2024-05-21 09:26:24.031 [info] [Info - 9:26:24 AM] (10492) Could not resolve source for 'tqdm.notebook' in file 'git:/c%3A/Users/Administrator/issues/main.ipynb.py?%7B%22path%22%3A%22c%3A%5C%5CUsers%5C%5CAdministrator%5C%5Cissues%5C%5Cmain.ipynb%22%2C%22ref%22%3A%220a60d477ffce9079659682f46446a31fe1045482%22%7D#W0sZ2l0'

so you are saying, you removed every extension you have. and only installed python extension (which will include pylance and jupyter and etc) and then open the *.code-workspace you shared and it should repro?

we need to figure out who is sending that git: request.

@heejaechang
Copy link
Contributor

heejaechang commented May 21, 2024

can you create a new profile ?

image

and install only Python extension (and ones automatically installed by python extension such as pylance, jupyter and etc). do not manually add other extensions such as black formatter and etc.

and try repo while capturing the logs. and provide us that log?

we would like to set baseline first. and if it still repro with that, we can contact partner teams to find out who is sending git:/ request.

@heejaechang
Copy link
Contributor

#5895 (comment)

this might be different issue. can you let us know python interpreter you choose on notebooks and each workspace?

also, if you provide us trace log, it will help us to figure out as well.

@Saltsmart
Copy link
Author

Saltsmart commented May 22, 2024

Can you list the steps you took? I'm not reproing the problem.

I did this:

  1. Downloaded the zip
  2. Copied the two folders out of the zip
  3. Opened the 'issues' folder
  4. Opened the main.ipynb
  5. No errors shown
  6. Added the 'aaa' folder
  7. No errors shown

You should open the workspace, add another folder in the workspace and go to the timeline.
These errors are from timeline and will not disappear when I close the historical file.
image

Here are the operations after step 3:
issue 5895

@Saltsmart
Copy link
Author

install only Python extension (and ones automatically installed by python extension such as pylance, jupyter and etc). do not manually add other extensions such as black formatter and etc.

and try repo while capturing the logs. and provide us that log?

I created a new profile and could still repro the issue. Here is the log:
Python Language Server-issue #5895-log 2.log
The git:/ log may be caused by my gitignore file. I deleted it and no git in the log this time, but the problem persists.

can you let us know python interpreter you choose on notebooks and each workspace?

I'm using interpreter in the base env of anaconda 2023.07. Here is its configuration:

name: base
channels:
  - conda-forge
  - defaults
dependencies:
  - _anaconda_depends=2023.07=py311_0
  - aiobotocore=2.5.0=py311haa95532_0
  - aiofiles=22.1.0=py311haa95532_0
  - aiohttp=3.8.5=py311h2bbff1b_0
  - aioitertools=0.7.1=pyhd3eb1b0_0
  - aiosignal=1.2.0=pyhd3eb1b0_0
  - aiosqlite=0.18.0=py311haa95532_0
  - alabaster=0.7.12=pyhd3eb1b0_0
  - anaconda-anon-usage=0.4.3=py311hfc23b7f_100
  - anaconda-catalogs=0.2.0=py311haa95532_0
  - anaconda-client=1.11.3=py311haa95532_0
  - anaconda-cloud-auth=0.1.4=pyhd8ed1ab_0
  - anaconda-navigator=2.5.1=py311haa95532_0
  - anaconda-project=0.11.1=py311haa95532_0
  - anyio=3.5.0=py311haa95532_0
  - aom=3.6.0=hd77b12b_0
  - appdirs=1.4.4=pyhd3eb1b0_0
  - archspec=0.2.1=pyhd3eb1b0_0
  - argon2-cffi=21.3.0=pyhd3eb1b0_0
  - argon2-cffi-bindings=21.2.0=py311h2bbff1b_0
  - arrow=1.2.3=py311haa95532_1
  - astroid=2.14.2=py311haa95532_0
  - astropy=5.3.4=py311hd7041d2_0
  - asttokens=2.0.5=pyhd3eb1b0_0
  - async-timeout=4.0.2=py311haa95532_0
  - atomicwrites=1.4.0=py_0
  - attrs=23.1.0=py311haa95532_0
  - automat=20.2.0=py_0
  - autopep8=1.6.0=pyhd3eb1b0_1
  - babel=2.11.0=py311haa95532_0
  - backcall=0.2.0=pyhd3eb1b0_0
  - backports=1.1=pyhd3eb1b0_0
  - backports.functools_lru_cache=1.6.4=pyhd3eb1b0_0
  - backports.tempfile=1.0=pyhd3eb1b0_1
  - backports.weakref=1.0.post1=py_1
  - bcrypt=3.2.0=py311h2bbff1b_1
  - beautifulsoup4=4.12.2=py311haa95532_0
  - binaryornot=0.4.4=pyhd3eb1b0_1
  - black=24.4.2=py311h1ea47a8_0
  - blas=1.0=mkl
  - bleach=4.1.0=pyhd3eb1b0_0
  - blosc=1.21.5=hbd69f2e_1
  - bokeh=2.4.3=py311haa95532_0
  - boltons=23.0.0=py311haa95532_0
  - boto3=1.26.54=pyhd8ed1ab_0
  - botocore=1.29.76=py311haa95532_0
  - bottleneck=1.3.5=py311h5bb9823_0
  - brotli=1.0.9=h2bbff1b_7
  - brotli-bin=1.0.9=h2bbff1b_7
  - brotli-python=1.0.9=py311hd77b12b_7
  - bzip2=1.0.8=he774522_0
  - c-blosc2=2.10.5=h2f4ed9d_0
  - ca-certificates=2024.2.2=h56e8100_0
  - cached-property=1.5.2=hd8ed1ab_1
  - cached_property=1.5.2=pyha770c72_1
  - certifi=2024.2.2=pyhd8ed1ab_0
  - cffi=1.16.0=py311h2bbff1b_0
  - cfitsio=3.470=h2bbff1b_7
  - chardet=4.0.0=py311haa95532_1003
  - charls=2.2.0=h6c2663c_0
  - charset-normalizer=2.0.4=pyhd3eb1b0_0
  - click=8.1.7=py311haa95532_0
  - cloudpickle=2.2.1=py311haa95532_0
  - clyent=1.2.2=py311haa95532_1
  - colorama=0.4.6=py311haa95532_0
  - colorcet=3.0.1=py311haa95532_0
  - comm=0.1.2=py311haa95532_0
  - conda=23.10.0=py311h1ea47a8_0
  - conda-build=3.25.0=py311haa95532_0
  - conda-content-trust=0.2.0=py311haa95532_0
  - conda-index=0.3.0=py311haa95532_0
  - conda-libmamba-solver=23.11.1=py311haa95532_0
  - conda-pack=0.6.0=pyhd3eb1b0_0
  - conda-package-handling=2.2.0=py311haa95532_0
  - conda-package-streaming=0.9.0=py311haa95532_0
  - conda-repo-cli=1.0.75=py311haa95532_0
  - conda-souschef=2.2.3=pyhd8ed1ab_0
  - conda-token=0.4.0=pyhd3eb1b0_0
  - conda-verify=3.4.2=py_1
  - console_shortcut=0.1.1=4
  - constantly=15.1.0=py311haa95532_0
  - contourpy=1.0.5=py311h59b6b97_0
  - cookiecutter=1.7.3=pyhd3eb1b0_0
  - cryptography=41.0.3=py311h89fc84f_0
  - cssselect=1.1.0=pyhd3eb1b0_0
  - curl=8.1.2=h68f0423_0
  - cycler=0.11.0=pyhd3eb1b0_0
  - cytoolz=0.12.0=py311h2bbff1b_0
  - daal4py=2023.1.1=py311h30df693_0
  - dal=2023.1.1=h59b6b97_48682
  - dask=2023.3.0=pyhd8ed1ab_0
  - dask-core=2023.3.0=pyhd8ed1ab_0
  - datashader=0.16.0=py311haa95532_0
  - dav1d=1.2.1=h2bbff1b_0
  - debugpy=1.6.7=py311hd77b12b_0
  - decorator=5.1.1=pyhd3eb1b0_0
  - defusedxml=0.7.1=pyhd3eb1b0_0
  - diff-match-patch=20200713=pyhd3eb1b0_0
  - dill=0.3.7=py311haa95532_0
  - distributed=2023.3.0=pyhd8ed1ab_0
  - docstring-to-markdown=0.11=py311haa95532_0
  - docutils=0.18.1=py311haa95532_3
  - einops=0.7.0=pyhd8ed1ab_1
  - entrypoints=0.4=py311haa95532_0
  - et_xmlfile=1.1.0=py311haa95532_0
  - executing=0.8.3=pyhd3eb1b0_0
  - filelock=3.9.0=py311haa95532_0
  - flake8=6.0.0=py311haa95532_0
  - flask=2.2.2=py311haa95532_0
  - fmt=9.1.0=h6d14046_0
  - fonttools=4.25.0=pyhd3eb1b0_0
  - freetype=2.12.1=ha860e81_0
  - frozenlist=1.4.0=py311h2bbff1b_0
  - fsspec=2023.4.0=py311haa95532_0
  - future=0.18.3=py311haa95532_0
  - gensim=4.3.0=py311heda8569_0
  - giflib=5.2.1=h8cc25b3_3
  - glob2=0.7=pyhd3eb1b0_0
  - grayskull=2.5.3=pyhd8ed1ab_0
  - greenlet=2.0.1=py311hd77b12b_0
  - h5py=3.9.0=nompi_py311hc8b35be_101
  - hdf5=1.14.1=nompi_h73e8ff5_100
  - heapdict=1.0.1=pyhd3eb1b0_0
  - holoviews=1.17.1=py311haa95532_0
  - hvplot=0.9.0=py311haa95532_0
  - hyperlink=21.0.0=pyhd3eb1b0_0
  - icc_rt=2022.1.0=h6049295_2
  - icu=73.1=h6c2663c_0
  - idna=3.4=py311haa95532_0
  - imagecodecs=2023.1.23=py311he6ff3c7_0
  - imageio=2.31.4=py311haa95532_0
  - imagesize=1.4.1=py311haa95532_0
  - imbalanced-learn=0.10.1=py311haa95532_1
  - importlib-metadata=6.0.0=py311haa95532_0
  - importlib_metadata=6.0.0=hd3eb1b0_0
  - incremental=21.3.0=pyhd3eb1b0_0
  - inflection=0.5.1=py311haa95532_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - intake=0.6.8=py311haa95532_0
  - intel-openmp=2023.1.0=h59b6b97_46320
  - intervaltree=3.1.0=pyhd3eb1b0_0
  - ipykernel=6.25.0=py311h746a85d_0
  - ipython=8.15.0=py311haa95532_0
  - ipython_genutils=0.2.0=pyhd3eb1b0_1
  - ipywidgets=8.0.4=py311haa95532_0
  - isort=5.9.3=pyhd3eb1b0_0
  - itemadapter=0.3.0=pyhd3eb1b0_0
  - itemloaders=1.0.4=pyhd3eb1b0_1
  - itsdangerous=2.0.1=pyhd3eb1b0_0
  - jaraco.classes=3.2.1=pyhd3eb1b0_0
  - jedi=0.18.1=py311haa95532_1
  - jellyfish=1.0.1=py311h36a85e1_0
  - jinja2=3.1.2=py311haa95532_0
  - jinja2-time=0.2.0=pyhd3eb1b0_3
  - jmespath=1.0.1=py311haa95532_0
  - joblib=1.2.0=py311haa95532_0
  - jpeg=9e=h2bbff1b_1
  - jq=1.6=haa95532_1
  - json5=0.9.6=pyhd3eb1b0_0
  - jsonpatch=1.32=pyhd3eb1b0_0
  - jsonpointer=2.1=pyhd3eb1b0_0
  - jsonschema=4.19.2=py311haa95532_0
  - jsonschema-specifications=2023.7.1=py311haa95532_0
  - jupyter=1.0.0=py311haa95532_8
  - jupyter_client=7.4.9=py311haa95532_0
  - jupyter_console=6.6.3=py311haa95532_0
  - jupyter_core=5.5.0=py311haa95532_0
  - jupyter_events=0.8.0=py311haa95532_0
  - jupyter_server=1.23.4=py311haa95532_0
  - jupyter_server_fileid=0.9.0=py311haa95532_0
  - jupyter_server_ydoc=0.8.0=py311haa95532_1
  - jupyter_ydoc=0.2.4=py311haa95532_0
  - jupyterlab=3.6.3=py311haa95532_0
  - jupyterlab_pygments=0.2.2=py311haa95532_0
  - jupyterlab_server=2.25.1=py311haa95532_0
  - jupyterlab_widgets=3.0.9=py311haa95532_0
  - keyring=23.13.1=py311haa95532_0
  - kiwisolver=1.4.4=py311hd77b12b_0
  - krb5=1.20.1=h5b6d351_0
  - lazy-object-proxy=1.6.0=py311h2bbff1b_0
  - lazy_loader=0.3=py311haa95532_0
  - lcms2=2.12=h83e58a3_0
  - lerc=3.0=hd77b12b_0
  - libaec=1.1.3=h63175ca_0
  - libarchive=3.6.2=hb62f4d4_2
  - libavif=0.11.1=h2bbff1b_0
  - libbrotlicommon=1.0.9=h2bbff1b_7
  - libbrotlidec=1.0.9=h2bbff1b_7
  - libbrotlienc=1.0.9=h2bbff1b_7
  - libclang=14.0.6=default_hb5a9fac_1
  - libclang13=14.0.6=default_h8e68704_1
  - libcurl=8.1.2=h68f0423_0
  - libdeflate=1.17=h2bbff1b_1
  - libffi=3.4.4=hd77b12b_0
  - libiconv=1.16=h2bbff1b_2
  - liblief=0.12.3=hd77b12b_0
  - libmamba=1.5.3=hcd6fe79_0
  - libmambapy=1.5.3=py311h77c03ed_0
  - libpng=1.6.39=h8cc25b3_0
  - libpq=12.15=h906ac69_1
  - libsodium=1.0.18=h62dcd97_0
  - libsolv=0.7.24=h23ce68f_0
  - libspatialindex=1.9.3=h6c2663c_0
  - libssh2=1.10.0=he2ea4bf_2
  - libtiff=4.5.1=hd77b12b_0
  - libwebp=1.3.2=hbc33d0d_0
  - libwebp-base=1.3.2=h2bbff1b_0
  - libxml2=2.10.4=h0ad7f3c_1
  - libxslt=1.1.37=h2bbff1b_1
  - libzlib=1.2.13=hcfcfb64_5
  - libzopfli=1.0.3=ha925a31_0
  - llvmlite=0.41.0=py311hf2fb9eb_0
  - locket=1.0.0=py311haa95532_0
  - lxml=4.9.3=py311h09808a7_0
  - lz4=4.3.2=py311haddf500_1
  - lz4-c=1.9.4=h2bbff1b_0
  - lzo=2.10=he774522_2
  - m2-msys2-runtime=2.5.0.17080.65c939c=3
  - m2-patch=2.7.5=2
  - m2w64-libwinpthread-git=5.0.0.4634.697f757=2
  - markdown=3.4.1=py311haa95532_0
  - markupsafe=2.1.1=py311h2bbff1b_0
  - matplotlib=3.8.0=py311haa95532_0
  - matplotlib-base=3.8.0=py311hf62ec03_0
  - matplotlib-inline=0.1.6=py311haa95532_0
  - mccabe=0.7.0=pyhd3eb1b0_0
  - menuinst=1.4.19=py311h59b6b97_1
  - mistune=2.0.4=py311haa95532_0
  - mkl=2023.1.0=h6b88ed4_46358
  - mkl-service=2.4.0=py311h2bbff1b_1
  - mkl_fft=1.3.8=py311h2bbff1b_0
  - mkl_random=1.2.4=py311h59b6b97_0
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - mpmath=1.3.0=py311haa95532_0
  - msgpack-python=1.0.3=py311h59b6b97_0
  - msys2-conda-epoch=20160418=1
  - multidict=6.0.2=py311h2bbff1b_0
  - multipledispatch=0.6.0=py311haa95532_0
  - munkres=1.1.4=py_0
  - mypy_extensions=1.0.0=py311haa95532_0
  - navigator-updater=0.4.0=py311haa95532_1
  - nbclassic=1.0.0=py311haa95532_0
  - nbclient=0.8.0=py311haa95532_0
  - nbconvert=7.10.0=py311haa95532_0
  - nbformat=5.9.2=py311haa95532_0
  - nest-asyncio=1.5.6=py311haa95532_0
  - networkx=3.1=py311haa95532_0
  - nltk=3.8.1=py311haa95532_0
  - notebook=6.5.4=py311haa95532_1
  - notebook-shim=0.2.3=py311haa95532_0
  - numba=0.58.0=py311hf62ec03_0
  - numexpr=2.8.7=py311h1fcbade_0
  - numpy=1.24.3=py311hdab7c0b_1
  - numpy-base=1.24.3=py311hd01c5d8_1
  - numpydoc=1.5.0=py311haa95532_0
  - openjpeg=2.4.0=h4fc8c34_0
  - openpyxl=3.0.10=py311h2bbff1b_0
  - openssl=3.3.0=hcfcfb64_0
  - packaging=23.1=py311haa95532_0
  - pandas=2.1.1=py311hf62ec03_0
  - pandocfilters=1.5.0=pyhd3eb1b0_0
  - panel=0.14.3=py311haa95532_0
  - param=1.13.0=py311haa95532_0
  - paramiko=2.8.1=pyhd3eb1b0_0
  - parsel=1.6.0=py311haa95532_0
  - parso=0.8.3=pyhd3eb1b0_0
  - partd=1.4.1=py311haa95532_0
  - pathlib=1.0.1=pyhd3eb1b0_1
  - pathspec=0.10.3=py311haa95532_0
  - patsy=0.5.3=py311haa95532_0
  - pcre2=10.42=h0ff8eda_0
  - pep8=1.7.1=py311haa95532_1
  - pexpect=4.8.0=pyhd3eb1b0_3
  - pickleshare=0.7.5=pyhd3eb1b0_1003
  - pillow=10.0.1=py311h045eedc_0
  - pip=23.1.2=py311haa95532_0
  - pkce=1.0.3=py311haa95532_0
  - pkginfo=1.9.6=py311haa95532_0
  - platformdirs=3.10.0=py311haa95532_0
  - plotly=5.9.0=py311haa95532_0
  - pluggy=1.0.0=py311haa95532_1
  - ply=3.11=py311haa95532_0
  - powershell_shortcut=0.0.1=3
  - poyo=0.5.0=pyhd3eb1b0_0
  - progressbar2=4.3.2=pyhd8ed1ab_0
  - prometheus_client=0.14.1=py311haa95532_0
  - prompt-toolkit=3.0.36=py311haa95532_0
  - prompt_toolkit=3.0.36=hd3eb1b0_0
  - protego=0.1.16=py_0
  - psutil=5.9.0=py311h2bbff1b_0
  - ptyprocess=0.7.0=pyhd3eb1b0_2
  - pure_eval=0.2.2=pyhd3eb1b0_0
  - py-cpuinfo=9.0.0=py311haa95532_0
  - py-lief=0.12.3=py311hd77b12b_0
  - pyasn1=0.4.8=pyhd3eb1b0_0
  - pyasn1-modules=0.2.8=py_0
  - pybind11-abi=4=hd3eb1b0_1
  - pycodestyle=2.10.0=py311haa95532_0
  - pycosat=0.6.6=py311h2bbff1b_0
  - pycparser=2.21=pyhd3eb1b0_0
  - pyct=0.5.0=py311haa95532_0
  - pycurl=7.45.2=py311he2ea4bf_1
  - pydantic=1.10.12=py311h2bbff1b_1
  - pydispatcher=2.0.5=py311haa95532_2
  - pydocstyle=6.3.0=py311haa95532_0
  - pyerfa=2.0.0=py311h2bbff1b_0
  - pyflakes=3.0.1=py311haa95532_0
  - pygments=2.15.1=py311haa95532_1
  - pyjwt=2.4.0=py311haa95532_0
  - pylint=2.16.2=py311haa95532_0
  - pylint-venv=2.3.0=py311haa95532_0
  - pyls-spyder=0.4.0=pyhd3eb1b0_0
  - pynacl=1.5.0=py311h8cc25b3_0
  - pyodbc=4.0.39=py311hd77b12b_0
  - pyopenssl=23.2.0=py311haa95532_0
  - pyparsing=3.0.9=py311haa95532_0
  - pyqt=5.15.10=py311hd77b12b_0
  - pyqt5-sip=12.13.0=py311h2bbff1b_0
  - pyqtwebengine=5.15.10=py311hd77b12b_0
  - pysocks=1.7.1=py311haa95532_0
  - pytables=3.8.0=py311h8fc43b8_2
  - pytest=7.4.0=py311haa95532_0
  - python=3.11.5=he1021f5_0
  - python-dateutil=2.8.2=pyhd3eb1b0_0
  - python-dotenv=0.21.0=py311haa95532_0
  - python-fastjsonschema=2.16.2=py311haa95532_0
  - python-json-logger=2.0.7=py311haa95532_0
  - python-libarchive-c=2.9=pyhd3eb1b0_1
  - python-lmdb=1.4.1=py311hd77b12b_0
  - python-lsp-black=1.2.1=py311haa95532_0
  - python-lsp-jsonrpc=1.0.0=pyhd3eb1b0_0
  - python-lsp-server=1.7.2=py311haa95532_0
  - python-slugify=5.0.2=pyhd3eb1b0_0
  - python-snappy=0.6.1=py311hd77b12b_0
  - python-tzdata=2023.3=pyhd3eb1b0_0
  - python-utils=3.8.1=pyhd8ed1ab_0
  - python_abi=3.11=2_cp311
  - pytoolconfig=1.2.5=py311haa95532_1
  - pytz=2023.3.post1=py311haa95532_0
  - pyviz_comms=2.3.0=py311haa95532_0
  - pywavelets=1.4.1=py311h2bbff1b_0
  - pywin32=305=py311h2bbff1b_0
  - pywin32-ctypes=0.2.0=py311haa95532_1000
  - pywinpty=2.0.10=py311h5da7b33_0
  - pyyaml=6.0.1=py311h2bbff1b_0
  - pyzmq=23.2.0=py311hd77b12b_0
  - qdarkstyle=3.0.2=pyhd3eb1b0_0
  - qstylizer=0.2.2=py311haa95532_0
  - qt-main=5.15.2=h19c9488_10
  - qt-webengine=5.15.9=h5bd16bc_7
  - qtawesome=1.2.2=py311haa95532_0
  - qtconsole=5.4.2=py311haa95532_0
  - qtpy=2.4.1=py311haa95532_0
  - queuelib=1.6.2=py311haa95532_0
  - rapidfuzz=3.6.1=py311h12c1d0e_0
  - referencing=0.30.2=py311haa95532_0
  - regex=2023.10.3=py311h2bbff1b_0
  - reproc=14.2.4=hd77b12b_1
  - reproc-cpp=14.2.4=hd77b12b_1
  - requests=2.31.0=py311haa95532_0
  - requests-file=1.5.1=pyhd3eb1b0_0
  - requests-toolbelt=1.0.0=py311haa95532_0
  - rfc3339-validator=0.1.4=py311haa95532_0
  - rfc3986-validator=0.1.1=py311haa95532_0
  - rope=1.7.0=py311haa95532_0
  - rpds-py=0.10.6=py311h062c2fa_0
  - rtree=1.0.1=py311h2eaa2aa_0
  - ruamel.yaml=0.17.21=py311h2bbff1b_0
  - ruamel.yaml.jinja2=0.2.4=py_1
  - ruamel_yaml=0.17.21=py311h2bbff1b_0
  - s3fs=2023.4.0=py311haa95532_0
  - s3transfer=0.6.2=pyhd8ed1ab_0
  - sacremoses=0.0.43=pyhd3eb1b0_0
  - scikit-image=0.20.0=py311h3513d60_0
  - scikit-learn=1.3.0=py311hf62ec03_0
  - scikit-learn-intelex=2023.1.1=py311haa95532_0
  - scipy=1.11.3=py311hc1ccb85_0
  - scrapy=2.8.0=py311haa95532_0
  - seaborn=0.12.2=py311haa95532_0
  - semver=3.0.2=pyhd8ed1ab_0
  - send2trash=1.8.2=py311haa95532_0
  - service_identity=18.1.0=pyhd3eb1b0_1
  - setuptools=67.8.0=py311haa95532_0
  - sip=6.7.12=py311hd77b12b_0
  - six=1.16.0=pyhd3eb1b0_1
  - smart_open=5.2.1=py311haa95532_0
  - snappy=1.2.0=hfb803bf_1
  - sniffio=1.2.0=py311haa95532_1
  - snowballstemmer=2.2.0=pyhd3eb1b0_0
  - sortedcontainers=2.4.0=pyhd3eb1b0_0
  - soupsieve=2.5=py311haa95532_0
  - sphinx=5.0.2=py311haa95532_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.5=pyhd3eb1b0_0
  - spyder=5.4.3=py311haa95532_1
  - spyder-kernels=2.4.4=py311haa95532_0
  - sqlalchemy=2.0.21=py311h2bbff1b_0
  - sqlite=3.41.2=h2bbff1b_0
  - stack_data=0.2.0=pyhd3eb1b0_0
  - statsmodels=0.14.0=py311hd7041d2_0
  - stdlib-list=0.8.0=pyhd8ed1ab_0
  - sympy=1.11.1=py311haa95532_0
  - tabulate=0.8.10=py311haa95532_0
  - tbb=2021.8.0=h59b6b97_0
  - tbb4py=2021.8.0=py311h59b6b97_0
  - tblib=1.7.0=pyhd3eb1b0_0
  - tenacity=8.2.2=py311haa95532_0
  - terminado=0.17.1=py311haa95532_0
  - text-unidecode=1.3=pyhd3eb1b0_0
  - textdistance=4.2.1=pyhd3eb1b0_0
  - threadpoolctl=2.2.0=pyh0d69192_0
  - three-merge=0.1.1=pyhd3eb1b0_0
  - tifffile=2023.4.12=py311haa95532_0
  - tinycss2=1.2.1=py311haa95532_0
  - tk=8.6.12=h2bbff1b_0
  - tldextract=3.2.0=pyhd3eb1b0_0
  - toml=0.10.2=pyhd3eb1b0_0
  - tomli=2.0.1=pyhd8ed1ab_0
  - tomli-w=1.0.0=pyhd8ed1ab_0
  - tomlkit=0.11.1=py311haa95532_0
  - toolz=0.12.0=py311haa95532_0
  - tornado=6.3.3=py311h2bbff1b_0
  - tqdm=4.65.0=py311h746a85d_0
  - traitlets=5.7.1=py311haa95532_0
  - transformers=2.1.1=pyhd3eb1b0_0
  - truststore=0.8.0=py311haa95532_0
  - twisted=22.10.0=py311h2bbff1b_0
  - twisted-iocpsupport=1.0.2=py311h2bbff1b_0
  - typing-extensions=4.7.1=py311haa95532_0
  - typing_extensions=4.7.1=py311haa95532_0
  - tzdata=2023c=h04d1e81_0
  - ucrt=10.0.22621.0=h57928b3_0
  - ujson=5.4.0=py311hd77b12b_0
  - unidecode=1.2.0=pyhd3eb1b0_0
  - urllib3=1.26.18=py311haa95532_0
  - vc=14.3=hcf57466_18
  - vc14_runtime=14.38.33130=h82b7239_18
  - vs2015_runtime=14.38.33130=hcb4865c_18
  - w3lib=1.21.0=pyhd3eb1b0_0
  - watchdog=2.1.6=py311haa95532_0
  - wcwidth=0.2.5=pyhd3eb1b0_0
  - webencodings=0.5.1=py311haa95532_1
  - websocket-client=0.58.0=py311haa95532_4
  - werkzeug=2.2.3=py311haa95532_0
  - whatthepatch=1.0.2=py311haa95532_0
  - wheel=0.38.4=py311haa95532_0
  - widgetsnbextension=4.0.5=py311haa95532_0
  - win_inet_pton=1.1.0=py311haa95532_0
  - winpty=0.4.3=4
  - wrapt=1.14.1=py311h2bbff1b_0
  - xarray=2023.6.0=py311haa95532_0
  - xlwings=0.29.1=py311haa95532_0
  - xz=5.4.2=h8cc25b3_0
  - y-py=0.5.9=py311hb6bf4ef_0
  - yaml=0.2.5=he774522_0
  - yaml-cpp=0.8.0=hd77b12b_0
  - yapf=0.31.0=pyhd3eb1b0_0
  - yarl=1.8.1=py311h2bbff1b_0
  - ypy-websocket=0.8.2=py311haa95532_0
  - zeromq=4.3.4=hd77b12b_0
  - zfp=1.0.0=hd77b12b_0
  - zict=3.0.0=py311haa95532_0
  - zipp=3.11.0=py311haa95532_0
  - zlib=1.2.13=hcfcfb64_5
  - zlib-ng=2.0.7=h2bbff1b_0
  - zope=1.0=py311haa95532_1
  - zope.interface=5.4.0=py311h2bbff1b_0
  - zstandard=0.19.0=py311h2bbff1b_0
  - zstd=1.5.5=hd43e919_0
prefix: D:\anaconda3

@rchiodo
Copy link
Contributor

rchiodo commented May 22, 2024

This seems different. I can repro if I open and close the timeline enough.

image

I can see in the output log something like so:

[FG] binding: vscode-local-history:/c%3A/Users/rchiodo/source/testing/notebook_errors/issues/main.ipynb.py?%7B%22location%22%3A%22file%3A%2F%2F%2Fc%3A%2FUsers%2Frchiodo%2FAppData%2FRoaming%2FCode%2FUser%2FHistory%2F-6600e97a%2Ftby3.ipynb%22%2C%22associatedResource%22%3A%22file%3A%2F%2F%2Fc%3A%2FUsers%2Frchiodo%2Fsource%2Ftesting%2Fnotebook_errors%2Fissues%2Fmain.ipynb%22%7D#pylancePrefixCell (18ms)

Which must be being sent by the timeline. This isn't currently supported. We'd need to special case this to know that it's actually on disk.

@rchiodo
Copy link
Contributor

rchiodo commented May 22, 2024

I can only guess the git output that Heejae saw was caused by a similar issue. VS code is sending us notebooks with URL schemas that we don't understand.

@rchiodo
Copy link
Contributor

rchiodo commented May 22, 2024

The failure here occurs because we look for relative imports based on the schema.

So for something like so:

vscode-local-history:/c%3A/Users/rchiodo/main.ipynb

We'd look here for the main.py

vscode-local-history:/c%3A/Users/rchiodo/main.py

And that doesn't exist. It would need to look here instead:

file:/c%3A/Users/rchiodo/main.py

@heejaechang
Copy link
Contributor

I think it would work once we enable server that supports file provider, but for current server, we probably need to see what is going on. I am not sure which workspace would be picked up for this (default workspace?) and main.py of file:/ and vscode-local-hisotyr:/ could have different content so, just reading local file can also cause other errors to be reported.

anyway, this is not a scenario we currently support. that said, we probably need to investigate how to handle this situation.

feels like it works differently than regular git comparison view.

@heejaechang
Copy link
Contributor

feels like a bug in either vscode or vscode-langaugeserver-node. since it doesn't happen with regular file. git:/ or vscode-local-history:/ doesn't reach us, but only happen in notebook case.

let me see why this request reach us.

@heejaechang
Copy link
Contributor

figured out. we can fix it in our side.

@StellaHuang95 StellaHuang95 added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label May 24, 2024
@KacieKK KacieKK added the fixed in next version (release) A fix has been implemented and will appear in an upcoming version label May 28, 2024
@KacieKK
Copy link
Contributor

KacieKK commented May 29, 2024

This issue has been fixed in prerelease version 2024.5.103, which we've just released. You can find the changelog here: CHANGELOG.md

@KacieKK KacieKK closed this as completed May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version fixed in next version (release) A fix has been implemented and will appear in an upcoming version user responded Was "waiting for user response" and they responded
Projects
None yet
Development

No branches or pull requests

5 participants