Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Auto-complete failed in for-loop after break #1927

Open
@wonson

Description

@wonson

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

My part of code is like this

for root, suddirs, files in os.walk(indir, True):
    if root != indir:
        break
    for f in files:
        if f.endswith("." + inext):
            regexresult = re.match(r"^[a-zA-Z0-9]+\-[0-9]+", f)
            if regexresult:
                key = regexresult.group(0).lower()
                l = bangodict.get(key, list())
                l.append(f)
                bangodict[key] = l
  1. Try to type '.' following any object at any line after the "break"

Actual behavior

At line after break, all dot-auto-complete cannot pop up. However, when I am outside this for loop, it works normally again.

Expected behavior

Pop auto complete as usual

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: N/A
  • Extension version: 2020.2.64397
  • VS Code version: 1.42.1
  • Setting python.jediEnabled: false
  • Python and/or Anaconda version: 3.7.6
  • OS: Windows
  • Virtual environment: N/A

Developer Tools Console Output

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions