VS Code:在运行函数后,Azure工作区文件夹不会显示。

huangapple go评论126阅读模式
英文:

VS Code: Azure workspace folders do not appear after I run a function

问题

在Windows 10的VS Code中,使用Python 3.9.13,我运行一个函数,它只在终端返回路径。调用堆栈出现在左侧边栏一瞬间然后消失,然后在我的工作区文件夹应该存在的地方出现"未存在本地工作区资源"的消息。我在前几天运行这个函数时没有出现这个问题。
我想部署这个函数,但是因为工作区下没有任何内容,所以我不能。以下是在运行函数后的截图:VS Code:在运行函数后,Azure工作区文件夹不会显示。

英文:

In VS Code in Windows 10, using python 3.9.13, I run a function and it just returns paths in the terminal. The call stack appears for an instant in the left margin and disappears, then "No local workspace resources exist" appears where my workspace folder should be. I ran this function several times in previous days without this issue.
I want to deploy the function but I can't because there is nothing under Workspaces. The image is a screenshot of what it does after I run the function.VS Code:在运行函数后,Azure工作区文件夹不会显示。

答案1

得分: 1

  • 在VS Code中的Integrated terminal中打开BasicAzureFunction,然后在终端中运行> func host start 以使您的函数运行。
  • 或者,只需在VS Code中打开BasicAzureFunction文件夹> 然后点击fn + f5或运行> start Debugging。
  • 您的函数将会被触发> 不要打开整个Udemy文件夹,只需在您的VS Code中打开BasicAzureFunction。
  • 如果这不起作用,请从包含该函数的子文件夹中运行函数,然后再从BasicAzureFunction中运行函数,它将运行该函数。
英文:
  • Open BasicAzureFunction in an Integrated terminal in VS Code and run > func host start in your terminal for your Function to run.
  • Or else, Just open BasicAzureFunction folder in VS Code > And click on fn + f5 or Run > start Debugging.
  • Your function will be triggered> Do not open entire Udemy folder, Just open BasicAzureFunction in your Vs Code.
  • If that doesnot work run the function from the child folder where the function is present and then run function from BasicAzureFunction and it will run the function.

huangapple
  • 本文由 发表于 2023年6月8日 21:58:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/76432637.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定