Azure / Azure/azure-functions-core-tools

Python V2 core-tool templates in preview extension bundle doesn't work

Open
#3,502 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
4d 20h
Merged PRs (30d)
14

Description

**Description:**
When using Python V2 core-tool templates in the preview extension bundle, I encounter an issue with the following setup.

**Error:** `Use the up/down arrow keys to select a template: One or more errors occurred. (Value cannot be null. (Parameter 'value'))`

**func --version:** 4.0.5413

**func getExtensionBundlePath:** C:\Users\username\\.azure-functions-core-tools\Functions\ExtensionBundles\Microsoft.Azure.Functions.ExtensionBundle.Preview\4.14.0

**Steps to Reproduce:**

1. Initialize Azure Python Function V2 programming model
```bash
func init LocalFunctionProj --python -m V2
```
2. Set up the host.json file as shown below.
```json
{
"version": "2.0",
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle.Preview",
"version": "[4.*, 5.0.0)"
}
}
```
3. Create function using template
```
func new
```

**Expected Behavior:**
The Python V2 core-tool templates should work as expected and should show the available templates.

**Actual Behavior:**
I receive the error mentioned below.

`Use the up/down arrow keys to select a template: One or more errors occurred. (Value cannot be null. (Parameter 'value'))`

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with func --version 4.0.5413 using the Python V2 initialization, the shown host.json, and func new. Trace template discovery for the Microsoft.Azure.Functions.ExtensionBundle.Preview bundle and verify that the available Python V2 core-tool templates are listed and can be selected without the null-value error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.