Fork me on GitHub
#calva
<
2021-07-28
>
fabrao02:07:12

hello all, is there any way to see if calva is starting with UTF-8?

bringe03:07:49

What do you mean by "starting with UTF-8?"

bringe03:07:08

You can see what encoding is being used for the given file in the status bar (this is a VSCode feature), and you can click it and select to reopen a file with a specific encoding, or save with a specific encoding. I'm not sure if that's helpful to you.

fabrao11:07:53

every time I started in command line with deps.edn with :dev {:jvm-opts ["-Dclojure.server.repl={:port,5556,:accept,clojure.core.server/repl}" "-Dfile.encoding=\"UTF-8\""]} to java start in UTF-8 mode. But I see that Jack-in I can´t include this file.encoding="UTF-8"

fabrao21:07:44

I think it works

🎊 3
introom15:07:19

Is it possible to restart lsp? I’ve the lsp config file modified, but I don’t want to close vscode and restart.

ericdallo15:07:38

Window Reload

👍 3
pez16:07:43

Note: That will kill the REPL.

☝️ 3
pez16:07:37

(If it was started via Jack-in, as I think it is in this case.)

ericdallo16:07:54

It's on my backlog add support for reloading config automatically 😅

🙏 3
👍 3
fubar21:07:05

One of the problems I’m having with Vim is that Forward Sexp doesn’t respect visual mode. For example if I go to the end of a form, it gets stuck unless I put it in insert mode after the parenthesis before doing another Forward Sexp. Any ideas?

pez06:07:19

No ideas, really. Calva would need to know about visual mode to be able to know what is the right thing to do.

fubar21:07:15

Also wondering how do you toggle paredit mode? I was thinking about disabling it so I can keep Calva for the REPL and other features, then using something else like parinfer-rust through the VS Code Neovim extension to get some paredit-like functionality

pez06:07:43

Paredit and parinfer should be quite compatible. I don't think disabling paredit will gain you anything. What you probably will need to disable is Calva's autoformatting.

fubar21:07:41

This is what I mean by disable paredit mode. I see it in the manual here https://calva.io/paredit/ but can’t find how to actually do it in VS Code

fubar21:07:32

Oops nevermind I found it "calva.paredit.defaultKeyMap": "none" it was on that page after all, at the bottom

fabrao23:07:28

Hello all, is there any way to refresh tests from a namespace, if I remove one test, how can I remove that test is not use anymore?

bringe00:07:01

The only way I know to do it, besides restarting your repl, is to redefine the var that the test was assigned to. So if you removed a test called some-test then evaluating (def some-test nil) in the same namespace would make that deleted test not run any more. This is not a great solution though, of course 😄. I'd recommend restarting your repl, unless anyone else knows a better way. CC @U0ETXRFEW

pez06:07:41

un-aliasing the var should hide it from any dynamic lookup. Calva has a command for refreshing the namespace, which might work.

fabrao12:07:54

I tested with (remove-ns 'namespace) and it worked

bringe02:07:45

TIL about ns-unalias 😄.