GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Issue #935 fix (#936) · orecore/vscode-python@89f5385

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • pythonFiles
    • completion.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎pythonFiles/completion.py‎

Copy file name to clipboardExpand all lines: pythonFiles/completion.py
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,14 @@ def _write_response(self, response):
579579
def watch(self):
580580
while True:
581581
try:
582-
self._process_request(self._input.readline())
582+
rq = self._input.readline()
583+
if len(rq) == 0:
584+
# Reached EOF - indication our parent process is gone.
585+
sys.stderr.write('Received EOF from the standard input,exiting' + '\n')
586+
sys.stderr.flush()
587+
return
588+
self._process_request(rq)
589+
583590
except Exception:
584591
sys.stderr.write(traceback.format_exc() + '\n')
585592
sys.stderr.flush()

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.