sourcery icon indicating copy to clipboard operation
sourcery copied to clipboard

Quick-fix not working, stuck on loading (using vs code remotessh)

Open Syndorik opened this issue 3 years ago • 2 comments

Issue description or question

Sourcery Version

Version : v0.10.2

Code editor or IDE name and version

1.65.0-insider 50089c3f92c17584a4aca179f51f220b56c22020 x64

OS name and version

Linux on remote, using vscode's remote extenstion

I have an issue with the quick-fix option. While I'm working with the original python I installed on my machine, it works well. However when I use a conda environment the quick-fix option doesn't work.

Syndorik avatar Feb 15 '22 18:02 Syndorik

Thanks for reporting this @Syndorik

Can you clarify a few questions for me please:

  1. Does this mean that the quick-fix menu doesn't appear, or that when you try and choose the quick-fix menu item, it doesn't apply the code change?
  2. Are the original Python and the conda Python on your local machine, or on the remote machine, or are they on different machines?
  3. Which remote extension are you using? Remote SSH, Remote Containers, or Remote WSL?

brendanator avatar Feb 16 '22 17:02 brendanator

So:

  1. The quick-fix menu get stuck on checking quick-fixes image

  2. Everything is on a remote ubuntu machine with following lsb release Distributor ID: Ubuntu Description: Ubuntu 18.04.6 LTS Release: 18.04 Codename: bionic

The python bin for the base conda env is in /home/ubuntu/miniconda3/bin/python while for the buggy conda environement it is in /home/ubuntu/miniconda3/envs/arg/bin/python

  1. By remote I am using Remote SSH.

The conda env that is buggy with sourcery have the following export:

name: arg
channels:
  - huggingface
  - pytorch
  - plotly
  - conda-forge
  - anaconda
  - defaults
dependencies:
  - _libgcc_mutex=0.1=conda_forge
  - _openmp_mutex=4.5=1_gnu
  - argh=0.26.2=pyh9f0ad1d_1002
  - asttokens=2.0.5=pyhd8ed1ab_0
  - backcall=0.2.0=pyh9f0ad1d_0
  - backports=1.0=py_2
  - backports.functools_lru_cache=1.6.4=pyhd8ed1ab_0
  - black=22.1.0=pyhd8ed1ab_0
  - blas=1.0=mkl
  - bokeh=2.4.2=py39hf3d152e_0
  - boto3=1.20.49=pyhd8ed1ab_0
  - botocore=1.23.49=pyhd8ed1ab_0
  - brotli=1.0.9=h7f98852_6
  - brotli-bin=1.0.9=h7f98852_6
  - brotlipy=0.7.0=py39h3811e60_1003
  - bzip2=1.0.8=h7f98852_4
  - ca-certificates=2021.10.8=ha878542_0
  - certifi=2021.10.8=py39hf3d152e_1
  - cffi=1.15.0=py39h4bc2ebd_0
  - charset-normalizer=2.0.11=pyhd8ed1ab_0
  - click=8.0.3=py39hf3d152e_1
  - cloudpickle=2.0.0=pyhd8ed1ab_0
  - colorama=0.4.4=pyh9f0ad1d_0
  - configparser=5.2.0=pyhd8ed1ab_0
  - cryptography=36.0.0=py39h9ce1e76_0
  - cudatoolkit=10.2.89=h8f6ccaa_10
  - cycler=0.11.0=pyhd8ed1ab_0
  - cytoolz=0.11.2=py39h3811e60_1
  - dask=2022.1.1=pyhd8ed1ab_0
  - dask-core=2022.1.1=pyhd8ed1ab_0
  - dataclasses=0.8=pyhc8e2a94_3
  - debugpy=1.5.1=py39he80948d_0
  - decorator=5.1.1=pyhd8ed1ab_0
  - distributed=2022.1.1=py39hf3d152e_0
  - docker-pycreds=0.4.0=py_0
  - entrypoints=0.4=pyhd8ed1ab_0
  - et_xmlfile=1.0.1=py_1001
  - executing=0.8.2=pyhd8ed1ab_0
  - ffmpeg=4.3=hf484d3e_0
  - filelock=3.4.2=pyhd8ed1ab_1
  - fonttools=4.29.1=py39h3811e60_0
  - freetype=2.10.4=h0708190_1
  - fribidi=1.0.10=h36c2ea0_0
  - fsspec=2022.1.0=pyhd8ed1ab_0
  - giflib=5.2.1=h36c2ea0_2
  - gitdb=4.0.9=pyhd8ed1ab_0
  - gitpython=3.1.26=pyhd8ed1ab_0
  - gmp=6.2.1=h58526e2_0
  - gnutls=3.6.13=h85f3911_1
  - gql=2.0.0=pyh9f0ad1d_0
  - graphql-core=2.3.2=pyh9f0ad1d_0
  - greenlet=1.1.2=py39he80948d_1
  - heapdict=1.0.1=py_0
  - huggingface_hub=0.0.17=py_0
  - idna=3.3=pyhd8ed1ab_0
  - importlib-metadata=4.10.1=py39hf3d152e_0
  - importlib_metadata=4.10.1=hd8ed1ab_0
  - intel-openmp=2022.0.1=h06a4308_3633
  - ipykernel=6.9.0=py39hef51801_0
  - ipython=7.31.1=py39hf3d152e_0
  - jbig=2.1=h7f98852_2003
  - jedi=0.18.1=py39hf3d152e_0
  - jinja2=3.0.3=pyhd8ed1ab_0
  - jmespath=0.10.0=pyh9f0ad1d_0
  - joblib=1.1.0=pyhd8ed1ab_0
  - jpeg=9e=h7f98852_0
  - jsonpickle=2.1.0=pyhd8ed1ab_0
  - jupyter_client=7.1.2=pyhd8ed1ab_0
  - jupyter_core=4.9.1=py39hf3d152e_1
  - kiwisolver=1.3.2=py39h1a9c180_1
  - lame=3.100=h7f98852_1001
  - lcms2=2.12=hddcbb42_0
  - ld_impl_linux-64=2.36.1=hea4e1c9_2
  - lerc=3.0=h9c3ff4c_0
  - libblas=3.9.0=13_linux64_mkl
  - libbrotlicommon=1.0.9=h7f98852_6
  - libbrotlidec=1.0.9=h7f98852_6
  - libbrotlienc=1.0.9=h7f98852_6
  - libcblas=3.9.0=13_linux64_mkl
  - libdeflate=1.8=h7f98852_0
  - libffi=3.4.2=h7f98852_5
  - libgcc-ng=11.2.0=h1d223b6_12
  - libgfortran-ng=11.2.0=h69a702a_12
  - libgfortran5=11.2.0=h5c6108e_12
  - libgomp=11.2.0=h1d223b6_12
  - libiconv=1.16=h516909a_0
  - libimagequant=2.17.0=h7f98852_1
  - liblapack=3.9.0=13_linux64_mkl
  - libnsl=2.0.0=h7f98852_0
  - libopenblas=0.3.18=pthreads_h8fe5266_0
  - libpng=1.6.37=h21135ba_2
  - libprotobuf=3.19.4=h780b84a_0
  - libsodium=1.0.18=h36c2ea0_1
  - libstdcxx-ng=11.2.0=he4da1e4_12
  - libtiff=4.3.0=h6f004c6_2
  - libuuid=2.32.1=h7f98852_1000
  - libuv=1.43.0=h7f98852_0
  - libwebp=1.2.2=h3452ae3_0
  - libwebp-base=1.2.2=h7f98852_1
  - libxcb=1.13=h7f98852_1004
  - libzlib=1.2.11=h36c2ea0_1013
  - locket=0.2.0=py_2
  - lz4-c=1.9.3=h9c3ff4c_1
  - markupsafe=2.0.1=py39h3811e60_1
  - matplotlib-base=3.5.1=py39h2fa2bec_0
  - matplotlib-inline=0.1.3=pyhd8ed1ab_0
  - memory_profiler=0.60.0=pyhd8ed1ab_0
  - mkl=2022.0.1=h06a4308_117
  - msgpack-python=1.0.3=py39h1a9c180_0
  - munkres=1.1.4=pyh9f0ad1d_0
  - mypy_extensions=0.4.3=py39hf3d152e_4
  - ncurses=6.3=h9c3ff4c_0
  - nest-asyncio=1.5.4=pyhd8ed1ab_0
  - nettle=3.6=he412f7d_0
  - networkx=2.6.3=pyhd8ed1ab_1
  - nltk=3.6.7=pyhd8ed1ab_0
  - numpy=1.22.2=py39h91f2184_0
  - nvidia-ml=7.352.0=py_0
  - openh264=2.1.1=h780b84a_0
  - openjpeg=2.4.0=hb52868f_1
  - openpyxl=3.0.9=pyhd8ed1ab_0
  - openssl=3.0.0=h7f98852_2
  - packaging=21.3=pyhd8ed1ab_0
  - pandas=1.4.0=py39hde0f152_0
  - parso=0.8.3=pyhd8ed1ab_0
  - partd=1.2.0=pyhd8ed1ab_0
  - pathspec=0.9.0=pyhd8ed1ab_0
  - pathtools=0.1.2=py_1
  - pexpect=4.8.0=pyh9f0ad1d_2
  - pickleshare=0.7.5=py39hde42818_1002
  - pillow=9.0.1=py39he69867a_0
  - pip=22.0.3=pyhd8ed1ab_0
  - platformdirs=2.4.1=pyhd8ed1ab_1
  - plotly=5.5.0=py_0
  - promise=2.3=py39hf3d152e_5
  - prompt-toolkit=3.0.26=pyha770c72_0
  - protobuf=3.19.4=py39he80948d_0
  - psutil=5.9.0=py39h3811e60_0
  - pthread-stubs=0.4=h36c2ea0_1001
  - ptyprocess=0.7.0=pyhd3deb0d_0
  - pure_eval=0.2.2=pyhd8ed1ab_0
  - pycparser=2.21=pyhd8ed1ab_0
  - pygments=2.11.2=pyhd8ed1ab_0
  - pymysql=1.0.2=pyhd8ed1ab_0
  - pyopenssl=22.0.0=pyhd8ed1ab_0
  - pyparsing=3.0.7=pyhd8ed1ab_0
  - pyshp=2.1.3=pyh44b312d_0
  - pysocks=1.7.1=py39hf3d152e_4
  - python=3.9.10=hc74c709_2_cpython
  - python-dateutil=2.8.2=pyhd8ed1ab_0
  - python_abi=3.9=1_cp39
  - pytorch=1.10.2=py3.9_cuda10.2_cudnn7.6.5_0
  - pytorch-mutex=1.0=cuda
  - pytz=2021.3=pyhd8ed1ab_0
  - pyvis=0.1.9=pyhd8ed1ab_0
  - pyyaml=6.0=py39h3811e60_3
  - pyzmq=22.3.0=py39h37b5a0c_1
  - readline=8.1=h46c0cb4_0
  - regex=2022.1.18=py39h3811e60_0
  - requests=2.27.1=pyhd8ed1ab_0
  - rx=1.6.1=py_0
  - s3transfer=0.5.1=pyhd8ed1ab_0
  - sacremoses=master=py_0
  - scikit-learn=1.0.2=py39h4dfa638_0
  - scipy=1.8.0=py39hee8e79c_0
  - sentry-sdk=1.5.4=pyhd8ed1ab_0
  - setuptools=59.8.0=py39hf3d152e_0
  - shortuuid=1.0.8=py39hf3d152e_0
  - six=1.16.0=pyh6c4a22f_0
  - slack-sdk=3.13.0=pyha770c72_0
  - smmap=3.0.5=pyh44b312d_0
  - sortedcontainers=2.4.0=pyhd8ed1ab_0
  - sqlalchemy=1.4.31=py39h3811e60_0
  - sqlite=3.37.0=h9cd32fc_0
  - stack_data=0.1.4=pyhd8ed1ab_0
  - subprocess32=3.5.4=py_1
  - tblib=1.7.0=pyhd8ed1ab_0
  - tenacity=8.0.1=pyhd8ed1ab_0
  - threadpoolctl=3.1.0=pyh8a188c0_0
  - tk=8.6.11=h27826a3_1
  - tokenizers=0.10.3=py39hd6d55de_1
  - tomli=2.0.0=pyhd8ed1ab_1
  - toolz=0.11.2=pyhd8ed1ab_0
  - torchaudio=0.10.2=py39_cu102
  - torchvision=0.11.3=py39_cu102
  - tornado=6.1=py39h3811e60_2
  - tqdm=4.62.3=pyhd8ed1ab_0
  - traitlets=5.1.1=pyhd8ed1ab_0
  - transformers=4.11.3=py_0
  - typed-ast=1.5.2=py39h3811e60_0
  - typing-extensions=4.0.1=hd8ed1ab_0
  - typing_extensions=4.0.1=pyha770c72_0
  - tzdata=2021e=he74cb21_0
  - unicodedata2=14.0.0=py39h3811e60_0
  - unidecode=1.3.2=pyhd8ed1ab_0
  - urllib3=1.26.8=pyhd8ed1ab_1
  - wandb=0.12.1=pyhd8ed1ab_0
  - watchdog=0.10.4=py39hf3d152e_0
  - wcwidth=0.2.5=pyh9f0ad1d_2
  - wheel=0.37.1=pyhd8ed1ab_0
  - wordcloud=1.8.1=py39h3811e60_2
  - xlrd=2.0.1=pyhd8ed1ab_3
  - xorg-libxau=1.0.9=h7f98852_0
  - xorg-libxdmcp=1.1.3=h7f98852_0
  - xz=5.2.5=h516909a_1
  - yaml=0.2.5=h7f98852_2
  - zeromq=4.3.4=h9c3ff4c_1
  - zict=2.0.0=py_0
  - zipp=3.7.0=pyhd8ed1ab_1
  - zlib=1.2.11=h36c2ea0_1013
  - zstd=1.5.2=ha95c52a_0
  - pip:
    - flake8==4.0.1
    - foob==1.0
    - mccabe==0.6.1
    - politics==1.0
    - pycodestyle==2.8.0
    - pyflakes==2.4.0
prefix: /home/ubuntu/miniconda3/envs/arg

Syndorik avatar Feb 16 '22 18:02 Syndorik

Hi @Syndorik,

A couple of Sourcery versions ago we released a change that addressed this (and similar issues). Are you still experiencing the problem on more recent versions of Sourcery? If not, let us know so we can close this issue.

bm424 avatar Aug 23 '22 09:08 bm424

Closing - please do reopen if it's still happening!

Hellebore avatar Sep 16 '22 12:09 Hellebore