Install in esp32 windows failed

mos clone https://github.com/mongoose-os-apps/demo-js app1
Error: app1: Local copy in “demo-js” does not exist and fetching is not allowed
/src/cli/build/swmodule.go:262:
/src/cli/main.go:198: clone failed
exit status 1
Command completed.

if you know how to use git, then git clone
if you don’t, downgrade your version of mos to 2.18.0 (mos update 2.18.0). Looks like the current stable has a problem cloning.

1 Like

mos clone works with 2.19.0 as well.

1 Like

can you give me link of mos 2.18.0

Read my post again, the part in fixed width bold is the command to run
You can also try mos update 2.19.0, nliviu just confirmed it also works

1 Like

Just noticed that it has been fixed in latest

mos clone demo-c app11
app11: Does not exist, cloning from "https://github.com/mongoose-os-apps/demo-c"...
app11: Checking out master...
app11: Pulling...
app11: Done, hash 8037c32b538348af4b5bef1f3d7e1a018a0a0e6b
1 Like

I’m getting the same error using Version: 2.19.1

I updated to the “latest” channel and that seems to have fixed the clone issue.

C:>mos version
The Mongoose OS command line tool
Version: 202106171938
Build ID: 20210617-194609/2.19.1-30-gf08e2c6-master
Update channel: latest

however now getting compile issues with demo-js app

Might be a good idea to share the compilation issues

I think these are the relevant parts of the compile.

CC /data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/build/objs/bt/host/bluedroid/stack/avrc/avrc_bld_ct.o
CC esp32_bt_gap.c.o
In file included from /opt/Espressif/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdio.h:36,
                 from /data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/modules/mjs/mjs.h:65,
                 from /data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:30:
/data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:148:54: error: 'struct mgos_bt_gatts_read_arg' has no member named 'uuid'; did you mean 'svc_uuid'?
     {"uuid", offsetof(struct mgos_bt_gatts_read_arg, uuid),
                                                      ^~~~
/data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:156:13: error: 'struct mgos_bt_gatts_read_arg' has no member named 'len'
     {"len", offsetof(struct mgos_bt_gatts_read_arg, len),
             ^~~~~~~~
/data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:166:55: error: 'struct mgos_bt_gatts_write_arg' has no member named 'uuid'; did you mean 'svc_uuid'?
     {"uuid", offsetof(struct mgos_bt_gatts_write_arg, uuid),
                                                       ^~~~
/data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:166:14: error: initialization of 'int' from 'const struct mjs_c_struct_member *' makes integer from pointer without a cast [-Werror=int-conversion]
     {"uuid", offsetof(struct mgos_bt_gatts_write_arg, uuid),
              ^~~~~~~~
/data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:166:14: note: (near initialization for 'gatts_write_arg_def[0].offset')
In file included from /opt/Espressif/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdio.h:36,
                 from /data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/modules/mjs/mjs.h:65,
                 from /data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:30:
/data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:166:14: error: initializer element is not constant
     {"uuid", offsetof(struct mgos_bt_gatts_write_arg, uuid),
              ^~~~~~~~
/data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:166:14: note: (near initialization for 'gatts_write_arg_def[0].offset')
/data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:190:61: error: 'struct mgos_bt_gatts_notify_mode_arg' has no member named 'uuid'; did you mean 'svc_uuid'?
     {"uuid", offsetof(struct mgos_bt_gatts_notify_mode_arg, uuid),
                                                             ^~~~
/data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:190:14: error: initialization of 'int' from 'const struct mjs_c_struct_member *' makes integer from pointer without a cast [-Werror=int-conversion]
     {"uuid", offsetof(struct mgos_bt_gatts_notify_mode_arg, uuid),
              ^~~~~~~~
/data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:190:14: note: (near initialization for 'gatts_notify_mode_arg_def[0].offset')
In file included from /opt/Espressif/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdio.h:36,
                 from /data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/modules/mjs/mjs.h:65,
                 from /data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:30:
/data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:190:14: error: initializer element is not constant
     {"uuid", offsetof(struct mgos_bt_gatts_notify_mode_arg, uuid),
              ^~~~~~~~
/data/fwbuild-volumes/latest/apps/app_test/esp32/build_contexts/build_ctx_634719923/deps/bt-common/src/mgos_bt_js.c:190:14: note: (near initialization for 'gatts_notify_mode_arg_def[0].offset')
cc1: all warnings being treated as errors
/mongoose-os/platforms/esp32/src/esp32_src.mk:100: recipe for target 'mgos_bt_js.c.o' failed
make[1]: *** [mgos_bt_js.c.o] Error 1
make[1]: *** Waiting for unfinished jobs....

This commit modified some structures’ definitions, but the mJS bindings have not been updated.

I’d suggest to open an issue against the bt-common library.

This is not specific to Windows.

reported issue and I just re-tested and its now fixed !
thanks