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.

Python Build workspace symbols not found

See original GitHub issue

Environment data

  • VS Code version: 1.32.3
  • Extension version (available under the Extensions sidebar): 2019.3.6215
  • OS and version: Windows 10 10.0.17134
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.3 64 bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Relevant/affected Python packages and their versions: Just the python extension

Expected behaviour

Running python.buildWorkspaceSymbols to build the workspace symbols

Actual behaviour

I receive the error message “command ‘python.buildWorkspaceSymbols’ not found”

2019-04-01_16h05_12

Steps to reproduce:

  1. Ctrl + shift + p then running Python: Build Workspace Symbols

Logs

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

No information in the logs

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

notificationsAlerts.ts:38 Error: command 'python.buildWorkspaceSymbols' not found
    at Proxy._tryExecuteCommand (commandService.ts:59)
    at r.then.i (commandService.ts:52)
onDidNotificationChange @ notificationsAlerts.ts:38

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:20
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
JohnCashmorecommented, Apr 9, 2019

To recreate this issue you can do the following steps:

  • Install python extension (ms-python.python)
  • Ctrl + shift + p then running Python: Build Workspace Symbols
  • Install Visual Studio IntelliCode - Preview (visualstudioexptteam.vscodeintellicode)
  • Open a python file and enable Microsoft Python Language Server (preview) when prompted
  • Ctrl + shift + p then running Python: Build Workspace Symbols

This results in the breaking behavior, the only way to resolve this is to wipe out the application completely as detailed in the above link

4reactions
JimiCcommented, Jun 6, 2019

On Ubuntu adding "python.jediEnabled": true to Workspace Settings resolved the issue for me.

Note:

  1. Didn’t made any difference if I had Visual Studio IntelliCode installed/uninstaled, enabled/disabled.
  2. "python.jediEnabled": true needs to be explicitly added to Workspace Settings for it to work, although the Default Workspace Settings is the same.

Edit: Turns out that Visual Studio IntelliCode adds an entry in the User Settings disabling Jedi.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vscode not autocompleting certain Python methods
Although rebuilding the workspace symbols doesn't work, I reinstalled vscode from scratch and added pylance language server as suggested by ...
Read more >
Workspace Symbols | Python in Visual Studio Code
Displaying and navigating through Workspace symbols in a Python project is supported with the use of Exuberant CTags.
Read more >
A brand new website interface for an even better experience!
Python Build workspace symbols not found.
Read more >
Settings Reference for Python - Visual Studio Code
This page describes the key settings you can work with. For general information about working with settings in VS Code, refer to User...
Read more >
Advanced Visual Studio Code for Python Developers
In this tutorial, you'll learn how you can configure, extend, and optimize ... If no results come up, make sure you have the...
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