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.

Completion on dot inputs double dot

See original GitHub issue

Expected behaviour

Choosing a completion should not add double dots

Actual behaviour

It adds an extra dot

Steps to reproduce:

  1. Edit a cell
  2. input (Path('/') / d['metadata'])
  3. Type a dot after the above expression, and choose one of the members of Path (e.g. name or `with_suffix)
  4. Note that the path needs to contain a dictionary access, otherwise it works fine, so I guess it’s the [ .. ] that has the bug.

https://user-images.githubusercontent.com/2991890/121210950-66bb8f80-c87c-11eb-973d-3224b220c41a.mp4

Logs

nothing generated by the completion

Environment data

  • VS Code version: 1.57.0-insider Commit: c7119ae8b6390a5700f6b28f0f1511d676c96562
  • Jupyter Extension version (available under the Extensions sidebar): v2021.6.914258744
  • Python Extension version (available under the Extensions sidebar): v2021.6.908196464-dev | Pylance v2021.6.1-pre.1
  • OS (Windows | Mac | Linux distro) and version: Local = Mac 10.15.7 | Remote = Ubuntu 18.04
  • Python and/or Anaconda version: 3.7.4
  • Type of virtual environment used : conda
  • Jupyter server running: Remote

This should have probably been in Pylance. Initially I thought it only happens in jupyter, as shown in the video, but then I noticed the point 4 in Steps to reproduce (after opening this issue). If we do (Path('.') / d['a']).<ctrl+space> in a normal python file, it doesn’t offer any completion at all, so probably not related to jupyter

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
greazercommented, Jul 2, 2021

I’m no longer able to reproduce this problem using the latest VS Code Insider, PyLance, Python, and Jupyter extensions. Somewhere the bug must’ve been fixed. @cipri-tom, please reopen if you’re still seeing this behavior.

0reactions
IanMatthewHuffcommented, Jun 11, 2021

Moving to triage.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dot and Double Dots - Harnessing the Power of the Command ...
The first entry is a dot ( . ). It represents the current directory. The second entry, the double dot ( .. ),...
Read more >
How to limit input value after dot with double type?
I have got EditText with double value. The problem is that I want to limit numbers after dot to two like this: "#.##"....
Read more >
Double-dot in path's may cause problems with gcc under ...
Describe the bug In our project that is using Zephyr 2.4.0 in combination with GCC for ARM under Windows we struggled over an...
Read more >
What else do I need to produce two dots above o? - TeX
I agree that two separate ' without space between them looks same as ". But I use "shift" key to input ". The...
Read more >
Safe Streets and Roads for All (SS4A) Grant Program
The new Safe Streets and Roads for All (SS4A) discretionary program provides $5 billion in grants over the next 5 years to support...
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