lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
Saikyun 2019-04-17T08:40:57.006800Z

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

Saikyun 2019-04-17T08:41:53.007900Z

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.

Saikyun 2019-04-17T08:42:38.008700Z

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

Saikyun 2019-04-17T08:43:11.009300Z

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

Saikyun 2019-04-17T08:43:16.009500Z

any help appreciated!

lambdam 2019-04-17T14:28:55.015500Z

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

lambdam 2019-04-17T15:10:42.016400Z

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

2019-04-17T17:26:40.018500Z

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

2019-04-17T17:27:00.018900Z

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

2019-04-17T17:28:00.019Z

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

2019-04-17T17:28:54.019400Z

@richiardiandrea no here he is 🙂

richiardiandrea 2019-04-17T17:29:43.019800Z

hey I am back 😄

2019-04-17T17:29:59.020100Z

we missed you 😄

richiardiandrea 2019-04-17T17:30:02.020300Z

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

richiardiandrea 2019-04-17T17:30:18.020700Z

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

richiardiandrea 2019-04-17T17:31:45.021500Z

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

2019-04-17T17:32:37.022400Z

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

2019-04-17T17:33:10.023Z

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

2019-04-17T17:33:32.023400Z

But I'd use it for any electron based app

richiardiandrea 2019-04-17T17:35:06.024200Z

yeah agree the version could be outdated

lambdam 2019-04-17T17:45:19.026500Z

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