Fork me on GitHub
#lumo
<
2019-04-17
>
Saikyun08:04:57

hello, I've been trying out lumo a bit. it seems awesome! love the startup time 😉

Saikyun08:04:53

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.

Saikyun08:04:38

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

Saikyun08:04:11

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...? 😄

Saikyun08:04:16

any help appreciated!

hlolli17:04:00

What have you tried, goog.export and ^:export meta?

lambdam14:04:55

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

lambdam15:04:42

Actually I have some completions. I have js/console and aget but not reduce for example...

hlolli17:04:40

@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.

hlolli17:04:00

I'd just open a ticket on inf-clojure project.

hlolli17:04:54

@richiardiandrea no here he is 🙂

richiardiandrea17:04:43

hey I am back 😄

hlolli17:04:59

we missed you 😄

richiardiandrea17:04:02

weird that you don't have reduce, let me check

richiardiandrea17:04:18

I am actually starting to use lumo again with a custom AWS layer

richiardiandrea17:04:45

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

hlolli17:04:37

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..

hlolli17:04:10

anyway, I'm not using lumo much myself other than testing functions quickly, it is my goto calculator.

hlolli17:04:32

But I'd use it for any electron based app

richiardiandrea17:04:06

yeah agree the version could be outdated

lambdam17:04:19

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).