nbb

m3tti 2024-09-18T07:05:07.923059Z

hey guys is there allready something like nextjs or nuxt or fresh for nbb? would love to see something like that

borkdude 2024-09-18T07:31:44.577479Z

Do you mean something that is a fully featured thing rather than one library? Perhaps #sitefox ?

m3tti 2024-09-18T07:33:43.627079Z

ok thats cool thanx https://github.com/chr15m/sitefox flies away 😄

borkdude 2024-09-18T07:38:54.545469Z

Just met @chris358 the author here on Heart of Clojure

m3tti 2024-09-18T07:39:22.174959Z

man i would love to go there 😕 next time i'll join you guys 😄

❤️ 1
Chris McCormick 2024-09-18T11:35:26.852039Z

👋 any feedback you have on using Sitefox is most welcome

❤️ 2
2024-09-18T14:14:59.124159Z

Bit of a vague question but is there a way to get nice errors in the repl in nbb? I currently seem to mostly be getting long messy strings representing error objects. I’m sure I’m missing something.

borkdude 2024-09-18T15:44:18.805719Z

Perhaps you can make a repro and show me? The answer might be that it’s hard to improve but with a repro it’s easier to tell

2024-09-18T16:14:15.562569Z

So most of my errors in a plain repl get printed like this, as a string:

"#error {:message \"Could not resolve symbol: createUmi\", :data {:type :sci/error, :line 2, :column 7, :message \"Could not resolve symbol: createUmi\", :sci.impl/callstack #object[cljs.core.Volatile {:val ({:line 1, :column 1, :ns #object[Is user], :file nil} {:line 2, :column 3, :ns #object[Is user], :file nil} {:line 2, :column 3, :ns #object[Is user], :file nil, :sci.impl/f-meta {:ns #object[Is clojure.core], :macro true, :sci/built-in true, :name ->, :arglists ([x & forms]), :doc \"Threads the expr through the forms. Inserts x as the\\n  second item in the first form, making a list of it if it is not a\\n  list already. If there are more forms, inserts the first form as the\\n  second item in second form, etc.\"}} {:line 3, :column 5, :ns #object[Is user], :file nil} {:line 2, :column 7, :ns #object[Is user], :file nil})}], :file nil, :phase \"analysis\"}, :cause #error {:message \"Could not resolve symbol: createUmi\", :data {:type :sci/error, :line 1, :column 1, :file nil, :phase \"analysis\"}}}"

2024-09-18T16:14:42.408439Z

^that’s an example of not having loaded a namespace so a symbol can’t be resolved.

2024-09-18T16:16:27.887059Z

I’m using nbb to start a repl.

borkdude 2024-09-18T22:22:11.561119Z

Ah we might be able to improve that

borkdude 2024-09-18T22:22:36.103509Z

Im currently at a conference, feel free to open an issue with a reminder

👍 1
2024-09-19T11:05:34.617429Z

https://github.com/babashka/nbb/issues/365

❤️ 2