The asking for the directory happens before the inferior-ess-r-mode is installed into the buffer, which means the mode hooks that set project-find-directory have not run yet. Let binding around the call to inferior-ess as it currently is not good because of the warning in #1185.
The proposed solution is not ideal either because the functions which are run in the mode-hook don't see the new default-directory. I am not sure if this is acceptable.
All other ways to fix this I can think of are rather hacky :thinking:
We have a problem with #1185
The asking for the directory happens before the
inferior-ess-r-mode
is installed into the buffer, which means the mode hooks that setproject-find-directory
have not run yet. Let binding around the call toinferior-ess
as it currently is not good because of the warning in #1185.The proposed solution is not ideal either because the functions which are run in the mode-hook don't see the new
default-directory
. I am not sure if this is acceptable.All other ways to fix this I can think of are rather hacky :thinking: