Closed hermanwenhe closed 6 months ago
The --
is used with npm so that the switches afterward apply to the script being run rather than npm itself. This task is to start debugging for the Word app, and therefore specifies the app using --app word
.
It looks like there is some problem where with F5 from VS Code being able to launch properly on Mac. This could potentially be a VS Code problem with how it builds the command line, since it looks wrong to use the double-quotes are the string composed to pass to the npm run command.
This is a bug with VS Code that has been seen before : https://github.com/OfficeDev/generator-office/issues/603. It may be that the bug still exists in Mac. Does moving the cli arguments to an args array work? Maybe that would be the safer option.
This is a bug with VS Code that has been seen before : OfficeDev/generator-office#603. It may be that the bug still exists in Mac. Does moving the cli arguments to an args array work? Maybe that would be the safer option.
I just tried and moving to args attributes works!
But the args
shows this:
@millerds This seems like a workaround anyway. Can you help figuring this out? This seems to block all mac users using F5
to start debugging…
I'm not sure if the args array is supported on the npm type or not, but if it work then good. A suggested option suggested in other places on the web is changing from the 'npm' type to the 'shell' type and using the args array (with 'npm', 'run', and 'start:desktop' as the first arguments in this case).
@millerds Glad to see we find a workaround. What's the follow-up action on this? I assume all templates should be updated otherwise the mac users' F5
experience are still blocked?
https://github.com/OfficeDev/Office-Addin-TaskPane/pull/232 will eventually get propagated to the other templates.
Prerequisites
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Expected behavior
Start Word desktop. I can run![image](https://github.com/OfficeDev/Office-Addin-TaskPane-React/assets/105693302/5f0996d4-f7ca-490d-bba6-c7f431b364a7)
npm start:desktop
to start Word desktop. The configs in tasks.json seem wrong:Current behavior
Can't start Word desktop
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Environments
OS: macOS 14.1.12 Node: 16.17.0 & 18.14.0 (Both fail with same results)
Failure Logs