damogranlabs / VS-Code-STM32-IDE

Use VS Code as STM32 IDE with CubeMX
MIT License
247 stars 52 forks source link

KeyError: 'settings' #14

Closed EnyuZhuang closed 5 years ago

EnyuZhuang commented 5 years ago

Traceback (most recent call last): File "ideScripts/update.py", line 88, in wksData = wksFile.addBuildDataToWorkspaceFile(wksData, buildData) File "***\ideScripts\updateWorkspaceFile.py", line 64, in addBuildDataToWorkspaceFile workspaceData["settings"]["cortex-debug.armToolchainPath"] = armToolchainPah KeyError: 'settings'

The reason was that in my .code-workspace, there was no "settings" at the beginning. I fixed it by creating a "settings" in my .code-workspace. It would be nice if it can be fixed from python scripts.

BTW: Thanks very much for providing this useful extension.

schperplata commented 5 years ago

Fixed in commit adc1f71f4a96d2ffebed3c919663500840cd14e2. Thank you.