Completion on dot inputs double dot
See original GitHub issueExpected behaviour
Choosing a completion should not add double dots
Actual behaviour
It adds an extra dot
Steps to reproduce:
- Edit a cell
- input
(Path('/') / d['metadata'])
- Type a dot after the above expression, and choose one of the members of
Path
(e.g.name
or `with_suffix) - 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:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Moving to triage.