In RStudio version 1.4.1103, I create a .stan file, give it a name and save it for the first time. Then after changing the file I am not able to save it anymore! And RStudio completely hangs after that, leaving me no choice but to close it and open it with another project entirely. I have checked .R files and .Rmd files (within this same project) and they don't seem to have a problem. I'm really lost here and don't understand what could possibly be the problem. Sometimes it gives me the following error message and sometimes not (I guess it takes it a lot of time to just create the message!):
I had an earlier version and after facing this problem uninstalled it and instead installed the latest version, which didn't help. Also, note that I can read stan files and have a code that read stan files without a problem and executes the following steps.