clojure-warrior icon indicating copy to clipboard operation
clojure-warrior copied to clipboard

Clojure Warrior sometimes not ”activating”

Open PEZ opened this issue 6 years ago • 7 comments

Sometimes (maybe 10-15% of the times, hard to estimate) when I start a session, Clojure Warrior is not doing its work. No rainbow parens, no matching, no comment syntax highlight.

I write not ”activating” in the title because I think that the extension activate actually happens. I think I have sometimes managed to ”wake” Clojure Warrior up by fiddling with settings.

I suspect it can be some conflict/race condition with Calva, but I have nothing to back that suspicion up with.

PEZ avatar Aug 10 '19 16:08 PEZ

That’s a huge number! Unfortunately I don’t use VS Code anymore, can’t share my experience

tonsky avatar Aug 11 '19 09:08 tonsky

I have this problem as well.

agoldhammer avatar Aug 15 '19 00:08 agoldhammer

I now tried w/o Calva and the problem is still there. Reloaded the window 10 times and only had rainbow parens twice, so in this particular test it was an even more huge number.

I'll have a look at it and see if I can pinpoint what goes wrong.

PEZ avatar Aug 15 '19 05:08 PEZ

I can't reproduce it in development mode. Not even if I let all installed extensions be enabled.

Thinking about why that would be, I wonder if maybe in development mode the extension under development is always loaded first. That could explain why it behaves differently... And it would suggest that it is another extension that conflicts. I wonder if there is any order to the loading in general...

PEZ avatar Aug 15 '19 06:08 PEZ

Now I can't reproduce the thing at all. Fun. Not. I'll let this rest a while.

OT: Running w/o any installed extensions showed me that someone has broken the string matching of the built-in Clojure grammar. Good thing Calva uses its own grammar. :smile:

PEZ avatar Aug 15 '19 06:08 PEZ

Works for me every time (tried ~20 times). I don’t have other extensions installed though

tonsky avatar Aug 15 '19 11:08 tonsky

Quantum effects or something. I can't reproduce this any longer. With our without other extensions.

One thing I noticed, though, while I could reproduce it, cmd+r didn't work for reloading the window. I had to choose the command from the palette. Now, when I can't repro, cmd+r works again. I think the problem is somewhere outside this extension, and that pretty parens are just very visible as symptoms. But who knows. Very strange thing anyway.

PEZ avatar Aug 15 '19 17:08 PEZ