-
Notifications
You must be signed in to change notification settings - Fork 639
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
pxt deploy
reports Error: cannot find any drives
#6022
Comments
I think this will be because it's looking for a drive named MICROBIT, Line 74 in d1c862a
but currently on Sequoia the drive is named NO NAME |
Thanks for the hint! I have renamed the volume to However, right after deployment, the volume name was reverted back to Any clue what could cause the name changes? |
Good idea - I didn't think of renaming the volume! The micro:bit resets and remounts, so the name would revert (see the DAPLink issue for the cause). I don't know how to override the default name. Maybe a script to rename the volume then pxt deploy? |
Yep, a custom |
Thanks for the resolution! |
Anyway, it would be nice if this could be fixed properly so that the drive is not renamed every time after the deployment. |
For reference, I used these commands to rename the flash drive: MICROBIT_DEVICE=$(diskutil list external physical "/Volumes/NO NAME" | awk '/NO NAME/ {print "/dev/" $NF}')
diskutil rename "$MICROBIT_DEVICE" "MICROBIT" When running pxt build --deploy It ends successfully and outputs:
However, in a short while, the device:
|
Describe the bug
pxt deploy
reportsError: cannot find any drives to deploy to
even though the micro:bit is connected and working well in MakeCode online.To Reproduce
Steps to reproduce the behavior:
npm install -g pxt mkdir makecode cd makecode pxt target microbit
./projects/microbit-christmas-tree
cd ./projects/microbit-christmas-tree
pxt deploy
Expected behavior
The program shall be deployed to micro:bot.
micro:bit version (please complete the following information):
V2.21
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: