Fork me on GitHub
#cursive
<
2020-10-06
>
helios11:10:20

i might have already asked, but is there a way to have syntax highlighting into babashka scripts that have no file extension? or is that something inside intellij that's not easily configurable?

borkdude11:10:56

may I ask why you don't just use .clj or .cljc @helios?

💡 3
helios15:10:26

Because we make self contained executables with the shebang 🙂 and they normally don't have an extension

helios15:10:44

Also if i put .clj, cursive thinks it's a "normal" clj file and not a bb script, and it can't resolve anyway

borkdude15:10:18

I make .clj scripts with shebangs all the time

helios15:10:33

good for you 😉

borkdude15:10:24

Shebangs don't exclude extensions, that's just wrong ;)

helios20:10:39

Yeah totally. I've used emacs with no problem by just setting the mode with front matter but was hoping there is the same flexibility in intellij. It's not a problem because we use a bb wrapper anyway to auto put the classpath

cfleming21:10:13

Yes, I have on my list to fix the symbol resolution in babashka scripts, but I haven’t got to that yet.

borkdude11:10:54

you may be able to associate the Clojure file type with some other extension (e.g. .bb)

andrzejsliwa21:10:49

is there any way (via jar or other way) to make cursive aware about dom/js api?

cfleming21:10:37

Not at the moment, but it’s on my short list to fix.

👍 9
andrzejsliwa21:10:11

I generated shadow-cljs project, then generated with it the pom file, to import it correctly from intellij/cursive level. Reagenet is recognized, but I have no idea how to make cursive aware about dom/js contracts