Error in building/writing on the Spresense SDK IDE development environment (Mac)

Asked 2 years ago, Updated 2 years ago, 83 views

macOS Catalina Version 10.15.6
Spresense SDK Version 2.0.1
Visual Studio Code Version 1.48.2
Spresense VSCode IDE Version 1.2.0

In the above environment, we created a sample application using the Spresense SDK Start Guide (IDE), and the following error occurred during build and write, and the write failed.

zsh:1:no matches found:out/worker/*

zsh:1—no matches found:out/worker/*

The terminal process"/bin/zsh'-c', 'cd'/Users/itadera/Documents/development/test"; if ["echo out/worker/*"!="out/worker/*"; then/Users/itadera/Documents/devel/spresence/sdk/tools/flash.sh-w-cout.boutBoutBoutwork; USBA

When we checked, we found that the above error occurred when we selected "zsh" as the default shell selection in VS Code.After switching the shell to "bash", the build write progressed without any problems.

On the Internet, there are reports of the same "no matches found" error when executing certain commands (including the glob expression) in a zsh environment.

Resolution when no match found on zsh - Qiita

Therefore, I tried to deal with the countermeasures described in the link above, but when I ran echo out/worker/* on the terminal, the error stopped, but when I ran "build write" I got the same error.

Currently, I think the only way to build and write is to switch to bash, but since the new macOS Catalina shell is based on zsh, I would like to ask you a question because I want to take measures to build and write in a zsh environment.

Thank you for your cooperation.

macos spresense vscode zsh

2022-09-30 14:32

1 Answers

I'll write a solution for others who find it.

Open VS Code, open File → Settings, and search by terminal.integrated.shell.Then change the Mac shell to "terminal.integrated.shell.osx":"/bin/bash".

You should be able to successfully write to the Spresense board in Build & Flash.

このThis answer was originally translated into Japanese for the one posted in English.Below is the original text.

For others finding this issue, here's how to resolve it:

In VS Code, open File > Settings > and search for terminal.integrated.shell then change your Mac shell to "terminal.integrated.shell.osx": "/bin/bash"

Now, when you Build & Flash to the Presence board the flash will succeed.


2022-09-30 14:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.