-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
#include "arduino_secrets.h"
is occasionally missing from the main sketch file of a cloud sketch after the pull
#1999
Comments
Since I could reproduce the defect from the nightly, I tried the same running IDE2 from the sources (
Bug in IDE2 running from the sources: 1999_http_debug.mp4Click to see the formatted version of the above 👆 logs
{
"[ 1] GET: https://api2.arduino.cc/create/v2/sketches?user_id=me&limit=50&offset=0 [fetch: 173.9000000357628 ms, parse: 2.599999964237213 ms] body: ": {
"sketches": [
{
"board_fqbn": "",
"board_name": "",
"board_type": "",
"created_at": "2023-04-06T13:07:56.321779Z",
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"id": "668d784e-6581-4b26-8fbd-87518b2a1c4d",
"is_public": false,
"libraries": [],
"modified_at": "2023-04-06T13:08:02.951027Z",
"name": "sketch_apr6b",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"secrets": [
{
"name": "SECRET_PASSWORD",
"value": "werwerer"
}
],
"tutorials": null,
"types": null,
"user_id": "b036b0a3-ef0e-44b1-af37-3c756f20fdf0"
},
{
"board_fqbn": "",
"board_name": "",
"board_type": "",
"created_at": "2023-04-06T13:07:26.300363Z",
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6a",
"id": "c2521e5f-e6ab-4a7f-8076-cc393d09b97e",
"is_public": false,
"libraries": [],
"modified_at": "2023-04-06T13:07:32.745161Z",
"name": "sketch_apr6a",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6a",
"secrets": [
{
"name": "SECRET_PASSWORD",
"value": "ddddd"
}
],
"tutorials": null,
"types": null,
"user_id": "b036b0a3-ef0e-44b1-af37-3c756f20fdf0"
},
{
"board_fqbn": "",
"board_name": "",
"board_type": "",
"created_at": "2023-03-10T16:01:15.084911Z",
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/minimal",
"id": "cd012768-2c7d-4f80-b8f4-d43b74f73a2e",
"is_public": false,
"libraries": [],
"modified_at": "2023-04-06T11:21:48.003Z",
"name": "minimal",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/minimal",
"tutorials": null,
"types": null,
"user_id": "b036b0a3-ef0e-44b1-af37-3c756f20fdf0"
}
]
},
"[ 2] GET: https://api2.arduino.cc/create/v2/sketches?user_id=me&limit=50&offset=0 [fetch: 144.60000002384186 ms, parse: 2.399999976158142 ms] body: ": {
"sketches": [
{
"board_fqbn": "",
"board_name": "",
"board_type": "",
"created_at": "2023-04-06T13:07:56.321779Z",
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"id": "668d784e-6581-4b26-8fbd-87518b2a1c4d",
"is_public": false,
"libraries": [],
"modified_at": "2023-04-06T13:08:02.951027Z",
"name": "sketch_apr6b",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"secrets": [
{
"name": "SECRET_PASSWORD",
"value": "werwerer"
}
],
"tutorials": null,
"types": null,
"user_id": "b036b0a3-ef0e-44b1-af37-3c756f20fdf0"
},
{
"board_fqbn": "",
"board_name": "",
"board_type": "",
"created_at": "2023-04-06T13:07:26.300363Z",
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6a",
"id": "c2521e5f-e6ab-4a7f-8076-cc393d09b97e",
"is_public": false,
"libraries": [],
"modified_at": "2023-04-06T13:07:32.745161Z",
"name": "sketch_apr6a",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6a",
"secrets": [
{
"name": "SECRET_PASSWORD",
"value": "ddddd"
}
],
"tutorials": null,
"types": null,
"user_id": "b036b0a3-ef0e-44b1-af37-3c756f20fdf0"
},
{
"board_fqbn": "",
"board_name": "",
"board_type": "",
"created_at": "2023-03-10T16:01:15.084911Z",
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/minimal",
"id": "cd012768-2c7d-4f80-b8f4-d43b74f73a2e",
"is_public": false,
"libraries": [],
"modified_at": "2023-04-06T11:21:48.003Z",
"name": "minimal",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/minimal",
"tutorials": null,
"types": null,
"user_id": "b036b0a3-ef0e-44b1-af37-3c756f20fdf0"
}
]
},
"[ 4] GET: https://api2.arduino.cc/create/v2/sketches?user_id=me&limit=50&offset=50 [fetch: 134.89999997615814 ms, parse: 2.800000011920929 ms] body: ": {
"sketches": []
},
"[ 3] GET: https://api2.arduino.cc/create/v2/sketches?user_id=me&limit=50&offset=50 [fetch: 160.30000001192093 ms, parse: 1.5 ms] body: ": {
"sketches": []
},
"[ 5] GET: https://api2.arduino.cc/create/v2/sketches?user_id=me&limit=50&offset=0 [fetch: 1227.0999999642372 ms, parse: 62.90000003576279 ms] body: ": {
"sketches": [
{
"board_fqbn": "",
"board_name": "",
"board_type": "",
"created_at": "2023-04-06T13:07:56.321779Z",
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"id": "668d784e-6581-4b26-8fbd-87518b2a1c4d",
"is_public": false,
"libraries": [],
"modified_at": "2023-04-06T13:08:02.951027Z",
"name": "sketch_apr6b",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"secrets": [
{
"name": "SECRET_PASSWORD",
"value": "werwerer"
}
],
"tutorials": null,
"types": null,
"user_id": "b036b0a3-ef0e-44b1-af37-3c756f20fdf0"
},
{
"board_fqbn": "",
"board_name": "",
"board_type": "",
"created_at": "2023-04-06T13:07:26.300363Z",
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6a",
"id": "c2521e5f-e6ab-4a7f-8076-cc393d09b97e",
"is_public": false,
"libraries": [],
"modified_at": "2023-04-06T13:07:32.745161Z",
"name": "sketch_apr6a",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6a",
"secrets": [
{
"name": "SECRET_PASSWORD",
"value": "ddddd"
}
],
"tutorials": null,
"types": null,
"user_id": "b036b0a3-ef0e-44b1-af37-3c756f20fdf0"
},
{
"board_fqbn": "",
"board_name": "",
"board_type": "",
"created_at": "2023-03-10T16:01:15.084911Z",
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/minimal",
"id": "cd012768-2c7d-4f80-b8f4-d43b74f73a2e",
"is_public": false,
"libraries": [],
"modified_at": "2023-04-06T11:21:48.003Z",
"name": "minimal",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/minimal",
"tutorials": null,
"types": null,
"user_id": "b036b0a3-ef0e-44b1-af37-3c756f20fdf0"
}
]
},
"[ 6] GET: https://api2.arduino.cc/create/v2/sketches?user_id=me&limit=50&offset=50 [fetch: 375.7000000476837 ms, parse: 55 ms] body: ": {
"sketches": []
},
"[ 7] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2?name_like=sketch_apr6b [fetch: 146 ms, parse: 0.3999999761581421 ms] body: ": [
{
"children": 2,
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"modified_at": "2023-04-06T13:08:02.951027Z",
"name": "sketch_apr6b",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"size": 1575,
"type": "sketch"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"mimetype": "text/x-c++src; charset=utf-8",
"modified_at": "2023-04-06T13:07:59.428Z",
"name": "sketch_apr6b.ino",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"type": "file"
}
],
"[ 8] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2/sketch_apr6b [fetch: 165 ms, parse: 1.5 ms] body: ": [
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"mimetype": "text/x-asciidoc; charset=utf-8",
"modified_at": "2023-04-06T13:07:56.704Z",
"name": "ReadMe.adoc",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"type": "file"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch.json",
"mimetype": "application/json",
"modified_at": "2023-04-06T13:08:02.986Z",
"name": "sketch.json",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch.json",
"type": "file"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"mimetype": "text/x-c++src; charset=utf-8",
"modified_at": "2023-04-06T13:07:59.428Z",
"name": "sketch_apr6b.ino",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"type": "file"
}
],
"[ 9] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2?name_like=sketch_apr6b [fetch: 446.80000001192093 ms, parse: 0.2999999523162842 ms] body: ": [
{
"children": 2,
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"modified_at": "2023-04-06T13:08:02.951027Z",
"name": "sketch_apr6b",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"size": 1575,
"type": "sketch"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"mimetype": "text/x-c++src; charset=utf-8",
"modified_at": "2023-04-06T13:07:59.428Z",
"name": "sketch_apr6b.ino",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"type": "file"
}
],
"[ 10] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2/sketch_apr6b?deep=true [fetch: 129.60000002384186 ms, parse: 0.5 ms] body: ": [
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"mimetype": "text/x-asciidoc; charset=utf-8",
"modified_at": "2023-04-06T13:07:56.704Z",
"name": "ReadMe.adoc",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"type": "file"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch.json",
"mimetype": "application/json",
"modified_at": "2023-04-06T13:08:02.986Z",
"name": "sketch.json",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch.json",
"type": "file"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"mimetype": "text/x-c++src; charset=utf-8",
"modified_at": "2023-04-06T13:07:59.428Z",
"name": "sketch_apr6b.ino",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"type": "file"
}
],
"[ 11] GET: https://api2.arduino.cc/create/v2/sketches/byID/668d784e-6581-4b26-8fbd-87518b2a1c4d?user_id=me [fetch: 131 ms, parse: 0.5 ms] body: ": {
"board_fqbn": "",
"board_name": "",
"board_type": "",
"created_at": "2023-04-06T13:07:56.321779Z",
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"id": "668d784e-6581-4b26-8fbd-87518b2a1c4d",
"is_public": false,
"libraries": [],
"modified_at": "2023-04-06T13:08:02.951027Z",
"name": "sketch_apr6b",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"secrets": [
{
"name": "SECRET_PASSWORD",
"value": "werwerer"
}
],
"size": 1746,
"tutorials": null,
"types": null,
"user_id": "b036b0a3-ef0e-44b1-af37-3c756f20fdf0"
},
"[ 13] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2/sketch_apr6b?name_like=sketch_apr6b.ino [fetch: 124 ms, parse: 0.3999999761581421 ms] body: ": [
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"mimetype": "text/x-c++src; charset=utf-8",
"modified_at": "2023-04-06T13:07:59.428Z",
"name": "sketch_apr6b.ino",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"type": "file"
}
],
"[ 12] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2/sketch_apr6b?name_like=ReadMe.adoc [fetch: 128.19999998807907 ms, parse: 0.40000003576278687 ms] body: ": [
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"mimetype": "text/x-asciidoc; charset=utf-8",
"modified_at": "2023-04-06T13:07:56.704Z",
"name": "ReadMe.adoc",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"type": "file"
}
],
"[ 14] GET: https://api2.arduino.cc/create/v2/sketches/byID/668d784e-6581-4b26-8fbd-87518b2a1c4d?user_id=me [fetch: 128.69999998807907 ms, parse: 0.3999999761581421 ms] body: ": {
"board_fqbn": "",
"board_name": "",
"board_type": "",
"created_at": "2023-04-06T13:07:56.321779Z",
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"id": "668d784e-6581-4b26-8fbd-87518b2a1c4d",
"is_public": false,
"libraries": [],
"modified_at": "2023-04-06T13:08:02.951027Z",
"name": "sketch_apr6b",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"secrets": [
{
"name": "SECRET_PASSWORD",
"value": "werwerer"
}
],
"size": 1746,
"tutorials": null,
"types": null,
"user_id": "b036b0a3-ef0e-44b1-af37-3c756f20fdf0"
},
"[ 18] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2/sketch_apr6b?name_like=ReadMe.adoc [fetch: 126.09999996423721 ms, parse: 0.30000001192092896 ms] body: ": [
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"mimetype": "text/x-asciidoc; charset=utf-8",
"modified_at": "2023-04-06T13:07:56.704Z",
"name": "ReadMe.adoc",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"type": "file"
}
],
"[ 16] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2/sketch_apr6b?name_like=sketch_apr6b.ino [fetch: 156.30000001192093 ms, parse: 0.6000000238418579 ms] body: ": [
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"mimetype": "text/x-c++src; charset=utf-8",
"modified_at": "2023-04-06T13:07:59.428Z",
"name": "sketch_apr6b.ino",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"type": "file"
}
],
"[ 15] GET: https://api2.arduino.cc/create/v2/files/f/$HOME/sketches_v2/sketch_apr6b/sketch_apr6b.ino [fetch: 216.19999998807907 ms, parse: 0.3999999761581421 ms] body: ": {
"data": "Y2hhciBteVBhc3N3b3JkW10gPSBTRUNSRVRfUEFTU1dPUkQ7CnZvaWQgc2V0dXAoKSB7fQp2b2lkIGxvb3AoKSB7fQ==",
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"mimetype": "text/x-c++src; charset=utf-8",
"modified_at": "2023-04-06T13:07:59.428Z",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino"
},
"[ 17] GET: https://api2.arduino.cc/create/v2/files/f/$HOME/sketches_v2/sketch_apr6b/ReadMe.adoc [fetch: 232.5999999642372 ms, parse: 0.30000001192092896 ms] body: ": {
"data": "OkF1dGhvcjoga2l0dGFha29zCjpFbWFpbDoge0F1dGhvckVtYWlsfQo6RGF0ZTogMDYvMDQvMjAyMwo6UmV2aXNpb246IHZlcnNpb24jCjpMaWNlbnNlOiBQdWJsaWMgRG9tYWluCgo9IFByb2plY3Q6IHtQcm9qZWN0fQoKRGVzY3JpYmUgeW91ciBwcm9qZWN0Cgo9PSBTdGVwIDE6IEluc3RhbGxhdGlvbgpQbGVhc2UgZGVzY3JpYmUgdGhlIHN0ZXBzIHRvIGluc3RhbGwgdGhpcyBwcm9qZWN0LgoKRm9yIGV4YW1wbGU6CgoxLiBPcGVuIHRoaXMgZmlsZQoyLiBFZGl0IGFzIHlvdSBsaWtlCjMuIFJlbGVhc2UgdG8gdGhlIFdvcmxkIQoKPT0gU3RlcCAyOiBBc3NlbWJsZSB0aGUgY2lyY3VpdAoKQXNzZW1ibGUgdGhlIGNpcmN1aXQgZm9sbG93aW5nIHRoZSBkaWFncmFtIGxheW91dC5wbmcgYXR0YWNoZWQgdG8gdGhlIHNrZXRjaAoKPT0gU3RlcCAzOiBMb2FkIHRoZSBjb2RlCgpVcGxvYWQgdGhlIGNvZGUgY29udGFpbmVkIGluIHRoaXMgc2tldGNoIG9uIHRvIHlvdXIgYm9hcmQKCj09PSBGb2xkZXIgc3RydWN0dXJlCgouLi4uCiBza2V0Y2gxMjMgICAgICAgICAgICAgICAgPT4gQXJkdWlubyBza2V0Y2ggZm9sZGVyCiAg4pSc4pSA4pSAIHNrZXRjaDEyMy5pbm8gICAgICAgPT4gbWFpbiBBcmR1aW5vIGZpbGUKICDilJzilIDilIAgc2NoZW1hdGljcy5wbmcgICAgICA9PiAob3B0aW9uYWwpIGFuIGltYWdlIG9mIHRoZSByZXF1aXJlZCBzY2hlbWF0aWNzCiAg4pSc4pSA4pSAIGxheW91dC5wbmcgICAgICAgICAgPT4gKG9wdGlvbmFsKSBhbiBpbWFnZSBvZiB0aGUgbGF5b3V0CiAg4pSU4pSA4pSAIFJlYWRNZS5hZG9jICAgICAgICAgPT4gdGhpcyBmaWxlCi4uLi4KCj09PSBMaWNlbnNlClRoaXMgcHJvamVjdCBpcyByZWxlYXNlZCB1bmRlciBhIHtMaWNlbnNlfSBMaWNlbnNlLgoKPT09IENvbnRyaWJ1dGluZwpUbyBjb250cmlidXRlIHRvIHRoaXMgcHJvamVjdCBwbGVhc2UgY29udGFjdCBraXR0YWFrb3MgaHR0cHM6Ly9pZC5hcmR1aW5vLmNjL2tpdHRhYWtvcwoKPT09IEJPTQpBZGQgdGhlIGJpbGwgb2YgdGhlIG1hdGVyaWFscyB5b3UgbmVlZCBmb3IgdGhpcyBwcm9qZWN0LgoKfD09PQp8IElEIHwgUGFydCBuYW1lICAgICAgfCBQYXJ0IG51bWJlciB8IFF1YW50aXR5CnwgUjEgfCAxMGsgUmVzaXN0b3IgICB8IDEyMzQtYWJjZCAgIHwgMTAKfCBMMSB8IFJlZCBMRUQgICAgICAgIHwgMjM0NS1hc2RmICAgfCA1CnwgQTEgfCBBcmR1aW5vIFplcm8gICB8IEFCWDAwMDY2ICAgIHwgMQp8PT09CgoKPT09IEhlbHAKVGhpcyBkb2N1bWVudCBpcyB3cml0dGVuIGluIHRoZSBfQXNjaWlEb2NfIGZvcm1hdCwgYSBtYXJrdXAgbGFuZ3VhZ2UgdG8gZGVzY3JpYmUgZG9jdW1lbnRzLgpJZiB5b3UgbmVlZCBoZWxwIHlvdSBjYW4gc2VhcmNoIHRoZSBodHRwOi8vd3d3Lm1ldGhvZHMuY28ubnovYXNjaWlkb2NbQXNjaWlEb2MgaG9tZXBhZ2VdCm9yIGNvbnN1bHQgdGhlIGh0dHA6Ly9wb3dlcm1hbi5uYW1lL2RvYy9hc2NpaWRvY1tBc2NpaURvYyBjaGVhdHNoZWV0XQo=",
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"mimetype": "text/x-asciidoc; charset=utf-8",
"modified_at": "2023-04-06T13:07:56.704Z",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc"
},
"[ 19] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2?name_like=sketch_apr6b [fetch: 132.5 ms, parse: 0.3999999761581421 ms] body: ": [
{
"children": 2,
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"modified_at": "2023-04-06T13:08:02.951027Z",
"name": "sketch_apr6b",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"size": 1575,
"type": "sketch"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"mimetype": "text/x-c++src; charset=utf-8",
"modified_at": "2023-04-06T13:07:59.428Z",
"name": "sketch_apr6b.ino",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"type": "file"
}
],
"[ 20] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2/sketch_apr6b [fetch: 134.39999997615814 ms, parse: 0.30000001192092896 ms] body: ": [
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"mimetype": "text/x-asciidoc; charset=utf-8",
"modified_at": "2023-04-06T13:07:56.704Z",
"name": "ReadMe.adoc",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"type": "file"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch.json",
"mimetype": "application/json",
"modified_at": "2023-04-06T13:08:02.986Z",
"name": "sketch.json",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch.json",
"type": "file"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"mimetype": "text/x-c++src; charset=utf-8",
"modified_at": "2023-04-06T13:07:59.428Z",
"name": "sketch_apr6b.ino",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"type": "file"
}
],
"[ 22] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2?name_like=sketch_apr6b [fetch: 167.69999998807907 ms, parse: 0.30000001192092896 ms] body: ": [
{
"children": 2,
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"modified_at": "2023-04-06T13:08:02.951027Z",
"name": "sketch_apr6b",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"size": 1575,
"type": "sketch"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"mimetype": "text/x-c++src; charset=utf-8",
"modified_at": "2023-04-06T13:07:59.428Z",
"name": "sketch_apr6b.ino",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"type": "file"
}
],
"[ 21] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2?name_like=sketch_apr6b [fetch: 250.5999999642372 ms, parse: 2.900000035762787 ms] body: ": [
{
"children": 2,
"href": "/create/v2/files/d/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"modified_at": "2023-04-06T13:08:02.951027Z",
"name": "sketch_apr6b",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b",
"size": 1575,
"type": "sketch"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"mimetype": "text/x-c++src; charset=utf-8",
"modified_at": "2023-04-06T13:07:59.428Z",
"name": "sketch_apr6b.ino",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"type": "file"
}
],
"[ 23] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2/sketch_apr6b [fetch: 124.5 ms, parse: 0.5 ms] body: ": [
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"mimetype": "text/x-asciidoc; charset=utf-8",
"modified_at": "2023-04-06T13:07:56.704Z",
"name": "ReadMe.adoc",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"type": "file"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch.json",
"mimetype": "application/json",
"modified_at": "2023-04-06T13:08:02.986Z",
"name": "sketch.json",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch.json",
"type": "file"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"mimetype": "text/x-c++src; charset=utf-8",
"modified_at": "2023-04-06T13:07:59.428Z",
"name": "sketch_apr6b.ino",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"type": "file"
}
],
"[ 24] GET: https://api2.arduino.cc/create/v2/files/d/$HOME/sketches_v2/sketch_apr6b [fetch: 162.29999995231628 ms, parse: 0.40000003576278687 ms] body: ": [
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"mimetype": "text/x-asciidoc; charset=utf-8",
"modified_at": "2023-04-06T13:07:56.704Z",
"name": "ReadMe.adoc",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/ReadMe.adoc",
"type": "file"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch.json",
"mimetype": "application/json",
"modified_at": "2023-04-06T13:08:02.986Z",
"name": "sketch.json",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch.json",
"type": "file"
},
{
"href": "/create/v2/files/f/8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"mimetype": "text/x-c++src; charset=utf-8",
"modified_at": "2023-04-06T13:07:59.428Z",
"name": "sketch_apr6b.ino",
"path": "8a694e4b83878cc53472bd75ee928053:kittaakos/sketches_v2/sketch_apr6b/sketch_apr6b.ino",
"type": "file"
}
]
}
The logs show that all the response bodies for the "secrets": [
{
"name": "SECRET_PASSWORD",
"value": "werwerer"
}
] |
It's a caching issue. IDE2 would append the required arduino-ide/arduino-ide-extension/src/browser/create/create-api.ts Lines 215 to 225 in eb1f247
|
The regression has been introduced either here or was in IDE2 since day one. |
The sketch cache might be empty, when trying to generate the secrets include in the main sketch file from the `secrets` property. Closes #1999 Signed-off-by: Akos Kitta <[email protected]>
The sketch cache might be empty, when trying to generate the secrets include in the main sketch file from the `secrets` property. Closes #1999 Signed-off-by: Akos Kitta <[email protected]>
The sketch cache might be empty, when trying to generate the secrets include in the main sketch file from the `secrets` property. Closes #1999 Signed-off-by: Akos Kitta <[email protected]>
The sketch cache might be empty, when trying to generate the secrets include in the main sketch file from the `secrets` property. Closes #1999 Signed-off-by: Akos Kitta <[email protected]>
Describe the problem
This issue is not #443.
When the secrets are declared in a cloud sketch, IDE2 generates the
#include "arduino_secrets.h"
into the top of the main sketch file. This feature behaves unreliably. Occasionally, after pulling the cloud sketch, the#include "arduino_secrets.h"
is missing from the main sketch file.To reproduce
<input>
. It does not matter what, but you must type something to avoid hitting the bug described in arduino/arduino-ide#443.#include "arduino_secrets.h"
is missing. Reproducibility: not always.`#include "arduino_secrets.h" is missing from the main sketch file:
2.0.4
:arduino_secret.mp4
2.0.5-nightly-20230403
:1999_nightly.mp4
Expected behavior
When the Secret tab is available (and all secret keys have an associated value #443) in the cloud editor, then the main sketch file contains the
#include "arduino_secrets.h"
after pulling the cloud sketch into IDE2.Arduino IDE version
2.0.4 and 2.0.5-nightly-20230403
Operating system
macOS
Operating system version
12.6.3
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: