Clojurians
#cursive
<
2017-05-31
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

dealy14:05:13

Hi, I've been trying to get figwheel to work properly in a Cursive REPL. It halfway works, my web browser can connect just fine, and the app runs. However I always see this in the REPL: Choose focus build for CLJS REPL () or quit > . I'm not sure what the problem is. I can't do any of the Cursive magic like switching namespaces or loading files etc.

dealy14:05:00

Any idea what that message means, and how to fix it?

misha15:05:54

offtopic: how do I close it without mouse/touchpad?

zylox15:05:07

you must give it a name before it can be vanquished

zylox15:05:17

but i dont know ¯\(ツ)

misha16:05:42

@zylox I mean "how do I press ok w/o mouse". esc space enter tab cursors do not work

zylox16:05:26

oh i understood your question. I don't have an answer sorry bud

misha16:05:30

I can submit empty name dialog with enter just fine, but then I'am stuck here

misha16:05:12

for developers by developers™ :opieop:

cfleming22:05:59

@misha That’s really weird, I’ve never seen that. I’m very surprised ESC doesn’t work, too.

cfleming22:05:38

@dealy Can you post a screenshot of what you’re seeing in the REPL pane?

cfleming22:05:45

So I’m not sure what’s happening there - hopefully someone with more Figwheel experience can chime in.

cfleming22:05:41

I believe it’s asking you to choose a build from your cljsbuild configs, so perhaps dev or prod, or whatever you have configured in your project.clj.

cfleming22:05:06

It usually picks one by default, but I believe it only picks builds with optimizations: none.

cfleming22:05:17

Do you have one with no optimizations?

dealy22:05:23

yea, that's what I thought also, but where is it expecting me to specify this?

dealy22:05:41

I have a file called repl.cljs that looks like this:(use 'figwheel-sidecar.repl-api) ;(start-figwheel! {:build-ids ["app"]}) ;; <-- fetches configuration (start-figwheel!) ;; <-- fetches configuration (cljs-repl)

cfleming22:05:22

What is the optimization level of your app build ID?

dealy22:05:46

its set to none in [:profiles :project/dev :cljsbuild :builds :app :compiler :optimizations] if that is what you're asking

cfleming22:05:59

Yes, it is.

cfleming22:05:25

Then I’m out of ideas, sorry - I haven’t actually used Figwheel much. Perhaps #clojurescript can help.