lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
vigilancetech 2019-11-30T10:15:52.038Z

Can anyone tell me why the second example program on this page can't find the randomUser.json file (even tho its right in CWD)? https://itnext.io/command-line-scripting-with-clojurescript-5e5567367713

2019-11-30T14:09:39.038700Z

@vigilancetech if i understood what you were referring to correctly, it seems to work for me

2019-11-30T14:11:47.039300Z

it's the program that creates randomUser.edn, right?

vigilancetech 2019-11-30T18:05:05.039700Z

yes

vigilancetech 2019-11-30T18:06:14.040900Z

I'm trying to get it to work in msys2 if that helps. I've tried it without the "./" leading the "randomUsers.json" in case there's an issue with forward and back slashes

vigilancetech 2019-11-30T18:06:51.041600Z

I haven't tried it with a ".\" however (or ".\\" whatever)

vigilancetech 2019-11-30T18:07:21.042100Z

generally I haven't found that to be an issue when writing cljs under msys2 yet however

vigilancetech 2019-11-30T18:17:47.042800Z

$ ls
node_modules/  NUL  package.json  package-lock.json  randomUsers.json  src/

$ ./src/my_tool/foo.cljs
Cannot find module './randomUsers.json'
         Function.Module._resolveFilename (internal/modules/cjs/loader.cljs:655:15)
         Function.Module._load (internal/modules/cjs/loader.cljs:580:25)
         Module.require (internal/modules/cjs/loader.cljs:711:19)
         require (internal/modules/cjs/helpers.cljs:14:16)
         Object.<anonymous> (C:NaN:3)
         Module._compile (internal/modules/cjs/loader.cljs:805:30)
         (<http://Object.It|Object.It>)
         (Object.lumo.repl.caching_node_eval)
         (NO_SOURCE_FILE &lt;embedded&gt;:6029:9)
         z (NO_SOURCE_FILE &lt;embedded&gt;:6030:22)

2019-11-30T18:39:29.043500Z

it sounds like you're trying in windows -- is that right? haven't tried there.

vigilancetech 2019-11-30T19:25:35.045300Z

msys2 is kind of a quasi-windows/quasi-linux. The programs are windows exe's but the paths have been finessed from Unix paths

2019-11-30T20:07:57.045800Z

when my machine is less burdened, i'll see if i can reproduce in a windows vm

2019-11-30T20:28:47.046700Z

@vigilancetech i don't have vanilla msys2, but i do have what one gets with git bash. there and via windows powershell (didn't try core), execution successfully created randomUsers.edn for me

2019-11-30T20:30:20.047800Z

this was in a windows 10 vm. i installed nvm via scoop and got node 8.16.2 to test. lumo was installed using npm install -g lumo-cljs

vigilancetech 2019-11-30T20:51:59.049Z

thanks, yeah I just had a problem with msys2 and node. It was unsupported by it's project manager so I installed node via its latest .msi file. Maybe my version is *too new

vigilancetech 2019-11-30T20:54:24.049200Z

I'm running node v13.2.0

vigilancetech 2019-11-30T20:56:37.049500Z

@sogaiu what is your lumo version?

2019-11-30T21:06:22.050200Z

@vigilancetech

Lumo 1.10.1
ClojureScript 1.10.520
Node.js v11.13.0
 Docs: (doc function-name-here)
       (find-doc "part-of-name-here")
 Source: (source function-name-here)
 Exit: Control+D or :cljs/quit or exit

cljs.user=&gt;

2019-11-30T21:08:03.050700Z

interestingly, when i do node --version right after i get: v8.16.2

vigilancetech 2019-11-30T23:37:47.051Z

yeah, I have the same lumo version

vigilancetech 2019-11-30T23:38:42.051900Z

guess I'm gonna try and open that file with a function and see if it also has a path issue