Open teotenn opened 1 year ago
UPDATE
Since I read a lot the recommendation of having ~/R/lintr_cache
which I tried to place in varios locations, my latest attempt was to identify the path of lintr's cache. I found it under C:\Users\<username>\AppData\Local\R\cache\R\lintr
. I tried creating there the specific folder lintr_cache
or also in some parent dirs, but nothing changed. In my Linux machine, where flymake works without a problems, the cache folder ir R/lintr
so, same naming.
QUESTION Is this warning really related to the cache directory? The warning message is totally useless in this case and it is hard to debug. If you don't know how to solve the problem, can somebody give me at least some example how could I debug the function ess-r-flymake
?
What happens if you try making a folder ~/.R/lintr_cache
? The missing .
might be causing an issue.
I posted the following in the issue #883 but then I realized it is closed already so, I decided to open a new one. I am having same issue as other people had but I'm not able to solve it with the detailes expossed in the discussion.
I am having the same problems described in the issue. The one about not finding the init file was solved using
(remove-hook 'flymake-diagnostic-functions 'flymake-proc-legacy-flymake)
in my emacs init file. But I still receive the following warning:The part of
cannot open file
is always the first line of the R script I try to check. I have this one set for test, but I tried opening other scripts and the only difference is that one line.What is even more weird is that, in my linux laptop I can use flymake with ess without problems, but this problem appears on windows only. I have the same version of flymake in both (1.2.2) and same Emacs and ESS too.
I also tryied creating the
~/R/lintr_cache
but nothing changes. Here is my config file.Originally posted by @teotenn in https://github.com/emacs-ess/ESS/issues/883#issuecomment-1406832854