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

unexpected '/' in R and linters disappear in Rmd #250

Closed
ErickChacon opened this issue May 11, 2020 · 6 comments
Closed

unexpected '/' in R and linters disappear in Rmd #250

ErickChacon opened this issue May 11, 2020 · 6 comments

Comments

@ErickChacon
Copy link

I am using languageserver with LanguageClient-neovim. It works well but there are two issues after saving the file:

  • There is an error at the top at the file with the message unexpected '/' when working in an R script.
  • Linters disappear when working in an Rmd script.

I have temporarily solved both issues by installing version 0.3.4.

My LanguageClient-neovim config looks like:

let g:LanguageClient_serverCommands = {
    \ 'r': ['R', '--quiet', '--slave', '-e', 'languageserver::run()'],
    \ 'rmd': ['R', '--quiet', '--slave', '-e', 'languageserver::run()'],
    \ }

let g:LanguageClient_autoStart = 0

This happens even with a minimal R script.

x <- 1:10
plot(x)
@randy3k
Copy link
Member

randy3k commented May 11, 2020

I am on the master branch and couldn't reproduce your issues.

Screen Shot 2020-05-11 at 1 18 32 PM

Screen Shot 2020-05-11 at 1 20 11 PM

Could you install the master branch and try again?

@randy3k
Copy link
Member

randy3k commented May 11, 2020

let g:LanguageClient_loggingFile = expand('/tmp/LanguageClient.log')
let g:LanguageClient_serverStderr = expand('/tmp/LanguageClient.err')
let g:LanguageClient_loggingLevel = 'DEBUG'
let g:LanguageClient_serverCommands.r = ['R', '--quiet', '--slave', '-e', 'languageserver::run(debug = TRUE)']

If possible, could you report the debug log LanguageClient.log as indicated above?

@ErickChacon
Copy link
Author

Here is the file:
LanguageClient.log

@ErickChacon
Copy link
Author

ErickChacon commented May 11, 2020

Please, take into consideration that the error shows up when you save the file. This is a screenshot when I open the file and start to edit:

langserver1

Here is a screenshot when I save the file.
langserver

@ErickChacon ErickChacon changed the title unexpected '\' in R and linters disappear in Rmd unexpected '/' in R and linters disappear in Rmd May 11, 2020
@jan-xyz
Copy link

jan-xyz commented Aug 25, 2020

This seems to be fixed on master, can we get a new bugfix release with this soon?

@renkun-ken
Copy link
Member

Closing as fixed.

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

4 participants