openblockcc / openblock-desktop

Graphic programming software for hardware like: arduino, microbit, esp32, esp8266...
MIT License
244 stars 106 forks source link

Bug: While uploading code, libraries not copied to Projectpath #62

Closed ircbloqcc closed 2 years ago

ircbloqcc commented 2 years ago

If i tried to upload a code with external libraries, Its getting Failed. If i tried to find the Library in project path, Library is not copied.

Screenshot 2022-03-19 135000 Screenshot 2022-03-19 135111

ircbloqcc commented 2 years ago

any update regarding this issue??

zhengyangliu commented 2 years ago

WTF? I will check what happen.

zhengyangliu commented 2 years ago

I found it. Since the new version of openblock desktop has adjusted the naming and added a space in the middle, the cache path contains space characters, which makes the arduino cli parsing error. I will fix this soon.

zhengyangliu commented 2 years ago

image

zhengyangliu commented 2 years ago

In v2.2.9 this problem should exist

zhengyangliu commented 2 years ago

My mistake, not the cause of the problem.. This is because in the v2.3.0 version, a cli tool will be used to optimize the external resource when it is released, and useless files will be deleted to reduce the library size. But I deleted the library.properties file by mistake, which caused the arduino cli to not recognize the library correctly and cause this error. Just update external-reource and i will fix this soon.

zhengyangliu commented 2 years ago

Fixed in https://github.com/openblockcc/openblock-resource-cli/commit/16bb06d1c931563657af123b15472fa3ea06d753. The software will automatically detect external-resource v0.0.4 and update it to fix.