vscode-azurefunctions icon indicating copy to clipboard operation
vscode-azurefunctions copied to clipboard

A warning "No job functions found..." displays in Terminal logs when debugging a C# project

Open v-chenzha opened this issue 1 year ago • 7 comments

OS: All Azure Resources extension: 20231123.1 Azure Functions Extension: 20231123.5 .NET Core SDK Version: 8.0.100

Repro Steps:

  1. Create a C# project with HttpTrigger function.
  2. F5.
  3. Check whether succeeds to debug the project.

Expect: Succeed to debug the project.

Actual: A warning "No job functions found..." displays in Terminal logs. image

More Info:

  1. This issue does not reproduce for .NET 6.0 (LTS) runtime.
  2. This issue does not reproduce for JavaScript/TypeScript/Python/PowerShell project.

v-chenzha avatar Nov 27 '23 09:11 v-chenzha

Does this occur for every C# project created with .NET 8? As in, does the project fail to debug with any of these options?

image

nturinski avatar Nov 29 '23 19:11 nturinski

@nturinski Yes, except .NET 6.0 LTS runtime.

v-chenzha avatar Nov 30 '23 01:11 v-chenzha

I am seeing the same thing. Total bare bones project, latest everything. 7.0 LTS with the default HttpTrigger

What's curious is that an existing functions project, also 7.0, is still working and is finding the functions. But I cannot see what's different between the two of them - I've side by sided.

Seems like something to do with the basic template set up perhaps? Something changed?

It does the same for me with 6.0 as well. Both these are isolated

paulinventome avatar Feb 04 '24 11:02 paulinventome

Just to add to this, I found that adding

<FunctionsEnableWorkerIndexing>False</FunctionsEnableWorkerIndexing> Seems to have worked with the bare bones project...

paulinventome avatar Feb 04 '24 11:02 paulinventome

Thanks for pointing this out. It seems like this bug is related to the worker sdk version. There is a blog post about it here.

There's a bug on the Azure Functions repo tracking it here.

nturinski avatar Feb 06 '24 00:02 nturinski

Thanks for updating @nturinski

I am also having issues deploying a function app to Azure itself with this - the azure based function app see's no functions in it - can you confirm whether those local apps when deployed are working for you?

thanks Paul

paulinventome avatar Feb 06 '24 09:02 paulinventome

Are you deploying through the extension? Could I see what your .vscode/settings.json and .vscode/tasks.json look like?

EDIT: Also, what extension version are you using? We just released a patch fix yesterday that may have broken deployment.

nturinski avatar Feb 06 '24 20:02 nturinski