This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-17
Channels
- # announcements (4)
- # aws (17)
- # beginners (108)
- # calva (2)
- # clojure (164)
- # clojure-austin (1)
- # clojure-europe (3)
- # clojure-italy (1)
- # clojure-nl (17)
- # clojure-uk (98)
- # clojurescript (31)
- # code-reviews (1)
- # cursive (23)
- # data-science (1)
- # dirac (6)
- # emacs (21)
- # figwheel-main (1)
- # fulcro (53)
- # graphql (2)
- # hoplon (1)
- # lein-figwheel (1)
- # leiningen (2)
- # lumo (21)
- # off-topic (118)
- # onyx (4)
- # pathom (59)
- # pedestal (2)
- # planck (3)
- # reagent (47)
- # reitit (2)
- # shadow-cljs (258)
- # spacemacs (3)
- # sql (10)
- # tools-deps (37)
I am trying to build a node library for vscode using it, and for some reason the exports I do in my namespace doesn't seem to carry over to the main.js
that is built when using lumo.build.api/build
.
basically I run this:
(require '[lumo.build.api :as b])
(b/build "src"
{:main 'extension.lul
:output-to "out/main.js"
:output-dir "out"
:optimizations :none
:target :nodejs})
and in extension.lul
I have some exports, but they aren't available when vscode starts up out/main.js
I could fix this by adding module.exports = {"activate": extension.lul.activate};
at the end of out/main.js
, but I feel that there should be a cleaner way to solve this...? 😄
Hello,
I'm planning on using Lumo for scripting in a project. I use Spacemacs, installed inf-clojure
and managed to connect to a REPL through lumo -d -c 5555
.
After executing inf-clojure
, I can evaluate code in the source code buffer but I have no completion. I have completion though in the REPL buffer.
I have no special configuration in dir-locals.el
.
I am not an Emacs expert so I surely missed something in the documentation to have completion in the source code buffer. Does someone has a clue?
Thanks
Actually I have some completions. I have js/console
and aget
but not reduce
for example...
@dam this has been bit annoying factor about inf-clojure, the lumo completions. I'd ask Andrea Richardi but it seems he has left slack? But implementing nrepl in lumo should be possible now, someone just has to take the time to implement it.
@richiardiandrea no here he is 🙂
hey I am back 😄
weird that you don't have reduce, let me check
I am actually starting to use lumo
again with a custom AWS layer
I see reduce
here with the latest lumo, please open a ticket with the lumo and inf-clojure version and I can see what I can do @dam
yes particularly reduce should work, that was the exact symbol I used for a ticket last year, so perhaps they're using old inf-clojure, spacemacs resolving to melpa-stable instead of melpa..
anyway, I'm not using lumo much myself other than testing functions quickly, it is my goto calculator.
yeah agree the version could be outdated