Fork me on GitHub

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.


This is a fixed issue. Not sure if the fix is released though.


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


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