Skip to content

Survey popup opens "Documents" instead of the survey URL in Windows. #2252

@d3r3kk

Description

@d3r3kk

Whenever the popup 'Can you please take 2 minutes to tell us how the Python Language Server is working for you?' appears in Windows, if the user clicks the button 'Yes, take survey now' the Windows Explorer window is opened to the user's Documents folder.

Environment data

  • VS Code version: 1.26.0-insider
  • Extension version (available under the Extensions sidebar): 2018.7.1 (seen in .0 as well)
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.6 (seen in 3.7.0)
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): .venv
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

Popup for survey opens user's Documents folder (typically C:\Users\<username>\Documents) in Windows Explorer.

Expected behavior

Popup for survey opens the user's default browser, and immediately displays the page at url https://www.research.net/r/LJZV9BZ?n=${launchCounter}.

Steps to reproduce:

  1. Open VSCode
  2. Ensure the Python extension is enabled/loaded (open a .py file).
  3. Write a file full of python code ~100 lines or so (I wrote the tutorial here, for instance).
  4. Eventually, you will see the popup asking for your feedback, click the button Yes, take survey now.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Starting Microsoft Python language server.
[Info  - 3:14:04 PM] Created Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter instance from Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory
Initializing for d:\dev\github\d3r3kk\whatdidido\tutorial\.venv\Scripts\python.exe
##########Linting Output - flake8##########
##########Linting Output - flake8##########
##########Linting Output - flake8##########
4,1,F,F403:'from toga.style.pack import *' used; unable to detect undefined names
44,15,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
44,30,F,F405:'COLUMN' may be undefined, or defined from star imports: toga.style.pack
52,23,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
117,23,W,W292:no newline at end of file
##########Linting Output - flake8##########
4,1,F,F403:'from toga.style.pack import *' used; unable to detect undefined names
44,15,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
44,30,F,F405:'COLUMN' may be undefined, or defined from star imports: toga.style.pack
52,23,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
117,23,W,W292:no newline at end of file
[Info  - 3:17:54 PM] Found 16 completions for file:///d:/dev/github/d3r3kk/whatdidido/tutorial/box_in_box.py at (97, 14) after filtering
##########Linting Output - flake8##########
4,1,F,F403:'from toga.style.pack import *' used; unable to detect undefined names
44,15,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
44,30,F,F405:'COLUMN' may be undefined, or defined from star imports: toga.style.pack
52,23,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
117,23,W,W292:no newline at end of file
##########Linting Output - flake8##########
4,1,F,F403:'from toga.style.pack import *' used; unable to detect undefined names
44,15,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
44,30,F,F405:'COLUMN' may be undefined, or defined from star imports: toga.style.pack
52,23,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
98,1,W,W293:blank line contains whitespace
100,5,E,E303:too many blank lines (2)
118,23,W,W292:no newline at end of file
##########Linting Output - flake8##########
4,1,F,F403:'from toga.style.pack import *' used; unable to detect undefined names
44,15,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
44,30,F,F405:'COLUMN' may be undefined, or defined from star imports: toga.style.pack
52,23,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
117,23,W,W292:no newline at end of file
[Info  - 3:18:57 PM] Found 277 completions for file:///d:/dev/github/d3r3kk/whatdidido/tutorial/box_in_box.py at (97, 10) after filtering
[Info  - 3:18:58 PM] Found 0 completions for file:///d:/dev/github/d3r3kk/whatdidido/tutorial/box_in_box.py at (97, 13) after filtering
[Info  - 3:18:59 PM] Found 230 completions for file:///d:/dev/github/d3r3kk/whatdidido/tutorial/box_in_box.py at (97, 13) after filtering
[Info  - 3:18:59 PM] Found 16 completions for file:///d:/dev/github/d3r3kk/whatdidido/tutorial/box_in_box.py at (97, 14) after filtering
[Info  - 3:19:12 PM] Found 0 completions for file:///d:/dev/github/d3r3kk/whatdidido/tutorial/box_in_box.py at (97, 21) after filtering
[Info  - 3:19:15 PM] Found 0 completions for file:///d:/dev/github/d3r3kk/whatdidido/tutorial/box_in_box.py at (97, 14) after filtering
[Info  - 3:19:16 PM] Found 16 completions for file:///d:/dev/github/d3r3kk/whatdidido/tutorial/box_in_box.py at (97, 14) after filtering
[Info  - 3:19:35 PM] Found 231 completions for file:///d:/dev/github/d3r3kk/whatdidido/tutorial/box_in_box.py at (97, 23) after filtering
[Info  - 3:19:37 PM] Found 276 completions for file:///d:/dev/github/d3r3kk/whatdidido/tutorial/box_in_box.py at (97, 24) after filtering
[Info  - 3:19:38 PM] Found 16 completions for file:///d:/dev/github/d3r3kk/whatdidido/tutorial/box_in_box.py at (97, 28) after filtering
##########Linting Output - flake8##########
4,1,F,F403:'from toga.style.pack import *' used; unable to detect undefined names
44,15,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
44,30,F,F405:'COLUMN' may be undefined, or defined from star imports: toga.style.pack
52,23,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
118,23,W,W292:no newline at end of file
##########Linting Output - flake8##########
4,1,F,F403:'from toga.style.pack import *' used; unable to detect undefined names
44,15,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
44,30,F,F405:'COLUMN' may be undefined, or defined from star imports: toga.style.pack
52,23,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
118,23,W,W292:no newline at end of file
##########Linting Output - flake8##########
4,1,F,F403:'from toga.style.pack import *' used; unable to detect undefined names
44,15,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
44,30,F,F405:'COLUMN' may be undefined, or defined from star imports: toga.style.pack
52,23,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
117,23,W,W292:no newline at end of file
##########Linting Output - flake8##########
4,1,F,F403:'from toga.style.pack import *' used; unable to detect undefined names
44,15,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
44,30,F,F405:'COLUMN' may be undefined, or defined from star imports: toga.style.pack
52,23,F,F405:'Pack' may be undefined, or defined from star imports: toga.style.pack
117,23,W,W292:no newline at end of file

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

/C:/Users/dekeeler/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js:1395  INFO no standard startup: panel is active
/C:/Users/dekeeler/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js:1395   ERR Cannot read property 'map' of null: TypeError: Cannot read property 'map' of null
	at asCompletionResult (C:\Users\dekeeler\.vscode-insiders\extensions\ms-python.python-2018.7.1\node_modules\vscode-languageclient\lib\protocolConverter.js:145:51)
	at <anonymous>

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions