Fork me on GitHub
#cursive
<
2018-03-01
>
lgouger00:03:31

@cfleming namespaced keywords aren't being highlighted everywhere they appear in the editor, unlike regular keywords where every occurrence is highlighted. (images to follow)

cfleming00:03:58

@lgouger Right, there’s an issue in the new declared keywords functionality where the declaration is not highlighted (all usages are).

lgouger00:03:36

ok, matches what I'm seeing

cfleming00:03:08

In your example, the non-namespaced keyword “works” because only namespaced keywords are eligible to be treated as declarations - doing it for non-namespaced ones would change the semantics of that keyword everywhere, which seems dangerous.

cfleming00:03:52

So you won’t be able to navigate to the first example from the usage, and it won’t show up in File Structure.

lgouger00:03:51

ok, "works" because all occurrences are usages, none is a declaration

cfleming00:03:17

Right, and Cursive doesn’t treat it as a declaration at all, it’s just a normal keyword.

lgouger00:03:36

got it, thanks

cfleming01:03:22

In your case, the keyword is long enough that it’s probably unambiguous, but for shorter keywords it could be very confusing. So even if it’s purely for Cursive support, I recommend using namespaced keywords for all re-frame declarations. spec already enforces that.

lgouger01:03:34

thanks, yeah, transitioning that direction

cfleming01:03:10

Cool - it’s a good idea even apart from Cursive support, of course.

kenny01:03:42

I also find the lack of namespaced kw highlighting frustrating 🙂

lgouger01:03:01

but GoTo and Find Occurrences are cool

cfleming01:03:53

@gphilipp Nice solution, but you’re right that it really needs a solution within the IDE, if only so it works correctly on Windows. I’ll investigate that.

gphilipp15:03:40

I think it work on windows too. It’s easier because you have dedicated UI to edit your global environment variables in the settings.

cfleming01:03:48

@holyjak Yes, that would be nice to support.

Petrus Theron09:03:08

How do I find an unmatched ']' delimiter in my project? boot repl won't start because it complains about an unmatched delimiter, but I can't find it. Probably caused by Parinfer after switching to it.

gphilipp15:03:56

Yes it does. We use

:username [:gpg :env/artifactory_user]
:password [:gpg :env/artifactory_password]
in our project.clj