shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
kommen 2020-10-19T14:13:03.007500Z

is there any way to make :infer-warnings show up in the shadow-cljs hud? they show up in the stdout, but we’d like to see them in the hud as well

kommen 2020-10-19T14:13:56.008500Z

and maybe even also make :warnings-as-errors also treat :infer-warning as an error

wombawomba 2020-10-19T14:16:48.009300Z

Is there a way to get the browser to reconnect after the shadow-cljs connection has been close?

thheller 2020-10-19T14:26:27.009600Z

@wombawomba it should be trying to reconnect on its own?

wombawomba 2020-10-19T14:27:04.010200Z

It doesn’t though… I need to refresh

wombawomba 2020-10-19T14:27:36.010900Z

FWIW this happens whenever my laptop goes to sleep

thheller 2020-10-19T14:28:05.012Z

@kommen they should show up in the HUD just as any other warning? as does :warnings-as-errors?

wombawomba 2020-10-19T14:28:34.012800Z

I don’t think I’m on the newest shadow-cljs version though.. perhaps this has been fixed in newer releases?

thheller 2020-10-19T14:28:52.013600Z

yes. that was changed not too long ago.

wombawomba 2020-10-19T14:29:03.013800Z

when this happens there’s a red box saying “Connection closed!” where the usual messages go

wombawomba 2020-10-19T14:29:15.014200Z

alright, I’ll try the newest version and see if that fixes it 🙂 thanks

kommen 2020-10-19T14:41:55.015100Z

@thheller true that. upgrading from shadow-cljs 2.8.91 to the latest version indeed makes them show up in the hud 🙈

Alexis Vincent 2020-10-19T23:16:30.015500Z

@thheller what is the status on :esm?

Alexis Vincent 2020-10-19T23:26:35.019200Z

I’m looking to spend some time getting NextJS working with shadow-cljs. Looking through your next-cljs project and approach seems straightforward for automation. But for now I’d like to build things out manually to get a feel for how viable this is. Output needs to work in both node and browser. Have tried :esm and :npm-module but get duplicate require issues. Which target is best to try work through? Is this something you would be ok lending some support if I were to build out a proper integration?