question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Path completion broken

See original GitHub issue

After installing jlab-lsp, path completion is broken for me.

I verified that after removing jlab-lsp it works again.

What happens is that the first letters already typed before triggering the completion are not being removed by the replacement, which results in having to edit the completed path, rendering it unusable.

Below are 2 screenshots showing what I typed just before and just after accepting the completion suggestion:

image image

Versions:

# Name                    Version                   Build  Channel
jupyter                   1.0.0            py39h6e9494a_6    conda-forge
jupyter-lsp               1.4.1              pyhd8ed1ab_0    conda-forge
jupyter-server-mathjax    0.2.3              pyhd8ed1ab_0    conda-forge
jupyter-server-proxy      3.1.0              pyhd8ed1ab_0    conda-forge
jupyter_client            6.1.12             pyhd8ed1ab_0    conda-forge
jupyter_console           6.4.0              pyhd8ed1ab_0    conda-forge
jupyter_contrib_core      0.3.3                      py_2    conda-forge
jupyter_core              4.7.1            py39h6e9494a_0    conda-forge
jupyter_nbextensions_configurator 0.4.1            py39h6e9494a_2    conda-forge
jupyter_server            1.10.2             pyhd8ed1ab_0    conda-forge
jupyterlab                3.1.7              pyhd8ed1ab_0    conda-forge
jupyterlab-git            0.32.1             pyhd8ed1ab_0    conda-forge
jupyterlab-lsp            3.8.1              pyhd8ed1ab_0    conda-forge
jupyterlab_code_formatter 1.4.10             pyhd8ed1ab_1    conda-forge
jupyterlab_pygments       0.1.2              pyh9f0ad1d_0    conda-forge
jupyterlab_server         2.7.1              pyhd8ed1ab_0    conda-forge
jupyterlab_widgets        1.0.0              pyhd8ed1ab_1    conda-forge
python-language-server    0.36.2             pyhd8ed1ab_0    conda-forge

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
michaelayecommented, Aug 19, 2021

ah no, absolute paths also fail:

image

I typed “/User” and pressed TAB and the completed “Users” did not replace the typed “User”.

0reactions
krassowskicommented, Oct 10, 2021

You can add "disableCompletionsFrom": ["LSP"] in Advanced Settings EditorCode Completion. I confirmed that this fixes the problem and it is only present for specific prefixes when merging completions from Kernel and LSP; sorry - these are using different coordinate systems and it’s just hard to reconcile them in all edge cases. Working on it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

shell - Zsh tab-completion not working - Stack Overflow
Hello, after switching from Bash to Zsh on macOS Catalina, Tab completion stopped working for me. Apparently it is working in directories ...
Read more >
Tab completions for paths broken again in 7.2.0 #11530
Tab completion for paths within strings seems to be broken again (previously noted many places, like #10961, #10996, notebook issue #3333).
Read more >
[Solved] Tab Completion Not Working in Ubuntu & Debian
Tab completion not working for you in the terminal? Here's the easy way to fix it in Ubuntu/Debian based distributions.
Read more >
shell - zsh tab completion not working specifically for running ...
In general tab-completion is working fine with zsh, except when I try to execute a script as in: zsh script.sh.
Read more >
bash autocomplete broken when a : is in the path
Binary package hint: bash Say you have a directory that looks like so: user@machine:/var/log/gdm$ ls :0.log :0.log.1 :0.log.2 :0.log.3 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found