vscode-azurefunctions: Incorrect terminal separator used by default on old versions of Windows
Repro steps:
- Create Azure Functions python project
- Create Function (HTTP trigger)
- F5 -> Message: “You must have the Azure Functions Core Tools installed to debug your local functions.” But Azure Functions Core Tools are installed:
c:\del>node -v
v10.15.3
c:\del>npm -v
6.4.1
c:\del>npm i -g azure-functions-core-tools --unsafe-perm true
C:\Users\HL\AppData\Roaming\npm\func -> C:\Users\HL\AppData\Roaming\npm\node_mod
ules\azure-functions-core-tools\lib\main.js
C:\Users\HL\AppData\Roaming\npm\azfun -> C:\Users\HL\AppData\Roaming\npm\node_mo
dules\azure-functions-core-tools\lib\main.js
C:\Users\HL\AppData\Roaming\npm\azurefunctions -> C:\Users\HL\AppData\Roaming\np
m\node_modules\azure-functions-core-tools\lib\main.js
> azure-functions-core-tools@2.7.1585 postinstall C:\Users\HL\AppData\Roaming\np
m\node_modules\azure-functions-core-tools
> node lib/install.js
attempting to GET "https://functionscdn.azureedge.net/public/2.7.1585/Azure.Func
tions.Cli.win-x64.2.7.1585.zip"
[==================] Downloading Azure Functions Core Tools
+ azure-functions-core-tools@2.7.1585
updated 1 package in 50.091s
- Reply to the Message (from 3.): Install. Then select Azure functions V2
Next error message: Failed to attach (connect ECONNREFUSED 127.0.0.1:9091) Output in Terminal:
> Executing task: .venv\Scripts\python -m pip install -r requirements.txt <
You are using pip version 18.1, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Terminal will be reused by tasks, press any key to close it.
> Executing task: .venv\Scripts\activate ; func host start <
Parameterformat falsch - 850.
Terminal will be reused by tasks, press any key to close it.
Output in Output:
Running command: "npm install -g azure-functions-core-tools@2"...
C:\Users\HL\AppData\Roaming\npm\func -> C:\Users\HL\AppData\Roaming\npm\node_modules\azure-functions-core-tools\lib\main.js
C:\Users\HL\AppData\Roaming\npm\azfun -> C:\Users\HL\AppData\Roaming\npm\node_modules\azure-functions-core-tools\lib\main.js
C:\Users\HL\AppData\Roaming\npm\azurefunctions -> C:\Users\HL\AppData\Roaming\npm\node_modules\azure-functions-core-tools\lib\main.js
> azure-functions-core-tools@2.7.1585 postinstall C:\Users\HL\AppData\Roaming\npm\node_modules\azure-functions-core-tools
> node lib/install.js
attempting to GET "https://functionscdn.azureedge.net/public/2.7.1585/Azure.Functions.Cli.win-x64.2.7.1585.zip"
+ azure-functions-core-tools@2.7.1585
updated 1 package in 50.729s
Finished running command: "npm install -g azure-functions-core-tools@2".
Running command: "npm install -g azure-functions-core-tools@2"...
C:\Users\HL\AppData\Roaming\npm\azurefunctions -> C:\Users\HL\AppData\Roaming\npm\node_modules\azure-functions-core-tools\lib\main.js
C:\Users\HL\AppData\Roaming\npm\azfun -> C:\Users\HL\AppData\Roaming\npm\node_modules\azure-functions-core-tools\lib\main.js
C:\Users\HL\AppData\Roaming\npm\func -> C:\Users\HL\AppData\Roaming\npm\node_modules\azure-functions-core-tools\lib\main.js
> azure-functions-core-tools@2.7.1585 postinstall C:\Users\HL\AppData\Roaming\npm\node_modules\azure-functions-core-tools
> node lib/install.js
attempting to GET "https://functionscdn.azureedge.net/public/2.7.1585/Azure.Functions.Cli.win-x64.2.7.1585.zip"
+ azure-functions-core-tools@2.7.1585
updated 1 package in 49.947s
Finished running command: "npm install -g azure-functions-core-tools@2".
- Reply to the Message (from 4.): Open launch.json File: launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Python Functions",
"type": "python",
"request": "attach",
"port": 9091,
"preLaunchTask": "func: host start"
}
]
}
Remark: I have installed Python 3.7 and 3.6 (3.6 because of Azure functions)
OS: Windows 7 Product: Visual Studio Code Product Version: 1.38.1 Language: en
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 25 (11 by maintainers)
@HoLue what happens if you run
func --version
? Sometimes the func core tools is installed, but not set up correctly on your path. Here are a few links that might help if that’s your problem:https://stackoverflow.com/questions/29955217/global-npm-package-installed-but-command-not-found https://stackoverflow.com/questions/9587665/nodejs-cannot-find-installed-module-on-windows