Unable to load standard library for target 'risc-none-none-eabi'

I had a working setup for esp32, installed swiftly, use 'main-snapshot-2025-06-20'
All from terminal: idf.py build, flash, fullclean... fun, led is flashing (even zigbee was visible once)

And I tried to learn how to use VSCode.
At the beginning everything works nice, but when I start to add some libraries, or (whatever ?) it stops.

'Unable to load standard....'. It happened few times before, I didn't find a way to just send just one command to restore 'riskv32-none-none-eabi'. Reinstall everything. Start from scratch. Works. Some mystic step and 'Unable to load...' again.

Any ideas how to deal with it?

OK. there is difference what terminal knows about environment and what VSCode knows. There was two swifts. One in
'/usr/bin/swift' (VSCode) and '~/usr/bin/swift'.
I add line to '.zshrc'
'''export PATH="/Users/lukasz/.swiftly/bin:$PATH"'''
and it helped.

1 Like