nbb

sparkofreason 2022-11-10T05:21:05.733019Z

Trying to use instaparse with nbb, and getting the following error:

----- Error --------------------------------------
Message:  Could not find namespace: instaparse.macros
Could not find namespace: instaparse.macros
Is there some option I need to specify, or am I just out of luck with instaparse?

Daniel Gerson 2022-11-10T09:35:34.682669Z

I suspect this file should be renamed .cljchttps://github.com/Engelberg/instaparse/blob/master/src/instaparse/macros.clj

Daniel Gerson 2022-11-10T09:42:06.659369Z

Not sure how it could ever have worked with clojurescript though, and the lack of use of reader conditionals. I'm probably not getting something.

borkdude 2022-11-10T11:38:28.545989Z

CLJS executes .clj files when run from the JVM for macros

👍 1
borkdude 2022-11-10T11:38:47.018279Z

but instaparse isn't SCI-compatible, for other reasons, it also doesn't run with bb

sparkofreason 2022-11-10T13:56:12.377439Z

Okay. Thank you.

borkdude 2022-11-10T13:56:36.992609Z

Perhaps there is a similar npm library though

sparkofreason 2022-11-10T13:57:03.876119Z

Quite a few, I've been looking through them.

Adrien Blavier 2023-02-21T15:40:20.772409Z

Any recommandations? Can’t seem to find any decent ones.

borkdude 2023-02-21T15:41:18.558259Z

In the meanwhile, there is now https://github.com/babashka/instaparse-bb for babashka

Adrien Blavier 2023-02-21T15:42:27.516389Z

Thanks for the reply. Can I use this with nbb? I suppose not?

borkdude 2023-02-21T15:43:50.164769Z

Not with nbb currently

Adrien Blavier 2023-02-21T15:44:17.134629Z

OK that’s fine. Thanks for the reply 🙂

borkdude 2023-02-21T15:45:52.394109Z

Could be an idea to make pods available to nbb as well

borkdude 2023-02-21T15:46:13.157079Z

I guess all of those exposed functions would be async though, but technically possible