stacked icon indicating copy to clipboard operation
stacked copied to clipboard

[bug]: stacked cli hangs when not connected to network and analytics are enabled

Open pcj opened this issue 1 year ago • 2 comments

Describe the bug

I was quite surprised to find that when my laptop is not connected to WiFi, I cannot use the CLI as it hangs and there is no help info for enable/disable analytics.

I had to look through the source code to see that it is doing this, I don't recall opting-in but I guess I must have on first run.

Can we at least have cli options to disable analytics? Perhaps stacked analytics --[no]-enable or something?

What operating system do you use?

macOS

Information about the installed tooling

stacked -v
1.13.1

Steps to reproduce the issue

...

Expected behavior

...

Screenshots

No response

Additional Context

No response

pcj avatar Oct 31 '24 21:10 pcj

Hi.

Seems to me the issue isn't analytics (it seems to be temporarily disabled in code) but rather the default behaviour of build_runner being to run pub_get before running. Should be fixable by adding a config option for disabling this. I've created a PR adding an offline_mode to the stacked.json.

Pebkac03 avatar Dec 10 '24 16:12 Pebkac03

@pcj we actually did disable analytics, so it's quite interesting that this happens.

Will checkout PR from @Pebkac03 now.

FilledStacks avatar Dec 12 '24 07:12 FilledStacks