This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-30
Channels
- # aleph (25)
- # announcements (20)
- # babashka (29)
- # babashka-sci-dev (12)
- # beginners (27)
- # biff (3)
- # clojure (29)
- # clojure-europe (21)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojurescript (3)
- # clr (5)
- # code-reviews (4)
- # data-science (7)
- # datahike (6)
- # datascript (3)
- # emacs (9)
- # fulcro (5)
- # graalvm (10)
- # malli (15)
- # nbb (7)
- # off-topic (17)
- # pathom (9)
- # polylith (4)
- # practicalli (15)
- # reitit (3)
- # releases (2)
- # rum (1)
- # shadow-cljs (73)
- # squint (34)
- # tools-deps (3)
- # xtdb (11)
Hi, how is the source-maps
npm dev dependency used in squint? I'm getting a native compilation error when trying to install it with npm install
on MS-Windows with VS-Code 2022/node.js 19.3.0. There isn't much information about it at https://www.npmjs.com/package/source-maps nor there's a public repository I can raise an issue for.
Shall I remove it? I'm about to submit a PR about a REPL issue I've just raised, and also thinking of adding win coverage to CI
@chaos please make a PR to compiler-common
- once it's committed there, it will be mirrored in the squint repo. I'm thinking of organizing things differently, but this is how it's currently set up
yes, please remove it - I'll add it back when it's necessary and deal with the Windows problem myself
also, the squint/node.js
file is picked up as the node
executable when trying to invoke node
(since js
is a valid executable extension in win) 😅shall I rename it to nodex.js
or suggest a better name? 🙂
ok not sure what this means; the issue manifest itself when I run bb build
, which invokes (shell "npx shadow-cljs --config-merge .work/config-merge.edn release squint") which results in opening squint/node.js
in visual studio code (my guess here is that npx or shadow-cljs invokes node
and node.js
is executed instead)
The meaning is that node.js
is part of the squint-cljs
package on npm
and contains the Node.js API
I've looked into better ways of offering a Node.js vs browser API in index.js
but it required transpilation / webpack, etc, stuff I didn't feel like using
I suppose the only other place I need to reflect the change is in package.json
, there is mention of it under "files"
Do I need to change both compiler-common/.github/.../squint.yml
and compile-common/squint/.github/.../ci.yml
actions or just the first?
I think I'll just move compiler-common to squint and then depend on squint from cherry, so I'll cut out compiler-common as the middle man
is it too difficult to trigger an update from a compiler-common gh action to cherry and squint for it?
I think clojure-lsp has a bot that issues a PR to clojure-lsp every time a new dependency version is created that seems akin to the above
so I was thinking, perhaps, when a compiler-common
commit is made a action is triggered to create a PR for squint and cherry to bump the submodule to that version. The PR will trigger the tests for both.
also sounds complex. I've just spent literally two days doing the thing there is now and I'm still not satisfied
ah I see though, this is about the compiler-common PRs not merges to master, it will create a lot of noise to cherry and squint while the PR is being worked on. Another idea perhaps is to treat squint and cherry as "integration" tests; the compiler-common PR action could clone cherry and squint and update their compiler common submodule to that of the PR, then run their tests
From my perspective it's fine as it is now btw, once you realize that you have to work on the compiler-common repo and not in squint (it took me some time to figure this out, perhaps the squint's readme.md needs to be more specific if the current scheme remains in place). The only gray area is the CI that needs to be duplicated by hand and run twice on GH