This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-04
Channels
- # announcements (19)
- # babashka (11)
- # babashka-sci-dev (9)
- # beginners (71)
- # calva (25)
- # cider (1)
- # clara (36)
- # clj-kondo (47)
- # clojure (65)
- # clojure-dev (64)
- # clojure-europe (9)
- # clojure-nl (2)
- # clojure-seattle (1)
- # clojure-uk (2)
- # clojured (8)
- # clojurescript (17)
- # cursive (9)
- # data-science (36)
- # datahike (11)
- # emacs (10)
- # figwheel-main (19)
- # fulcro (15)
- # graalvm (12)
- # humbleui (5)
- # introduce-yourself (3)
- # jobs (10)
- # leiningen (4)
- # lsp (24)
- # malli (7)
- # nextjournal (23)
- # off-topic (1)
- # pedestal (2)
- # polylith (6)
- # portal (1)
- # re-frame (3)
- # reitit (2)
- # releases (2)
- # remote-jobs (1)
- # reveal (9)
- # shadow-cljs (13)
- # spacemacs (6)
- # xtdb (3)
Something is wrong with EDN editing in my instance of Calva. I keep getting:
Parse error on line 1:
{:lint-as {com.wsscod
-^
Expecting 'STRING', '}', got ':'
looks like something is trying to parse ot as json
@U0HJYDTP1 you've actually asked the same question before 😄 Seems to be a VSCode issue https://clojurians.slack.com/archives/CBE668G4R/p1642910250138900
I don't really understand what's going on. The mode for says Clojure, anyway to find out if another program is reading the file?
And it seems to disappear after a while or after resuming from suspend. But comes back as soon as I edit the file again
Finally, I found the culprit: https://marketplace.visualstudio.com/items?itemName=Togusa09.tmlanguage
Strange that it would do anything on .edn files. According to it’s package.json it shouldn’t
Why does enter
not choose my selection from the suggestion menu when I'm not in a form in the output window but it does choose when I'm in a form ? Is this the normal behavior
This is the result after enter
failed to pick suggestion:
When your cursor is after the last content in the output window, enter
will evaluate the form after the prompt.
We might be able to use a context for that binding to make it not evaluate when the suggestion window is open. What do you think @U0ETXRFEW?
@U9A1RLFNV Okay I see that is the reason it works when the cursor is in a form. Thanks
@U0ETXRFEW eagerly waiting for the context when you can remember it
I think it could be suggestWidgetVisible
. So if you make the when clause of enter
for the command calva.evaluateOutputWindowForm
to be:
"calva:keybindingsEnabled && calva:outputWindowActive && calva:outputWindowSubmitOnEnter && editorTextFocus && !suggestWidgetVisible"
That might make it behave correct.VS Code has a pretty set of when contexts: https://code.visualstudio.com/api/references/when-clause-contexts
Please file an issue on Calva about this, @U0HJYDTP1. So we can fix the defaults. You are of course welcome to provide a PR fixing it.
@U0ETXRFEW thanks it worked. I will file an issue and see if I can track down the place in the code where it's defined. @U9A1RLFNV thanks for the heads up
On another note regarding the suggest widget is it possible to make tab
key cycle the suggestion?
I don't know if you can customize how the suggestions are cycled. It's funny how that works differently in all various implementations of it in different systems.
I found a solution from the web here: https://blog.lanzani.nl/2016/tab-in-vscode/