Azure / Azure/azure-functions-core-tools

`func new` hangs - improve logging

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

Description

### Version

func --version
4.0.6280

### Description

cli `func` hangs when creating a new python function following the official guide

### Steps to reproduce

Follow instruction here: https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-python?tabs=linux%2Cbash%2Cazure-cli%2Cbrowser

```bash
python -m venv .venv
source .venv/bin/activate
func init --python
func new --name HttpExample --template "HTTP trigger" --authlevel "anonymous"
```

Nothing happens after `func new`, hangs for a long time (at least 5~10 minutes) and finally prints:

`One or more errors occurred. (A task was canceled.)`

That's all, nothing to help debugging

Contributor guide

Open the contributing guide

Research direction

Reproduce the hang with the documented virtual-environment and `func init`/`func new` commands, then inspect how the CLI reports the final task-cancellation error. Improve the diagnostic output so users have useful context about the failure, and verify the command no longer ends with only the generic cancellation message.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.