iarsystems / iar-vsc-build

Visual Studio Code extension for developing and building IAR projects
https://marketplace.visualstudio.com/items?itemName=iarsystems.iar-build
Mozilla Public License 2.0
38 stars 5 forks source link

Failed to load project error, 'Invalid method name: 'GetCurrentConfiguration' with v1.30.5 release #69

Closed allanwglen closed 9 months ago

allanwglen commented 9 months ago

Describe the bug: After updating IAR Build to v1.30.5, upon opening the IAR project directory the extension fails to load the project citing "Invalid method name: 'GetCurrentConfiguration' as the error.

To Reproduce:

  1. Open VSCode, select 'Open Folder...' and select the directory containing the IAR EWARM project.
  2. VSCode toast will appear at the bottom right showing 'Invalid method name: 'GetCurrentConfiguration'. Inspect the IAR Build log output to see the same error message. Note: Reverting back to v1.30.4 does not have this behaviour.

Expected behavior: Project should have loaded successfully.

Actual behavior: Project fails to load, therefore no files are available in the IAR Build file tree.

Environment:

Additional context: Log output: [2/19/2024, 8:38:01 AM][Debug] Activating extension [2/19/2024, 8:38:01 AM][Debug] Selected workbench: undefined [2/19/2024, 8:38:01 AM][Debug] Selected workspace: undefined [2/19/2024, 8:38:01 AM][Debug] Selected workbench: undefined [2/19/2024, 8:38:01 AM][Debug] Loaded thrift workbench 'undefined' [2/19/2024, 8:38:01 AM][Debug] Loaded workspace 'undefined' [2/19/2024, 8:38:01 AM][Debug] Found 1 workspace(s) in the VS Code workspace [2/19/2024, 8:38:01 AM][Debug] Selected workspace: XPU [2/19/2024, 8:38:01 AM][Debug] Loaded workspace 'XPU' [2/19/2024, 8:38:01 AM][Debug] Collected 2 toolchains [2/19/2024, 8:38:01 AM][Debug] Selected workbench: Embedded Workbench 9.20.4 (Arm) [2/19/2024, 8:38:01 AM][Debug] 1 new toolchain(s) added [2/19/2024, 8:38:01 AM][Debug] Loading thrift workbench 'Embedded Workbench 9.20.4 (Arm)' [2/19/2024, 8:38:01 AM][Debug] Found 1 project(s) in the VS Code workspace [2/19/2024, 8:38:01 AM][Debug] Loaded thrift workbench 'Embedded Workbench 9.20.4 (Arm)' [2/19/2024, 8:38:01 AM][Debug] Ignoring dialog cannotLoadWorkspaces ('do not show again' has been pressed) [2/19/2024, 8:38:01 AM][Debug] Loading thrift workspace: XPU [2/19/2024, 8:38:01 AM][Debug] Loading project: c:\Users\GAllan\dev\xpu\XPU.ewp [2/19/2024, 8:38:01 AM][Debug] Ignoring dialog duplicateGroups ('do not show again' has been pressed) [2/19/2024, 8:38:01 AM][Error] Failed to load 'c:\Users\GAllan\dev\xpu\XPU.ewp': Invalid method name: 'GetCurrentConfiguration' [2/19/2024, 8:38:01 AM][Debug] Parsing project: c:\Users\GAllan\dev\xpu\XPU.ewp [2/19/2024, 8:38:01 AM][Debug] Loaded workspace 'XPU' [2/19/2024, 8:38:01 AM][Debug] Lazy-loading project: XPU [2/19/2024, 8:38:01 AM][Debug] Ignoring dialog duplicateGroups ('do not show again' has been pressed) [2/19/2024, 8:38:01 AM][Error] Failed to load 'c:\Users\GAllan\dev\xpu\XPU.ewp': Invalid method name: 'GetCurrentConfiguration' [2/19/2024, 8:38:01 AM][Debug] Intellisense config changed. Notifying cpptools.

HampusAdolfsson commented 9 months ago

Thanks for reporting this! We just released a fix in 1.30.6, let us know if you still have any issues.

The extension was calling a method that is unavailable in EWARM 9.20.4, but present in later versions.