Closed Yurbaan closed 1 year ago
Same issue ! It happend several months ago, #159 , this happend again now. Please fix it.
I have two suggests for the developer of this offline installer.
Thank you for reporting the problem.
We're investigating why those tools were not downloaded during build process.
Also CI scripts for Offline testing in Hyper-V and Azure will be added.
Note from research: It's possible to turn off the network even in Windows Sandbox
Thank you @Yurbaan for pointing at the problem. We found that also some other files from tools
directory were not included.
We yanked the 5.0.1 release and re-run the build with proper configuration to include also missing files.
The new rebuild of installer is available at https://github.com/espressif/idf-installer/releases/tag/offline-5.0.1
Please, test the updated version.
The installation now works without problem. The build is failing when the computer is Offline:
CMake Error at C:/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/build.cmake:519 (message):
ERROR: Cannot establish a connection to the component registry. Are you
connected to the internet?
@kumekay Is there a way to tell the build system to avoid downloading files or give it an instruction to pre-cache registry and store it to Offline installer.
When internet connection is enabled the build continues. It seems that resolution is required to get lock file in blink example:
Solving dependencies requirements
.......Updating lock file at C:/Espressif/frameworks/esp-idf-v5.0.1/examples/get-started/blink\dependencies.lock
Processing 2 dependencies:
[1/2] espressif/led_strip (2.3.1)
Also notice, incorrect path. It's mixed backslash and slash.
@georgik
The component manager supports two essential features required for the desired behavior: it can utilize a registry mirror, and the registry mirror can be a local directory. Hypothetically, we could include a partial registry mirror in the offline installer.
However, some limitations need to be addressed first:
We must first determine how to mitigate these issues and ensure that the behavior in offline mode is not confusing.
P.S.: I have fixed the mixed slashes issue, and it will be included in the next release of the component manager
Thank you @kumekay for the explanation.
Basically, examples which are using components introduced in 5.x requires connection to the internet in build time.
The build with components could work offline to some extend. For this release, we declare it as a limitation. The limitation might be removed in future releases after updating the implementation of Component Manager.
The installation works completely offline and installer is not failing.
Hello everyone! I encountered such an error when using esp-idf 5.0.1 offline installer (for Windows). Do I understand correctly that an internet connection is needed for offline installation?:)
Log after error