vim

For discussion on all things (neo)vim.
mjw 2020-10-31T13:39:57.120900Z

When using vim-iced, I usually start my repl with iced repl -A:dev, which now gives a warning about using -M when invoking main. However, using -M:dev instead results in a FileNotFoundException. I assume vim-iced has its own internal list of recognized CLI options that it passes to clj ?

practicalli-john 2020-10-31T18:25:52.121Z

The -A alias should work for a while longer, but ideally vim-iced should also accept the -M option. It does sound like vim-iced has hard-coded the -A alias somewhere as -M and -A are interchangable at the moment (but not forever). From Clojure CLI tools 1.10.1.697 onwards, when ever clojure.main is called, the -M flag should be used, although for the moment its just a warning. Running a REPL using Clojure CLI tools currently uses clojure main to start that repl.

practicalli-john 2020-10-31T18:27:56.121200Z

If vim-iced can connect to an externally started REPL process, then to avoid the warning use that approach and you should be able to use -M for your aliases.

👍 1
2020-10-31T20:35:14.121500Z

Not everyone is using the newer version of Clojure CLI tools at the moment, so the -M option was not yet supported

2020-10-31T20:35:22.121700Z

@jr0cket Thanks for your help!

👍 1
mjw 2020-10-31T22:51:30.122Z

Gotcha, thanks! More than anything I wanted to make sure I wasn’t doing anything wrong/missing something obvious.