it stay like this, there's an option to align it?
Hi @mtwomey, check out this answer on Stack Overflow: https://stackoverflow.com/questions/31175396/define-project-specific-tasks-in-leiningen
Sadly not, but I’m working on babashka for a release soon.
Right, there’s no good way to do this right now, sorry. This is because lein makes it hard (and slow) to get the list of tasks. One thing you can do is create a leiningen run configuration which will execute that task.
Where do I enter the cursive license? I'm renewing one but can't find the option 😅
in the help -> register cursive menu
I wonder why regular quoting does remove highlighting of unresolved symbols, while syntax-quoting doesn’t? The content is quoted in both cases, so should it really make a difference?
regular quoting will just leave the symbol unevaluated. syntax quoting resolves symbols to fully-qualified symbols, so here would resolve something like ?form
to your-ns/?form
. I think (?) what you're seeing there is that Cursive is marking your-ns/?form
as an unknown var in your-ns.
Hm… that makes sense
Is there no way I can unquote inside a quoted data structure?
The only reason I went with ` is because I would like to use ~
I think you're asking to not resolve those symbols?
yeah, basically
if so, the typical way to do that in ` is to ~'
so ... ~'?form ...
which is terrible here of course :)
yeah, but the only reason I am using ` is because I can’t unquote inside a regular quoted data structure. The other alternative is to quote every single symbol other than written-rep, which is tedious 😞
there are multiple options here
it's important to keep in mind that this is all data
(into [:bgp ['?form :ontoloex/writtenRep written-rep]]
'[[?form ...] ...])
Yeah, that’s one way to do it 🙂
But it seems like a workaround. It sure would be great if one could unquote inside a quoted data structure 😉
well you can, that's ~
it's the symbol resolution that you don't want
another option is the little-used http://clojure.github.io/clojure/clojure.template-api.html
you can use apply-template for something like this I believe
(clojure.template/apply-template '[x]
'[:bgp
[?form :ontolex/writtenRep x]
[?word :ontolex/canonicalForm ?form]
;; etc
]
[written-rep])
(apply-template '[written-rep]
'[:bgp
[?form :ontolex/writtenRep written-rep]
[?word :ontolex/canonicalForm ?form]
[?word :ontolex/evokes ?synset]
[?synset :ontolex/lexicalizedSense ?wordsense]
[?wordsense :ontolex/isSenseOf ?other-word]
[?other-word :ontolex/canonicalForm ?other-form]
[?other-form :ontolex/writtenRep ?other-rep]]
[written-rep])
this does work, but it’s a little ugly 🙂
Maybe a macro that quotes every symbol starting with a ? is in order?
though that doesn’t help with cursive highlighting 😛
nevermind, I think Aristotle actually supports a bindings map, so I’ll just use that
thanks for helping out anyway, @alexmiller!
And for introducting me to apply-template.
I see an old git ticket for this bug I get a lot when loading files into REPL: (https://github.com/cursive-ide/cursive/issues/1286)
Error updating class definitions:
Execution error (NullPointerException) at java.util.concurrent.ConcurrentHashMap
Is this considered unfortunately "normal"?the default auto-import does (for instance): (:import (java.time LocalDate))
is there a way to tell it instead to do (:import java.time.LocalDate)
(this is to adhere to our internal style guidelines)
Is it possible to add vars also in the breadcrumb navigation? I use breadcrumb navigation all the time when I'm writing JS. Navigating between functions becomes much faster and I can also quickly see all the vars in the ns at a glance without opening the Structure
pane.