microsoft / microsoft/azure-tools-for-java

Azure Functions Run Configuration doesn't work for kotlin projects

Open
#5,318 3 comments 0 reactions 2 assignees View on GitHub

@Flanker32 is already working on this.

Since Dec 1, 2021.

Module: Azure Functions P3 Tool: IntelliJ Type: Feature Request workaround
Dominant language
Java
Stars
262
Forks
185
Avg merge
2d 21h
Merged PRs (30d)
1

Description

I have created a maven based Azure Functions project using the kotlin archetype as mentioned in the documentation here https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-maven-kotlin-intellij

When attempting to run the function using the Azure Functions run configuration it fails with a popup containing the message

Failed to run function app locally, as failed prepare staging folder[/tmp/azure-functions9016980085653394574] failed

And in the terminal there is an error message

Unable to find project root. Expecting to find one of host.json, local.settings.json in project root.

2021-05-31-215236_1438x1179_scrot

Is support for kotlin to be expected in the future? It would be nice to be able to do in-process debugging instead of using the remote debugger.

We have tested this on both Linux and Windows with the same result.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.