hoplon

Amatus 2022-12-07T15:16:08.709899Z

I'm having a real hard time getting hoplon working 😞

2022-12-07T17:33:15.868559Z

What problems are you having?

Amatus 2022-12-07T17:37:55.214749Z

I ran into this, but the workarounds posted aren't working for me: https://github.com/hoplon/hoplon/issues/274

Amatus 2022-12-07T17:39:38.393029Z

I kept getting an error about cognitect.transit/writer, which I solved by adding [com.cognitect/transit-clj "1.0.329"] to my dependencies

Amatus 2022-12-07T17:40:45.233129Z

Then it was Undefined nameToPath errors

Amatus 2022-12-07T17:43:03.642059Z

I gave up trying to solve that. Now I'm back on the latest versions of stuff and trying to solve the "Bad dependency path or symbol: hoplon.app_pages.indexDOT_html" error

2022-12-07T17:44:10.747439Z

Are you trying to start a new project?

Amatus 2022-12-07T17:44:19.280719Z

yup

2022-12-07T17:45:28.781379Z

I think there is a more recent template, I will try to find it but may take sometime, I in the middle of something right now.

Amatus 2022-12-07T17:45:47.403739Z

thanks

Amatus 2022-12-07T17:46:46.042339Z

I've used hoplon on past projects and loved it: https://github.com/amatus/gnunet-web/blob/master/build.boot https://github.com/amatus/tankputer/blob/master/build.boot

Amatus 2022-12-07T17:48:06.133649Z

i'm also a contributor https://github.com/hoplon/hoplon/commits?author=amatus

2022-12-07T18:08:31.612389Z

https://clojurians.slack.com/archives/C08BDAPRA/p1646957308157349?thread_ts=1646955519.577489&cid=C08BDAPRA I think currently those are the best options to use as reference. I think there is very few people that still use boot and would recommend shadow-cljs.

Amatus 2022-12-07T18:10:25.611189Z

do you think boot is causing issues?

2022-12-07T18:11:02.064209Z

That would be my first guess.

2022-12-07T18:13:13.538429Z

I keep wishing to have some free time to update hoplon docs/guides because I'm so grateful for all I learned from @micha and @alandipert but the wish was not granted yet 🤷

Amatus 2022-12-07T18:15:28.883999Z

the install experience of boot is amazing, just drop it in ~/bin/ and you're done

Amatus 2022-12-07T18:21:00.652669Z

at least shadow-cljs says it'll work with the nodejs packaged by my distro

Amatus 2022-12-07T18:21:08.733679Z

i'll give it a shot

2022-12-08T12:30:26.345549Z

Let us know if it worked 😉

Amatus 2022-12-08T16:18:53.743929Z

it works! as long as i don't update all the packages

Amatus 2022-12-08T16:19:55.245369Z

updating just the ones with known vulnerabilities works

2022-12-08T16:20:44.734309Z

Which one did you use? Also what deps are causing problems when you try to update?

Amatus 2022-12-08T16:22:43.422579Z

conduit, i just now noticed you posted 3

Amatus 2022-12-08T16:28:02.708929Z

at first i deleted package-lock.json and ran npm i to try to fix something weird i did, then ran npx shadow-cljs watch app and didn't get any errors but it never started the http server on 8080 and i was very confused, and since a clean checkout was working i assumed that npm i broke something

Amatus 2022-12-08T16:31:39.564009Z

now i need to figure out how to shove castra in here

2022-12-08T16:45:36.540349Z

Oh, npm deps, yeah, those are a pain. If I were starting a new project I would probably try to use pathom instead of castra because of data fetching, but I also like castra very much.

Amatus 2022-12-08T16:48:34.170119Z

this? https://pathom3.wsscode.com/

Amatus 2022-12-08T17:48:10.672949Z

hrm, i need something that's more like an rpc

2022-12-08T17:58:57.975359Z

Yeah, that is the one. If you squint the mutations are rpc like (but using edn to describe operations instead of direct function calls), and the query side is more composable imho. But the most important thing is if the tool fits the project. If you know castra and think it is a good fit then you should go for it. hoplon

Amatus 2022-12-07T15:18:05.379829Z

@micha @alandipert why have you forsaken us?