Skip to content

[SDK] Apps do not work with 0 functions declarations #3418

@jviau

Description

@jviau

Description

When using the new sdk, a function app will throw at functio nindexing time if they do not include at least 1 function (via attribute).

The issue is that the source-gened IFunctionMetadataProvider will be skipped, leaving the DefaultFunctionMetadataProvider to be used. The default provider will throw because the new SDK does not generate function.metadata (which the provider tries to read).

We can do one of the following:

  1. When the source generator does not act, drop an empty function.metadata
  2. Update source generator to always emit, even if no function declarations.

Preference is for 2 as it seems most straightforward.

Steps to reproduce

  1. Use new SDK
  2. Run with 0 functions

Metadata

Metadata

Assignees

Labels

potential-bugItems opened using the bug report template, not yet triaged and confirmed as a bug

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions