Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to find the kernel wolframscript in configurations. A kernel must contain a "command" field. #26

Open
giammi56 opened this issue May 30, 2022 · 1 comment

Comments

@giammi56
Copy link

giammi56 commented May 30, 2022

On the deb version of VS code, the kernel cannot run because the "command" is not found, although it is in the .json file.

image

Version: 1.67.2
Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
Date: 2022-05-17T18:23:40.286Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Linux x64 5.13.0-44-generic

settings.json

{
    "editor.bracketPairColorization.enabled": true,
    "editor.guides.bracketPairs":"active",
    "jupyter.alwaysTrustNotebooks": true,
    "python.languageServer": "Pylance",
    "jupyter.askForKernelRestart": false,
    "explorer.confirmDelete": false,
    "files.trimTrailingWhitespace": true,
    "jupyter.interactiveWindowMode": "perFile",
    "explorer.confirmDragAndDrop": false,
    "workbench.editorAssociations": {
        "*.out": "hexEditor.hexedit",
        "*.ipynb": "jupyter-notebook"
    },
    // "jupyter.maxOutputSize": 1200,
    "diffEditor.codeLens": true,
    "C_Cpp.updateChannel": "Insiders",
    "r.rterm.linux": "/home/userme/.local/bin/radian",
    "r.bracketedPaste": true,
    "r.lsp.debug": true,
    "notebook.cellToolbarLocation": {
        "default": "right",
        "jupyter-notebook": "left"
    },
    "window.zoomLevel": -1,
    "explorer.sortOrder": "type",
    "debug.javascript.autoAttachFilter": "always",
    "wolframLanguageNotebook.kernel.configurations": {

        "wolframscript": {
            "type": "local",
            "command": "wolframscript",
            "ports": "49152-65535"
        }
    }
}
@njpipeorgan
Copy link
Owner

The configuration file looks okay. The error message is a bit misleading, since it can be the case that the extension did not find wolframLanguageNotebook.kernel.configurations at all, e.g. when this entry is in the Workspace settings (instead of User settings). I suggest that you may remove kernel configurations from all the settings, add the kernel from the prompt by the extension and see if it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants