-
Notifications
You must be signed in to change notification settings - Fork 138
Running Locally #892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@nextdynamic do you have the func cli installed? I'm not seeing any output when it's running What do you get if you run How did you create your project? |
@EricJizbaMSFT I'm running into the same[?] issue and decided that I would post here rather than start up a new thread. Things were working A-OK until sometime yesterday when attempts to run the function using the built-in Task "Attach to Python Functions", well, stopped working. When I attempt to run the function, I get the following output:
Here is a screenshot version, included for the pretty colors: I should also mention that the process of "shutting down" never completes. I either have to kill the "func" process in Activity Monitor (or command line equivalent) or kill the terminal that the func is run in (trashcan icon in VS Code). Any idea as to what's going on here? I would love to be able to test my Function locally as the current workflow of having to upload a ~230MB zip file before checking each change is... not great. |
@ericdrobinson When starting a debug session: Clicking on the play button.
Rather than starting a debug session, I executed each command manually in sequence.
As a workaround I tried adjusting command 3. and that worked for me: I am not sure where one can set this port to be used for the vs code debugger. Hope this narrows the problem down a bit. |
@FlippieCoetser Thanks for the helpful pointers! Based on your findings, I ran some tests and found that I could change the VSCode Tasks ( However, when I attempted to hit up the localhost endpoint to test the HttpTrigger in the example, the browsers would simply spin for a while. This lead me to run the following command to see who was actively listening on the default port (I'm on macOS 10.14.2):
The result was: Everything worked. It seems that occasionally some [Python] process isn't shutting down properly. I don't recall what happened right before this issue occurred for me but I will keep an eye out for it and report any findings! |
Yeah I've occasionally seen this, too. It seems like there's an existing issue in the func cli to track: Azure/azure-functions-core-tools#907 @nextdynamic can you confirm if you were seeing the same problem as @FlippieCoetser and @ericdrobinson or was yours different? |
Ahh, good find! Seems that it's not limited to Python, either. Thanks for the pointer! |
@nextdynamic this morning I did more testing. Background
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Python Functions",
"type": "python",
"request": "attach",
"port": 9091,
"host": "localhost",
"preLaunchTask": "runFunctionsHost"
}
]
} Note:
{
"label": "runFunctionsHost",
"type": "shell",
"osx": {
"command": ". ${config:azureFunctions.pythonVenv}\\bin\\activate && func extensions install && pip install -r requirements.txt && func host start"
},
"windows": {
"command": "${config:azureFunctions.pythonVenv}\\Scripts\\activate ; func extensions install ; pip install -r requirements.txt ; func host start"
},
"linux": {
"command": ". ${config:azureFunctions.pythonVenv}\\bin\\activate && func extensions install && pip install -r requirements.txt && func host start"
},
"isBackground": true,
"options": {
"env": {
"languageWorkers__python__arguments": "-m ptvsd --host 127.0.0.1 --port 9091"
}
},
"problemMatcher": "$func-watch"
} I am on windows, therefore Note: within my configuraiotn Test
Results: works without any errors, but obviously VS Code Debugger is not active.
Results: The same errors as described previously. Conclusion 1The workaround I previous described can be further simplied by not adding More TestingI suspect the root cause has something to do with the Python Visual Studio Debugger engine If I manually execute To resolve this manually I then proceeded to install Conclusion 2Installing |
Interesting – I ran thru all your steps – thought I was getting the same results until..
pip install ptvsd
Requirement already satisfied: ptvsd in c: \workspace\hubway\hubwaypythonproject\.env\lib\site-packages (4.2.0)
Tried the debugger – same error as before.
I wonder if I need to blow away my vs code installation and perform a full reinstall?
From: Flippie Coetser <[email protected]>
Sent: Friday, January 11, 2019 5:18 AM
To: Microsoft/vscode-azurefunctions <[email protected]>
Cc: Tim Brown <[email protected]>; Mention <[email protected]>
Subject: Re: [Microsoft/vscode-azurefunctions] Running Locally (#892)
@nextdynamic<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnextdynamic&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Ca1591435564c4c84b43408d677ae0027%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636827986581720337&sdata=DTT5TO9%2FKv4RVGuLE3v6XViquDdY%2B7IFibuRhY2%2Bjb0%3D&reserved=0> this morning I did more testing.
Background
launch.json contains the following configuration:
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Python Functions",
"type": "python",
"request": "attach",
"port": 9091,
"host": "localhost",
"preLaunchTask": "runFunctionsHost"
}
]
}
Note: preLaunchTask point to runFuncitonsHost
tasks.json contains the runFunctionsHost task for each os:
{
"label": "runFunctionsHost",
"type": "shell",
"osx": {
"command": ". ${config:azureFunctions.pythonVenv}\\bin\\activate && func extensions install && pip install -r requirements.txt && func host start"
},
"windows": {
"command": "${config:azureFunctions.pythonVenv}\\Scripts\\activate ; func extensions install ; pip install -r requirements.txt ; func host start"
},
"linux": {
"command": ". ${config:azureFunctions.pythonVenv}\\bin\\activate && func extensions install && pip install -r requirements.txt && func host start"
},
"isBackground": true,
"options": {
"env": {
"languageWorkers__python__arguments": "-m ptvsd --host 127.0.0.1 --port 9091"
}
},
"problemMatcher": "$func-watch"
}
I am on windows, therefore
${config:azureFunctions.pythonVenv}\\Scripts\\activate ; func extensions install ; pip install -r requirements.txt ; func host start applies.
Note: within my configuraiotn ${config:azureFunctions.pythonVenv} = .env.
Test
1. Using the terminal interface in VS Code, I execute the above task:
.env\\Scripts\\activate ; func extensions install ; pip install -r requirements.txt ; func host start
Results: works without any errors, but obviously VS Code Debugger is not active.
1. Launch the debugger from within VS Code, which automatically executes:
.env\\Scripts\\activate ; func extensions install ; pip install -r requirements.txt ; func host start
Results: The same errors as described previously.
Conclusion 1
The workaround I previous described can be further simplied by not adding -- port 5860. Just execute runFunctionsHost manually using VS Code Terminal.
More Testing
I suspect the root cause has something to do with the Python Visual Studio Debugger engine ptvsd
[image]<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F3672126%2F51026420-c370ce00-158e-11e9-9d9a-f24bcc54149c.png&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Ca1591435564c4c84b43408d677ae0027%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636827986581720337&sdata=Y0Zi3PY9cxSPUzxebE5%2BFoahAhLLQ5K7zXP5rqEbNnM%3D&reserved=0>
If I manually execute languageWorkers__python__arguments : python -m ptvsd --host 127.0.0.1 --port 9091 using the termainal, I also get
[image]<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F3672126%2F51027310-cc629f00-1590-11e9-8535-1a370f7efb74.png&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Ca1591435564c4c84b43408d677ae0027%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636827986581730346&sdata=U6IxNObXV%2FVq9TMCHsmyv5if3qtyP02kWWFALSRIjZc%3D&reserved=0>
The same message as using launching the debugger.
To resolve this manually I then proceeded to install pip install ptvsd using the phython envrionment activated by .env\\Scripts\\activate
Afterwhich I launch the debugger from within VS Code again.
Results: Error resolved
[image]<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F3672126%2F51027503-5579d600-1591-11e9-87ec-fe82e8574d00.png&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Ca1591435564c4c84b43408d677ae0027%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636827986581730346&sdata=VjLWyrUeAG3eav7MXIg8lH37v5YsDXMYiAk3SGEXr0g%3D&reserved=0>
Conclusion 2
Installing ptvsd in the local environment fixed the problem for me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvscode-azurefunctions%2Fissues%2F892%23issuecomment-453466891&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Ca1591435564c4c84b43408d677ae0027%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636827986581740351&sdata=dl3cFuzlAnCiLpg8FTjEX0F5hhbh%2Fu38d1PkR6DDHbQ%3D&reserved=0>, or mute the thread<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAXaU-v4LDDtpQ_bZiprV9YyfoidILKvTks5vCGS8gaJpZM4Z0N76&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Ca1591435564c4c84b43408d677ae0027%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636827986581740351&sdata=ooDxFEEDAG9DPSPkUstECHglrDWWQBs6STF0R7V8cNE%3D&reserved=0>.
|
Uninstalled VS Code, deleted .vscode directory, reinstalled.
Same issue.
From: Flippie Coetser <[email protected]>
Sent: Friday, January 11, 2019 5:18 AM
To: Microsoft/vscode-azurefunctions <[email protected]>
Cc: Tim Brown <[email protected]>; Mention <[email protected]>
Subject: Re: [Microsoft/vscode-azurefunctions] Running Locally (#892)
@nextdynamic<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnextdynamic&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Ca1591435564c4c84b43408d677ae0027%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636827986581720337&sdata=DTT5TO9%2FKv4RVGuLE3v6XViquDdY%2B7IFibuRhY2%2Bjb0%3D&reserved=0> this morning I did more testing.
Background
launch.json contains the following configuration:
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Python Functions",
"type": "python",
"request": "attach",
"port": 9091,
"host": "localhost",
"preLaunchTask": "runFunctionsHost"
}
]
}
Note: preLaunchTask point to runFuncitonsHost
tasks.json contains the runFunctionsHost task for each os:
{
"label": "runFunctionsHost",
"type": "shell",
"osx": {
"command": ". ${config:azureFunctions.pythonVenv}\\bin\\activate && func extensions install && pip install -r requirements.txt && func host start"
},
"windows": {
"command": "${config:azureFunctions.pythonVenv}\\Scripts\\activate ; func extensions install ; pip install -r requirements.txt ; func host start"
},
"linux": {
"command": ". ${config:azureFunctions.pythonVenv}\\bin\\activate && func extensions install && pip install -r requirements.txt && func host start"
},
"isBackground": true,
"options": {
"env": {
"languageWorkers__python__arguments": "-m ptvsd --host 127.0.0.1 --port 9091"
}
},
"problemMatcher": "$func-watch"
}
I am on windows, therefore
${config:azureFunctions.pythonVenv}\\Scripts\\activate ; func extensions install ; pip install -r requirements.txt ; func host start applies.
Note: within my configuraiotn ${config:azureFunctions.pythonVenv} = .env.
Test
1. Using the terminal interface in VS Code, I execute the above task:
.env\\Scripts\\activate ; func extensions install ; pip install -r requirements.txt ; func host start
Results: works without any errors, but obviously VS Code Debugger is not active.
1. Launch the debugger from within VS Code, which automatically executes:
.env\\Scripts\\activate ; func extensions install ; pip install -r requirements.txt ; func host start
Results: The same errors as described previously.
Conclusion 1
The workaround I previous described can be further simplied by not adding -- port 5860. Just execute runFunctionsHost manually using VS Code Terminal.
More Testing
I suspect the root cause has something to do with the Python Visual Studio Debugger engine ptvsd
[image]<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F3672126%2F51026420-c370ce00-158e-11e9-9d9a-f24bcc54149c.png&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Ca1591435564c4c84b43408d677ae0027%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636827986581720337&sdata=Y0Zi3PY9cxSPUzxebE5%2BFoahAhLLQ5K7zXP5rqEbNnM%3D&reserved=0>
If I manually execute languageWorkers__python__arguments : python -m ptvsd --host 127.0.0.1 --port 9091 using the termainal, I also get
[image]<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F3672126%2F51027310-cc629f00-1590-11e9-8535-1a370f7efb74.png&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Ca1591435564c4c84b43408d677ae0027%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636827986581730346&sdata=U6IxNObXV%2FVq9TMCHsmyv5if3qtyP02kWWFALSRIjZc%3D&reserved=0>
The same message as using launching the debugger.
To resolve this manually I then proceeded to install pip install ptvsd using the phython envrionment activated by .env\\Scripts\\activate
Afterwhich I launch the debugger from within VS Code again.
Results: Error resolved
[image]<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F3672126%2F51027503-5579d600-1591-11e9-87ec-fe82e8574d00.png&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Ca1591435564c4c84b43408d677ae0027%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636827986581730346&sdata=VjLWyrUeAG3eav7MXIg8lH37v5YsDXMYiAk3SGEXr0g%3D&reserved=0>
Conclusion 2
Installing ptvsd in the local environment fixed the problem for me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvscode-azurefunctions%2Fissues%2F892%23issuecomment-453466891&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Ca1591435564c4c84b43408d677ae0027%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636827986581740351&sdata=dl3cFuzlAnCiLpg8FTjEX0F5hhbh%2Fu38d1PkR6DDHbQ%3D&reserved=0>, or mute the thread<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAXaU-v4LDDtpQ_bZiprV9YyfoidILKvTks5vCGS8gaJpZM4Z0N76&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Ca1591435564c4c84b43408d677ae0027%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636827986581740351&sdata=ooDxFEEDAG9DPSPkUstECHglrDWWQBs6STF0R7V8cNE%3D&reserved=0>.
|
@nextdynamic what happens if you execute the |
@nextdynamic I understand that you're running Windows and the macOS command line solution I suggested won't work for you. A commenter in the other thread for this issue posted the Windows equivalent:
Perhaps you could try running that command in PowerShell and see if it resolves the issue for you? |
@FlippieCoetser ptsvd should be installed to the virtual environment for you in most cases (unless you created the venv manually yourself). But we're actually getting rid of that requirement. Tracked by this issue: #821 @nextdynamic I'm not convinced you're actually having the same issue as the others. I think we need to see the entire output of running |
Microsoft Windows [Version 10.0.17763.253]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject>
.env\\Scripts\\activate
(.env) C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject>func extensions install
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 55.21 ms for C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\extensions.csproj.
extensions -> C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\bin\extensions.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:02.53
(.env) C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject>pip install -r requirements.txt
Requirement already satisfied: azure-functions==1.0.0a5 in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from -r requirements.txt (line 1)) (1.0.0a5)
Requirement already satisfied: azure-functions-worker==1.0.0a6 in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from -r requirements.txt (line 2)) (1.0.0a6)
Requirement already satisfied: grpcio==1.14.2 in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from -r requirements.txt (line 3)) (1.14.2)
Requirement already satisfied: grpcio-tools==1.14.2 in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from -r requirements.txt (line 4)) (1.14.2)
Requirement already satisfied: protobuf==3.6.1 in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from -r requirements.txt (line 5)) (3.6.1)
Requirement already satisfied: six==1.12.0 in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from -r requirements.txt (line 6)) (1.12.0)
Requirement already satisfied: setuptools in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from protobuf==3.6.1->-r requirements.txt (line 5)) (40.6.2)
(.env) C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject>func host start
%%%%%%
%%%%%%
@ %%%%%% @
@@ %%%%%% @@
@@@ %%%%%%%%%%% @@@
@@ %%%%%%%%%% @@
@@ %%%% @@
@@ %%% @@
@@ %% @@
%%
%
Azure Functions Core Tools (2.3.199 Commit hash: fdf734b09806be822e7d946fe17928b419d8a289)
Function Runtime Version: 2.0.12246.0
[1/11/2019 9:56:19 PM] Starting Rpc Initialization Service.
[1/11/2019 9:56:19 PM] Initializaing RpcServer
[1/11/2019 9:56:19 PM] Building host: startup suppressed:False, configuration suppressed: False
[1/11/2019 9:56:19 PM] Reading host configuration file 'C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\host.json'
[1/11/2019 9:56:19 PM] Host configuration file read:
[1/11/2019 9:56:19 PM] {
[1/11/2019 9:56:19 PM] "version": "2.0"
[1/11/2019 9:56:19 PM] }
[1/11/2019 9:56:20 PM] Initializing Host.
[1/11/2019 9:56:20 PM] Host initialization: ConsecutiveErrors=0, StartupCount=1
[1/11/2019 9:56:20 PM] Starting JobHost
[1/11/2019 9:56:20 PM] Starting Host (HostId=minintcm9uqlc-1649390117, InstanceId=1ab8aca5-03bb-4fa4-9a92-37999b19dfca, Version=2.0.12246.0, ProcessId=7172, AppDomainId=1, InDebugMode=False, InDiagnosticMode=False, FunctionsExtensionVersion=)
[1/11/2019 9:56:20 PM] Loading functions metadata
[1/11/2019 9:56:20 PM] 1 functions loaded
[1/11/2019 9:56:20 PM] WorkerRuntime: python. Will shutdown other standby channels
[1/11/2019 9:56:20 PM] Starting language worker process:python "C:\Users\tibrown\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\workers\python\worker.py" --host 127.0.0.1 --port 54142 --workerId 65196214-e475-4eea-a516-1a6c6bdecfa5 --requestId f5ab33ef-fada-4bc0-8dc3-e470946f168d --grpcMaxMessageLength 134217728
[1/11/2019 9:56:20 PM] python process with Id=12724 started
[1/11/2019 9:56:20 PM] Generating 1 job function(s)
[1/11/2019 9:56:20 PM] Error indexing method 'Functions.HubwayEventHubTrigger'
[1/11/2019 9:56:20 PM] Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.HubwayEventHubTrigger'. Microsoft.WindowsAzure.Storage: Settings must be of the form "name=value".
[1/11/2019 9:56:20 PM] Function 'Functions.HubwayEventHubTrigger' failed indexing and will be disabled.
[1/11/2019 9:56:20 PM] No job functions found. Try making your job classes and methods public. If you're using binding extensions
(e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
[1/11/2019 9:56:20 PM] Host initialized (539ms)
[1/11/2019 9:56:20 PM] Host started (554ms)
[1/11/2019 9:56:20 PM] Job host started
Hosting environment: Production
Content root path: C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject
Now listening on: http://0.0.0.0:7071
Application started. Press Ctrl+C to shut down.
[1/11/2019 9:56:25 PM] Host lock lease acquired by instance ID '00000000000000000000000029B35BB2'.
From: Eric Jizba <[email protected]>
Sent: Friday, January 11, 2019 4:28 PM
To: Microsoft/vscode-azurefunctions <[email protected]>
Cc: Tim Brown <[email protected]>; Mention <[email protected]>
Subject: Re: [Microsoft/vscode-azurefunctions] Running Locally (#892)
@FlippieCoetser<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FFlippieCoetser&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Cd01347e398bf4346febc08d6780ba941%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636828388824165318&sdata=%2FbYPgdqqmGtrgoZyEtF5b17v9JQYSlJmtqKwllD3yBg%3D&reserved=0> ptsvd should be installed to the virtual environment for you in most cases (unless you created the venv manually yourself). But we're actually getting rid of that requirement. Tracked by this issue: #821<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvscode-azurefunctions%2Fissues%2F821&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Cd01347e398bf4346febc08d6780ba941%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636828388824175327&sdata=KGtA7pahPjpNFTCoUIVp4LWhD3%2B2rSemaNuVD7qWqC0%3D&reserved=0>
@nextdynamic<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnextdynamic&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Cd01347e398bf4346febc08d6780ba941%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636828388824175327&sdata=mt1CZZuwGbfPAnrIopGEGJk5rbtal5VXFuPeQssjokE%3D&reserved=0> I'm not convinced you're actually having the same issue as the others. I think we need to see the entire output of running .env\\Scripts\\activate ; func extensions install ; pip install -r requirements.txt ; func host start in your VS Code
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvscode-azurefunctions%2Fissues%2F892%23issuecomment-453662221&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Cd01347e398bf4346febc08d6780ba941%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636828388824185328&sdata=%2F2W3q6nuszKoa78S8vW0uV1kb7edu4Xq%2BWlJ%2BMvYjiE%3D&reserved=0>, or mute the thread<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAXaU-h-VkHQkGL8xYfTc8htB9z8gOEJGks5vCQHegaJpZM4Z0N76&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Cd01347e398bf4346febc08d6780ba941%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636828388824195342&sdata=81tk4f4Hy1BlhIsJJmNN8ceR%2FaA5SsdVuC%2BE9EYrXSM%3D&reserved=0>.
|
I would take a look at these lines in particular. There seems to be something wrong with "HubwayEventHubTrigger":
|
Interesting find –
The AzureWebJobsStorage setting in local.settings.json was not set. I fixed it, but no change…
From: Eric Jizba <[email protected]>
Sent: Friday, January 11, 2019 5:12 PM
To: Microsoft/vscode-azurefunctions <[email protected]>
Cc: Tim Brown <[email protected]>; Mention <[email protected]>
Subject: Re: [Microsoft/vscode-azurefunctions] Running Locally (#892)
I would take a look at these lines in particular. There seems to be something wrong with "HubwayEventHubTrigger":
[1/11/2019 9:56:20 PM] Error indexing method 'Functions.HubwayEventHubTrigger'
[1/11/2019 9:56:20 PM] Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.HubwayEventHubTrigger'. Microsoft.WindowsAzure.Storage: Settings must be of the form "name=value".
[1/11/2019 9:56:20 PM] Function 'Functions.HubwayEventHubTrigger' failed indexing and will be disabled.
[1/11/2019 9:56:20 PM] No job functions found. Try making your job classes and methods public. If you're using binding extensions
(e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvscode-azurefunctions%2Fissues%2F892%23issuecomment-453673652&data=02%7C01%7Ctimothy.brown%40microsoft.com%7C662ac51f904948899b0d08d67811e0d6%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636828415514210755&sdata=7d4HxbyDQeQtsf%2FhWY4kEmE1dpHkovTblWtPspwo5lQ%3D&reserved=0>, or mute the thread<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAXaU-rfmBX7ZuPOCIAkYf9gvJqzlLmCBks5vCQxNgaJpZM4Z0N76&data=02%7C01%7Ctimothy.brown%40microsoft.com%7C662ac51f904948899b0d08d67811e0d6%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636828415514220764&sdata=fD0wcXOe%2FbEKzp5oJPa%2BhyVJB3Ip1DAjVTV0EKlas%2BA%3D&reserved=0>.
|
I don't know what you mean by "no change". You'll have to copy the full logs here again. |
.env\\Scripts\\activate
(.env) C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject>func extensions install
Can't determine Project to build. Expected 1 .csproj but found 0
(.env) C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject>func extensions install
Writing C:\Users\tibrown\AppData\Local\Temp\tmp1AC5.tmp
info : Adding PackageReference for package 'Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator' into project 'C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj'.
log : Restoring packages for C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj...
info : Package 'Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator' is compatible with all the specified frameworks in project 'C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj'.
info : PackageReference for package 'Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator' version '1.0.1' added to file 'C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj'.
info : Committing restore...
log : Generating MSBuild file C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.props.
log : Generating MSBuild file C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.targets.
info : Writing lock file to disk. Path: C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\project.assets.json
log : Restore completed in 4.59 sec for C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj.
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.props(38,3):
warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.props" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.props (17,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.targets(45,3): warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.targets (9,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
Restore completed in 79.66 ms for C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj.
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.props(38,3):
warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.props" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.props (17,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.targets(45,3): warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.targets (9,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
HubwayFunctions -> C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\bin\bin\HubwayFunctions.dll
Build succeeded.
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.props(38,3):
warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.props" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.props (17,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.targets(45,3): warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.targets (9,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.props(38,3):
warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.props" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.props (17,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.targets(45,3): warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.targets (9,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
4 Warning(s)
0 Error(s)
Time Elapsed 00:00:05.69
(.env) C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject>pip install -r requirements.txt
Requirement already satisfied: azure-functions==1.0.0a5 in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from -r requirements.txt (line 1)) (1.0.0a5)
Requirement already satisfied: azure-functions-worker==1.0.0a6 in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from -r requirements.txt (line 2)) (1.0.0a6)
Requirement already satisfied: grpcio==1.14.2 in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from -r requirements.txt (line 3)) (1.14.2)
Requirement already satisfied: grpcio-tools==1.14.2 in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from -r requirements.txt (line 4)) (1.14.2)
Requirement already satisfied: protobuf==3.6.1 in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from -r requirements.txt (line 5)) (3.6.1)
Requirement already satisfied: six==1.12.0 in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from -r requirements.txt (line 6)) (1.12.0)
Requirement already satisfied: setuptools in c:\users\tibrown\workspace\hubway\hubwaypythonproject\.env\lib\site-packages (from protobuf==3.6.1->-r requirements.txt (line 5)) (40.6.2)
(.env) C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject>func host start
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.props(38,3):
warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.props" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.props (17,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.targets(45,3): warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.targets (9,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
Restore completed in 58.97 ms for C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj.
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.props(38,3):
warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.props" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.props (17,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.targets(45,3): warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.targets (9,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
HubwayFunctions -> C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\bin\output\bin\HubwayFunctions.dll
Build succeeded.
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.props(38,3):
warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.props" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.props (17,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.targets(45,3): warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.targets (9,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.props(38,3):
warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.props" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.props (17,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
C:\Users\tibrown\.nuget\packages\microsoft.net.sdk.functions\1.0.24\build\netstandard1.0\Microsoft.NET.Sdk.Functions.targets(45,3): warning MSB4011: "C:\Users\tibrown\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\1.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets" cannot be imported again. It was already imported at "C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\obj\HubwayFunctions.csproj.nuget.g.targets (9,5)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\HubwayFunctions.csproj]
4 Warning(s)
0 Error(s)
Time Elapsed 00:00:03.06
%%%%%%
%%%%%%
@ %%%%%% @
@@ %%%%%% @@
@@@ %%%%%%%%%%% @@@
@@ %%%%%%%%%% @@
@@ %%%% @@
@@ %%% @@
@@ %% @@
%%
%
Azure Functions Core Tools (2.3.199 Commit hash: fdf734b09806be822e7d946fe17928b419d8a289)
Function Runtime Version: 2.0.12246.0
[1/17/2019 6:17:15 PM] Starting Rpc Initialization Service.
[1/17/2019 6:17:15 PM] Initializaing RpcServer
[1/17/2019 6:17:16 PM] Building host: startup suppressed:False, configuration suppressed: False
[1/17/2019 6:17:16 PM] Reading host configuration file 'C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\bin\output\host.json'
[1/17/2019 6:17:16 PM] Host configuration file read:
[1/17/2019 6:17:16 PM] {
[1/17/2019 6:17:16 PM] "version": "2.0"
[1/17/2019 6:17:16 PM] }
[1/17/2019 6:17:16 PM] Initializing Host.
[1/17/2019 6:17:16 PM] Host initialization: ConsecutiveErrors=0, StartupCount=1
[1/17/2019 6:17:16 PM] Starting JobHost
[1/17/2019 6:17:16 PM] Starting Host (HostId=minintcm9uqlc-1206432653, InstanceId=f157ba1a-e62d-481b-a2b0-b0aa0d31e4d7, Version=2.0.12246.0, ProcessId=17112, AppDomainId=1, InDebugMode=False, InDiagnosticMode=False, FunctionsExtensionVersion=)
[1/17/2019 6:17:16 PM] Loading functions metadata
[1/17/2019 6:17:16 PM] 0 functions loaded
[1/17/2019 6:17:16 PM] WorkerRuntime: dotnet. Will shutdown other standby channels
[1/17/2019 6:17:16 PM] Generating 0 job function(s)
[1/17/2019 6:17:16 PM] No job functions found. Try making your job classes and methods public. If you're using binding extensions
(e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
[1/17/2019 6:17:16 PM] Host initialized (170ms)
[1/17/2019 6:17:17 PM] Host started (188ms)
[1/17/2019 6:17:17 PM] Job host started
Hosting environment: Production
Content root path: C:\Users\tibrown\Workspace\Hubway\HubwayPythonProject\bin\output
Now listening on: http://0.0.0.0:7071
Application started. Press Ctrl+C to shut down.
[1/17/2019 6:17:22 PM] Host lock lease acquired by instance ID '00000000000000000000000060247676'.
From: Eric Jizba <[email protected]>
Sent: Thursday, January 17, 2019 1:03 PM
To: Microsoft/vscode-azurefunctions <[email protected]>
Cc: Tim Brown <[email protected]>; Mention <[email protected]>
Subject: Re: [Microsoft/vscode-azurefunctions] Running Locally (#892)
The AzureWebJobsStorage setting in local.settings.json was not set. I fixed it, but no change…
I don't know what you mean by "no change". You'll have to copy the full logs here again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvscode-azurefunctions%2Fissues%2F892%23issuecomment-455269733&data=02%7C01%7Ctimothy.brown%40microsoft.com%7C2c6f7001b54c47bc021408d67ca611a9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636833450031227914&sdata=SmBDjnWzEopOeMty%2BN%2B755rDbOuyPKE5RrXgy1A9CXI%3D&reserved=0>, or mute the thread<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAXaU-pvbbhAgbCTNJdL1eSc2S_YAVBSGks5vELrpgaJpZM4Z0N76&data=02%7C01%7Ctimothy.brown%40microsoft.com%7C2c6f7001b54c47bc021408d67ca611a9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636833450031227914&sdata=NZ8gv6ulo6fc1bqYtbK9g8WEdVyf3IiLg8sVjShLQeI%3D&reserved=0>.
|
Is your source code on Github? Can I take a look? It still says "No job functions found." which means there's something wrong with your project. It doesn't recognize |
This might be related. Im using
This is a C# project, created by teh Azure Functions extension and edited.
With debug (F5 or using the debug icon in VS Code), the host lock lease acquired and I can run the new version of the app successfully - the data is also inserted into the database. However if I use the CLI WORKAROUND: |
I think I've figured out what's going on with the original comment. By default we use the PowerShell separator between commands in your There are two workarounds:
In the meantime, I will close this as a duplicate of #760. We want to remove our reliance on separators in the first place so that this issue doesn't happen. If anyone is still having problems (there's been a few different issues discussed in this thread), please file a separate issue so that we can track each one down individually. |
@nextdynamic please let me know if those workaround help (so that you at least get output). Like I said if you run into different problems, please file a separate issue. It took a while to track down the root problem, but thanks for being responsive! |
The text was updated successfully, but these errors were encountered: