lein-figwheel

kennytilton 2020-07-08T03:30:18.032300Z

I am trying to create a figwheel project (for the first time in ages) to run under IntelliJ with Cursive and following the instructions there. I failed pretty quickly on the npm install: gyp ERR! configure error  gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack   at ChildProcess.onCpExit (/Users/kennethtilton/.nvm/versions/node/v7.10.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:308:16) gyp ERR! stack   at emitTwo (events.js:106:13) gyp ERR! stack   at ChildProcess.emit (events.js:194:7) gyp ERR! stack   at Process.ChildProcess.handle.onexit (internal/childprocess.js:215:12) gyp ERR! System Darwin 18.7.0 gyp ERR! command “/Users/kennethtilton/.nvm/versions/node/v7.10.1/bin/node” “/Users/kennethtilton/.nvm/versions/node/v7.10.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /Users/kennethtilton/jammo/node_modules/fsevents gyp ERR! node -v v7.10.1 gyp ERR! node-gyp -v v3.5.0 gyp ERR! not ok  npm WARN jammo No repository field. npm WARN jammo No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

kennytilton 2020-07-08T10:32:35.032600Z

I ignored it and continued with the rest of the directions, all seems well. 🎉 But will this eventually bite me?

bhauman 2020-07-08T14:11:07.032800Z

@hiskennyness I don’t know, it seems like there is something up with your node install. nothing wrong with using nvm to install a new version the latest stable version is 12 something

bhauman 2020-07-08T14:11:43.033Z

@hiskennyness also you can create a template that doesn’t use npm

bhauman 2020-07-08T14:12:38.033200Z

via the +no-bundle option when using the lein figwheel template

kennytilton 2020-07-08T14:16:50.033400Z

Thx, @bhauman! Not using npm sounds like heaven. Me and node do not get along! I will start over with +no-bundle. 🙏

👍 1
bhauman 2020-07-08T14:17:53.033700Z

@hiskennyness also you may want to try out figwheel-main …

bhauman 2020-07-08T14:18:04.033900Z

there’s a lot more development time in it

bhauman 2020-07-08T14:18:25.034100Z

but lein figwheel still works for sure

kennytilton 2020-07-08T15:49:41.034300Z

Ah, yes, figwheel-main, it is all coming back to me. Thx again!

kennytilton 2020-07-08T03:33:14.032400Z

It says “optional”. Should I just ignore this, or start googling node-gyp? 🙂 My npm --version is 4.2.0, and npm update finds nothing to do. Any suggestions?🙏

kennytilton 2020-07-08T17:56:34.036600Z

Hmm, so I was whining about none of the music repos offering examples when I noticed further down on the cljs-bach readme that I could run an example that ships with it. This still looks like it might be a figwheel issue:

Exception in thread "main" java.io.FileNotFoundException: Could not locate clojure/tools/nrepl/middleware/interruptible_eval__init.class or clojure/tools/nrepl/middleware/interruptible_eval.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name., compiling:(figwheel_sidecar/repl.clj:1:1)

kennytilton 2020-07-08T17:57:52.038100Z

This looks like a not recently maintained repo. Is this just bit rot? I did do lein deps first and that ended without complaint.

bhauman 2020-07-08T17:57:58.038200Z

seems like the example is just running an old version of figwheel?

bhauman 2020-07-08T17:58:14.038600Z

that is incompatible with your lein

kennytilton 2020-07-08T17:59:04.039600Z

OK, thx. I will just examine the source of the example, that should get me going. Thx! 🙏