radian: Can't get radian to start in Visual Studio Code: "The terminal process terminated with exit code: 1"

I have installed radian from Github

❯ radian --version                                                   13:48:38
radian version: 0.4.8
r executable: /Library/Frameworks/R.framework/Resources/bin/R
r version: 3.6.3
python executable: /Users/andrew/miniconda/bin/python
python version: 3.7.4

and removed all R arguments:

     "r.rterm.option": [],
    "r.rterm.mac": "/Users/andrew/miniconda/bin/radian"
    "r.alwaysUseActiveTerminal": true,
    "r.sessionWatcher": true,
    "r.lsp.use_stdio": true

This was working until I upgraded vscode insiders to the latest version yesterday. Now, I get the same error using the latest versions of both vscode and vscode insiders

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 28 (11 by maintainers)

Most upvoted comments

So, after hours of frustration, I’ve finally managed to find the source of this. In some way or other I had managed to set the VSCode setting"terminal.integrated.inheritEnv" to false. This should of course be true, and then everything works as expected.

"terminal.integrated.inheritEnv": true

Sorry for all the bother.

There is one more thing, though. How do you get radian installed using pip and Miniconda/Anaconda on MacOS? This does not work for me, I had to install using python setup.py install.

@awellis : Thanks so much… I had the same issue terminal.integrated.inheritEnv but had no clue this setting existed, let alone what it meant. The reason why I post here, is that I think I know what caused setting the switch to false for me: Updated VS Code from 1.4.something to 1.61.0 . After the update radian wasn’t running anymore precisely b/c of that flag.

Well, I can start radian in a console:

❯ which radian                                                                                                                                                                                          
/Users/andrew/miniconda/bin//radian

~
❯ radian --version                                                                                                                                                                                      
radian version: 0.4.8
r executable: /Library/Frameworks/R.framework/Resources/bin/R
r version: 1000.0.0
python executable: /Users/andrew/miniconda/bin/python
python version: 3.7.4

The problem is that I can’t start radian from Visual Studio Code. Here are my VSCode settings:

{
    "vscode-neovim.neovimPath": "/usr/local/bin/nvim",
    "workbench.iconTheme": "vscode-icons-mac",
    "workbench.startupEditor": "newUntitledFile",
    "terminal.external.osxExec": "iTerm2.app",
    "workbench.colorTheme": "Nord",
    "files.autoSave": "onFocusChange",
    "editor.fontFamily": "Fira Code, Cascadia Code, Hasklig",
    "editor.fontLigatures": true,
    "editor.minimap.enabled": false,
    "search.showLineNumbers": true,
    "julia.executablePath": "/usr/local/bin/julia",
    "julia.lint.call": true,
    "julia.enableCrashReporter": true,
    "julia.enableTelemetry": true,
    "julia.NumThreads": 8,
    "window.restoreFullscreen": true,
    "window.zoomLevel": 0,
    // "todo-tree.general.tags": [
    //     "TODO",
    //     "FIXME",
    //     "HACK"
    // ],
    "editor.tabCompletion": "on",
    "todo.archive.sortByDate": true,
    "todo.timekeeping.created.enabled": true,
    "rewrap.autoWrap.enabled": false,
    "rewrap.reformat": true,
    "terminal.integrated.experimentalRefreshOnResume": true,
    "terminal.integrated.experimentalUseTitleEvent": true,
    "terminal.integrated.fontSize": 13,
    "debug.console.fontFamily": "'Fira Code'",
    "markdown.extension.preview.autoShowPreviewToSide": true,
    "juliaFormatter.whitespace_typedefs": true,
    "color-highlight.matchWords": true,
    "debug.console.fontSize": 13,
    "rewrap.wrappingColumn": 60,
    "git.alwaysShowStagedChangesResourceGroup": true,
    "editor.fontSize": 13,
    "python.insidersChannel": "off",
    "explorer.confirmDelete": false,
    "terminal.integrated.inheritEnv": false,
    "git.autofetch": true,
    "gitlens.advanced.messages": {
        "suppressCommitNotFoundWarning": true
    },
    "editor.renderControlCharacters": true,
    "latex-workshop.intellisense.unimathsymbols.enabled": true,
    "latex-workshop.intellisense.package.enabled": true,
    "latex-workshop.synctex.afterBuild.enabled": true,
    "latex-workshop.synctex.synctexjs.enabled": false,
    "indentRainbow.colors": [
        "rgba(129,161,193,0.1)",
        "rgba(76,86,106,0.2)",
        "rgba(180,142,173,0.1)",
        "rgba(216,222,233,0.1)",
        "rgba(rgba(97,145,191,0.4))"
    ],
    "indentRainbow.errorColor": "rgba(191,97,106,0.6)",
    "cSpell.enableFiletypes": [
        "juliamarkdown"
    ],
    // "r.lsp.path": "/Library/Frameworks/R.framework/Resources/bin/R",
    // "python.condaPath": "~/andrew/miniconda/bin",
    "terminal.integrated.macOptionIsMeta": true,
    "http.proxySupport": "off",
    "r.rterm.mac": "/Users/andrew/miniconda/bin/radian",
    "r.rterm.option": [],
    "r.sessionWatcher": true,
    "r.bracketedPaste": true,
    "r.alwaysUseActiveTerminal": true

@awellis : Thanks so much… I had the same issue terminal.integrated.inheritEnv but had no clue this setting existed, let alone what it meant. The reason why I post here, is that I think I know what caused setting the switch to false for me: Updated VS Code from 1.4.something to 1.61.0 . After the update radian wasn’t running anymore precisely b/c of that flag.

Thank you, you fixed my issue!