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.

Append error config in VSCode setting.json make VSCode not working. Message: (this.configurationService.getValue(...) || []).filter is not a function

See original GitHub issue

Environment data

  • VS Code version: 1.56.2
  • Jupyter Extension version (available under the Extensions sidebar): v2021.6.832593372
  • Python Extension version (available under the Extensions sidebar): v2021.5.842923320
  • OS (Windows | Mac | Linux distro) and version: macOS Bug surr 11.3.1
  • Jupyter server running: Local

Expected behaviour

Vscode working normally

Actual behaviour

When ever you click to a file/an extension or what ever you wanna open in VSCode it will show an error

(this.configurationService.getValue(...) || []).filter is not a function

And you cannot open them. As I check the extension add to setting.json and make the file error with message Incorrect type. Expect "array" The setting:

"workbench.editorAssociations": {
    "*.ipynb": "jupyter-notebook"
  },

Remove this config will make VSCode working normal again.

Steps to reproduce:

Install Python extension package

  1. Screenshoot image image

Logs

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

User belongs to experiment group 'pythonaacf'
User belongs to experiment group 'pythonJediLSP'
User belongs to experiment group 'pythonDiscoveryModuleWithoutWatcher'
User belongs to experiment group 'pythonTensorboardExperiment'
User belongs to experiment group 'PythonPyTorchProfiler'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Python interpreter path: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Starting Jedi Python language engine.
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> conda --version
Error 2021-05-26 22:49:49: Diagnostic Code: MacInterpreterSelectedAndHaveOtherInterpretersDiagnostic, Message: You have selected the macOS system install of Python, which is not recommended for use with the Python extension. Some functionality will be limited, please select a different interpreter.
Diagnostic Code: MacInterpreterSelectedAndHaveOtherInterpretersDiagnostic, Message: You have selected the macOS system install of Python, which is not recommended for use with the Python extension. Some functionality will be limited, please select a different interpreter.
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
joyceerhlcommented, May 26, 2021

I’m not able to reproduce this if I enable settings sync, uninstall VS Code and delete settings locally, then reinstall VS Code and resync settings. The only way I see this possibly happening is if you enabled the built-in settings sync across VS Code Stable and Insiders, which is not recommended due to issues like this (setting formats changing between stable releases).

@andy3520 if you can reliably reproduce this problem or if you recall the specific sequence of actions you took to induce this bug, please share them so we can determine if this is a bug or a simple misconfiguration.

1reaction
joyceerhlcommented, May 26, 2021

Did you have Insiders before? I’m wondering if the built-in settings sync is synchronizing settings between Insiders and Stable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - VS Code Error: (this.configurationService.getValue ...
This error pops up every time I try to create a new file saying. "(this.configurationService.getValue(...) || []).filter is not a function".
Read more >
Cant create new file nor open new file in VSCode! - Reddit
I have a huge in Problem in VSCode (macOS BigSur 11.3 Intel). ... []).filter is not a function"´ - does anyone know what...
Read more >
User and Workspace Settings - Visual Studio Code
A setting shows up under this filter if its value differs from the default value, or if its value is explicitly set in...
Read more >
Debugging in Visual Studio Code
If running and debugging is not yet configured (no launch.json has been created), VS Code shows the Run start view. Simplified initial Run...
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 >

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