You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where sketchesDir = s.settings.GetString("directories.User") as i did not pass sketches dir in the request.
Here is the trivial test (Dart syntax):
final channel = _getChannel();
final client = ArduinoCoreServiceClient(channel);
var createResponse = await client.create(CreateRequest.getDefault());
await for (var res
in client.init(InitRequest(instance: createResponse.instance))) {
expect(res.hasError(), false, reason: res.toDebugString());
}
final newResponse =
await client.newSketch(NewSketchRequest(sketchName: 'NewSketch2'));
print('New sketch path is: ${newResponse.mainFile}');
await channel.shutdown();
I suspect s.settings.GetString("directories.User") returns nothing and probably it's just my SDK not configured.
Happy to try something.
Expected behavior
I get the response with new sketch path.
The arduino-cli daemon does not crash.
Arduino CLI version
v1.2.0
Operating system
macOS
Operating system version
Sequioa 15.3
Additional context
Locally built arduino-cli. Also tried installed one with brew.
Tested b9edb782a265b99878b4bce489c1751c4dcbee61 locally instead of nightly.
@4ntoine Thank you for submitting the issue, it has been fixed by #2862 . Ideally, we want to fix another issue before tagging the next release v1.2.1.
Describe the problem
I'm creating a new sketch with arduino-cli v1.2.0 and daemon crashes.
See "to reproduce" on the exact steps.
To reproduce
Looking into "service_sketch_new.go" line 58 i can see:
Where
sketchesDir = s.settings.GetString("directories.User")
as i did not pass sketches dir in the request.Here is the trivial test (Dart syntax):
I suspect
s.settings.GetString("directories.User")
returns nothing and probably it's just my SDK not configured.Happy to try something.
Expected behavior
I get the response with new sketch path.
The arduino-cli daemon does not crash.
Arduino CLI version
v1.2.0
Operating system
macOS
Operating system version
Sequioa 15.3
Additional context
Locally built arduino-cli. Also tried installed one with
brew
.Tested
b9edb782a265b99878b4bce489c1751c4dcbee61
locally instead of nightly.Issue checklist
The text was updated successfully, but these errors were encountered: