Fork me on GitHub
#emacs
<
2021-06-16
>
gregoltsov16:06:10

Hi everyone! I’m having a strange issue with .dir-locals.el and not certain what’s causing it. I’m using shadow-cljs, and just wanted to make it super easy to start REPL. My whole file is

((nil . ((cider-default-cljs-repl . shadow)
         (cider-shadow-default-options . "app")
         (cider-shadow-watched-builds . ("app" "test")))))
However, when I visit any file in the project, emacs gives this error: Ignoring unsafe file local variable: cider-shadow-watched-builds . It never errors for other 2 variables. So I have to manually set it, which breaks the flow a little bit. Any idea why that variable would be causing issues? I’m using doom-emacs, and it doesn’t even give me an option to trust that variable.

hindol16:06:44

This is a fixed issue. Not sure if the fix is released though. https://github.com/clojure-emacs/cider/issues/3000

jkxyz16:06:27

Doom Emacs sets enable-local-variables to :safe. I have it set to t in my config so that it will prompt to set unsafe variables and mark them as trusted

gregoltsov22:06:09

Thanks for the replies! Will try these first thing tomorrow morning