Skip to content

Commit

Permalink
fix(r-language-server): Use --no-echo instead of --slave
Browse files Browse the repository at this point in the history
Starting from R version 4.0.0, the command line option `--slave` were
renamed to `--no-echo`.

See the relevant news for 4.0.0:
https://cran.r-project.org/bin/windows/base/old/4.0.0/NEWS.R-4.0.0.html
and the corresponding commit:
wch/r-source@f1ff49e#diff-4747789d759ae72b19c9791301bf52e8cfc5c23dbdda10bf1a6bd003509395dd
  • Loading branch information
mutlusun committed Aug 22, 2024
1 parent a7f0f9c commit 6fddf33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/server_configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -9413,7 +9413,7 @@ require'lspconfig'.r_language_server.setup{}
**Default values:**
- `cmd` :
```lua
{ "R", "--slave", "-e", "languageserver::run()" }
{ "R", "--no-echo", "-e", "languageserver::run()" }
```
- `filetypes` :
```lua
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/r_language_server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local util = require 'lspconfig.util'

return {
default_config = {
cmd = { 'R', '--slave', '-e', 'languageserver::run()' },
cmd = { 'R', '--no-echo', '-e', 'languageserver::run()' },
filetypes = { 'r', 'rmd' },
root_dir = function(fname)
return util.find_git_ancestor(fname) or vim.loop.os_homedir()
Expand Down

0 comments on commit 6fddf33

Please sign in to comment.