emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
gregoltsov 2021-06-16T16:10:10.047800Z

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.

hindol 2021-06-16T16:33:44.047900Z

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

jkxyz 2021-06-16T16:54:27.050400Z

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

gregoltsov 2021-06-16T22:48:09.051600Z

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