question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Confusing prompt to overwrite tasks upon workspace open results in non-runnable app

See original GitHub issue

Environment

VS Code 1.74.0 Mac OS Ventura 13.0.1 Functions extension v1.9.0

Repro steps

  1. Install prerequisites for Azure Dev CLI-enabled application “ToDo App with CSharp Functions and Azure SQL”: https://github.com/Azure-Samples/todo-csharp-sql-swa-func#prerequisites
  2. Create new empty folder and run azd init -t todo-csharp-sql-swa-func there
  3. Open the folder in VS Code.

Expected

Apart from the prompt to restore the .NET API (middle tier) project, there should be no prompts/warnings.

Actual

There is a prompt that says

Detected an Azure Functions Project in folder ‘blah’ that may have been created outside of VS Code. Initialize for optimal use with VS Code?

Who doesn’t want optimal use? You say yes and see another prompt

This will overwrite the following tasks in your tasks.json: “func: host start”

This is confusing: there is no task “func: host start” in tasks.json. What the extension refers to is a task that is part of the template, which is labeled “API Functions Run”. If a task to be overwritten has a label, the extension should use the label for prompting.

If the user says yes, the task will be overwritten. Unfortunately this task is used by other tasks, and the end result is that the user loses ability to run the app locally.

What I really want

An ability for this template to “tell” Azure Functions extension that it is complete with regards to Azure Functions-related tasks, and that it should not offer to update/overwrite tasks.json file. Is there such a mechanism?

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
karolz-mscommented, Dec 16, 2022

The suggestion works ☺️ PR submitted https://github.com/Azure/azure-dev/pull/1280 That said, for the Functions ext, you still might want to consider whether to improve the project detection logic, and as a minimum, use the task label when prompting the user to update tasks.

1reaction
karolz-mscommented, Dec 15, 2022

@nturinski thank you. Will try projectRuntime and projectLanguage settings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flubaroo - Google Workspace Marketplace
Flubaroo is a Google Spreadsheets Add-on that helps educators quickly grade and analyze online assignments and assessments, as well as share ...
Read more >
IBM Security Guardium V10.6
Access to datasources may be restricted based on the roles assigned to the datasource and to the applications that use it. For example,...
Read more >
Classroom Management Tools & Resources - Google for ...
Get started with Google Classroom, a central hub for tools and resources designed to help educators manage classrooms and enrich learning experiences.
Read more >
How Do I Create Meaningful and Effective Assignments?
Before assigning any major tasks to students, it is imperative that you first ... focus on their main teaching goals when creating an...
Read more >
EDUC 8112 Module 2 Assignment 2 - Academic Guides
But don't assume there there is nothing on your topic if you get few or no results. Instead, search without it. Authors may...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found