eez-open / studio

Cross-platform low-code GUI and automation
https://www.envox.eu/studio/studio-introduction/
GNU General Public License v3.0
363 stars 73 forks source link

[LVGL] Project creation fails if no internet is available #378

Open RE2012 opened 3 months ago

RE2012 commented 3 months ago

Describe the bug If no internet connection is available then project creation fails.

To Reproduce Prepartation: turn off internet connection (e.g. go to Air plane mode / disable WIFI / remove network cable)

  1. in studio go to "Home" page, select "Create" and select template "LVGL"

  2. enter a name and click "create project" button -> creation fails with: "TypeError: Failed to fetch" creation_failed

  3. sub error: establish network connection and click "create project" button - it fails, as the empty project folder already exists - so you need to remove the empty folder first.

Expected behavior I expect to create a new project everywhere without internet connection.

Desktop (please complete the following information)

LVGL version (if used)

Studio version

mvladic commented 3 months ago

I expect to create a new project everywhere without internet connection.

All templates are downloaded from the https://github.com/eez-open/eez-project-templates and not distributed with the Studio. One reason is that they are licensed using MIT license and Studio is GNU . But, I agree, if you are offline we should use files from the cache. This means that at least once you should be online before using templates.