Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline builds stall before any real building starts #471

Open
robertlipe opened this issue Oct 24, 2023 · 5 comments
Open

Offline builds stall before any real building starts #471

robertlipe opened this issue Oct 24, 2023 · 5 comments

Comments

@robertlipe
Copy link
Contributor

Bug report

Problem
Building offline used to be possible and practical. Sometimes in recent months it's become impractical.

Steps

  1. Disconnect from internet
  2. Pio run target build (doesn't matter which -e)
  3. Experience sadness

Example
Adding a -v to the build shows is paused for a couple of minutes between displaying a list of files in assets/, a line showing build options and 80 dashes.
It wanders off into the weeds then displaya "app@0.1.0 build" and "webpack --mode production"

There's nothing that really looks like an error and making a 71k zip isn't exactly hard. LDF is slow, taking longer than just complaining everything, but this is pausing before that.

This has bugged me for several weeks, but I've been able to work around it, but I'm asking for someone else to investigate.

I think it's something in the new web UI stuff. Can one of you web wizards please see what going on at this step, before c++ compilation even starts, and see if it can play nicer in the absence of an internet connection.

Notes

@KeiranHines
Copy link
Contributor

Hi @robertlipe,

Have you tried this since this commit was merged?

The issues here would be that the old method used npm ci which would have deleted and attempted to re-install your node_modules. Now it will use the existing node_modules if you have previously downloaded them.

@robertlipe
Copy link
Contributor Author

I've confirmed that it builds in my doctor's waiting room again. :-) Thanx to all involved in the fix.

@robertlipe
Copy link
Contributor Author

In recent weeks (I don't know exactly when) this problem has come back.

Pull out your ethernet cable and/or put your device into airplane mode and you'll see a long (many minutes) pause just before this is displayed:

app@0.1.0 build
vite build --emptyOutDir

@KeiranHines ,can you please recheck? It's in the web stuff, before the dependency checker burns tens of seconds and before we get to compiling any actual C++ code.

@robertlipe robertlipe reopened this Dec 5, 2023
@KeiranHines
Copy link
Contributor

Hi Robert. I am travelling at the moment I probably won't get to it until the new year unless I get time in an airport. I will take a look when I can.

@robertlipe
Copy link
Contributor Author

robertlipe commented Dec 5, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants