hello, I've been trying out lumo a bit. it seems awesome! love the startup time 😉
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...? 😄
any help appreciated!
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.
I'd just open a ticket on inf-clojure project.
What have you tried, goog.export and ^:export meta?
@richiardiandrea no here he is 🙂
hey I am back 😄
we missed you 😄
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.
But I'd use it for any electron based app
yeah agree the version could be outdated
Oh thanks. So it seems that I bumped into a specific bug with a specific versions. I'll try later with updated versions (I didn't manage to upgrade all my dependencies for a full Clojure + re-natal project. I'm a bit stuck until I take time again to (try to) upgrade).