Azure / Azure/azure-functions-core-tools
Debugging/Local development not working on MacOS with Apple silicon m1
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 14
Description
When I try to debug/run Azure function from VS Code I get following output:
```
Azure Functions Core Tools
Core Tools Version: 4.0.4590 Commit hash: N/A (64-bit)
Function Runtime Version: 4.5.2.18383
[2022-06-28T16:37:40.680Z] Failed to initialize worker provider for: /opt/homebrew/Cellar/azure-functions-core-tools@4/4.0.4590/workers/python
[2022-06-28T16:37:40.680Z] Microsoft.Azure.WebJobs.Script: Architecture Arm64 is not supported for language python.
[2022-06-28T16:37:42.056Z] Failed to initialize worker provider for: /opt/homebrew/Cellar/azure-functions-core-tools@4/4.0.4590/workers/python
[2022-06-28T16:37:42.056Z] Microsoft.Azure.WebJobs.Script: Architecture Arm64 is not supported for language python.
[2022-06-28T16:37:42.172Z] Failed to initialize worker provider for: /opt/homebrew/Cellar/azure-functions-core-tools@4/4.0.4590/workers/python
[2022-06-28T16:37:42.172Z] Microsoft.Azure.WebJobs.Script: Architecture Arm64 is not supported for language python.
[2022-06-28T16:37:42.199Z] A host error has occurred during startup operation '8433e83d-381a-4629-acf7-45ae2b05d29f'.
[2022-06-28T16:37:42.199Z] Microsoft.Azure.WebJobs.Script: Did not find functions with language [python].
[2022-06-28T16:37:42.205Z] Failed to stop host instance 'aca28baf-887b-413e-a4f4-8910dcf5e35b'.
[2022-06-28T16:37:42.205Z] Microsoft.Azure.WebJobs.Host: The host has not yet started.
Value cannot be null. (Parameter 'provider')
```
That used to work previously.
VS Code version:
```
Version: 1.68.1
Commit: 30d9c6cd9483b2cc586687151bcbcd635f373630
Date: 2022-06-14T12:48:37.209Z
Electron: 17.4.7
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Darwin arm64 21.5.0
```
Contributor guide
Research direction
Start with the Azure Functions Core Tools startup path invoked by VS Code debugging on Darwin arm64, focusing on the Python worker provider initialization shown in the log. Reproduce the failure on Apple silicon and trace why the ARM64 architecture is rejected; done means local Python functions start and debug without the architecture or missing-provider errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, macos, python, vscode
- Domain
- cli, devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100