microsoft / RTVS

R Tools for Visual Studio.
MIT License
388 stars 118 forks source link

error messages for .rprofile issues #4365

Open ethanbsmith opened 5 years ago

ethanbsmith commented 5 years ago

I ran into an issue with a syntax error in my .rprofile file. This issue only materializes when starting a new VS session. if the VS session starts fine and the a subsequent syntax error is introduced into .rprofile , resetting the r session from within VS works fine.

the error given is:

Connecting to R Workspace failed.
Reason: HTTP error while creating session on the machine 'Microsoft R Open (3.5.1.0)'. Exception: The remote server returned an error: (404) Not Found.
Interactive Window is disconnected from R session.
Open Workspaces window and either select local R interpreter or try connecting to a remote machine.

further, resetting the r session after this error does not work, even after the syntax error is fixed. the only workaround is to restart VS. MROpen works fine and gives an informative syntax error.

image