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

"Start debugging to update this list", when clicked, nothing happens

Open wojtekmaj opened this issue 9 months ago • 7 comments

Does this occur consistently? Yes Repro steps:

  1. Create a project using Azure Functions extensions
  2. Observe how a list of functions fails to list them and instead shows "Start debugging to update this list" instead.
  3. Upon clicking, some debugging starts, I guess, but nothing else happens
image

Version: 1.12.4 OS: darwin OS Release: 22.6.0 Product: Visual Studio Code Product Version: 1.82.2 Language: pl

wojtekmaj avatar Sep 19 '23 11:09 wojtekmaj

Did debugging successfully start your Functions project? If there was an error and the process exited, then this list won't update.

alexweininger avatar Sep 20 '23 21:09 alexweininger

It did not, the functions were not configured to run locally. Proposals:

  • check for local.settings.json before showing the message
  • if function list is not updated in, say, 10 seconds, display an error message suggesting next steps

BTW, now my list is just empty, no functions, no action button.

wojtekmaj avatar Sep 21 '23 06:09 wojtekmaj

Ok, the list being empty is certainly unwanted behavior. We'll investigate that.

if function list is not updated in, say, 10 seconds, display an error message suggesting next steps That's a good suggestion

alexweininger avatar Sep 28 '23 17:09 alexweininger

Has this been resolved or is there an update on this? I am facing the same issue and not sure how to move forward

almzayyen avatar Dec 12 '23 21:12 almzayyen

Same to me, I cannot see my locally created function. When I click on "Start debugging to update this list.." I got the following output in my console: cd /Users/malte.huen er/Desktop/functionApp ; /usr/bin/env /Users/malte.huener/Desktop/functionApp/ .venv/bin/python /Users/malte.huener/.vscode/extensions/ms-python.python-2023. 23.13481009/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 5688 3 -- /Users/malte.huener/Desktop/functionApp/.vscode/launch.json

But the list is not updating or showing my function. vs-code azure functions

Here are my settings and configuration json's from .vscode inside the project folder: launch.json: { "version": "0.2.0", "configurations": [

{
  "name": "Attach to Python Functions",
  "type": "python",
  "request": "attach",
  "port": 9091,
  "preLaunchTask": "func: host start"
}

] }

settings.json: { "azureFunctions.deploySubpath": ".", "azureFunctions.scmDoBuildDuringDeployment": true, "azureFunctions.pythonVenv": ".venv", "azureFunctions.projectLanguage": "Python", "azureFunctions.projectRuntime": "~4", "debug.internalConsoleOptions": "neverOpen", "azureFunctions.projectLanguageModel": 2 }

extensions.json: { "recommendations": [ "ms-azuretools.vscode-azurefunctions", "ms-python.python" ] }

OS: macOS Sonoma 14.2 Visual Code: 1.85.1 Python 3.9 - programming model v2 Azure Functions v1.13.1 Azure Resources v0.8.3

folder content of my project folder showing in VS Code explorer (and automatically generated with azure functions extension -> create function): .venv .vscode .funcignore function_app.py host.json local.settings.json requirements.txt

MalteHuener avatar Dec 16 '23 10:12 MalteHuener

Same here

rochapablo avatar Feb 14 '24 18:02 rochapablo

still a problem

johnaweiss avatar Apr 16 '24 01:04 johnaweiss