-
Notifications
You must be signed in to change notification settings - Fork 133
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
VS Code instance freezes after terminating vscode debugging session on javascript HttpTrigger function #1401
Comments
@SDP190 What language is your project? Does it show any errors? |
@EricJizbaMSFT My language is JavaScript node.js |
Is your project a standard project created from VS Code? If not - is it open source and can you share a link? Also just to confirm - can you copy your exact VS Code version and your Node.js version |
@EricJizbaMSFT See original comment updated |
I experience this intermittently as well with Python.
|
@SDP190 @askpatrickw If you can get concrete repro steps that would be great. I'm having a hard time repro-ing. That being said - I actually submitted a PR a little bit ago that might affect this experience: #1389 (The PR title says C#, but it should affect other languages as well) If you have the time, please try out the latest build from master with these instructions and let me know if it helps: https://aka.ms/azCodeInsiders |
@EricJizbaMSFT, I cant tell you exactly what the problem is because it does not occur always I cannot pinpoint any cause, however what I can tell you is to play around with a HttpTrigger javascript function calling the the function with http calls multiple times (1 after another), also maybe try putting breakpoints in the code, then try 'Disconnect' the debugging session at various times during either when its in break mode either while it is running. I will maybe try later minimizing my code to see if it maybe caused by my own code, (I use mssql npm package for sql connections, and also have multiple awaits, however I dont believe its related to this). Also, I tried the latest build it did not solve the problem! |
I have a very simple python function with an http binding for GET only. It returns a file from blob storage. The file is retrieved using the requests library and the url is put together with a url parmeter value placed in an f-string. requests is the only thing in my requirements.txt I can run my project, make a request. Stop the debugger and start it again and it will hang. I wonder if the other people who've observed this also have GET only binding or some other single HTTP Method. |
@askpatrickw, my HttpTrigger is configured for 'POST' only. |
I saw this while working with @sbatten. Seems to repro 100% for him if you want to get in touch with each other. |
@SDP190 @askpatrickw @sbatten FYI we just released v0.19.0 of the extension. It has a new setting Let us know if that helps. Also let us know if you still see a crash if you manually stop the functions host (either through ctrl-c or the trash can icon). |
@EricJizbaMSFT This workaround seems to help. VS Code is no longer entering unresponsive state when debugging Azure functions. |
Awesome - are you manually stopping the func host task and does that work without crashing? Also what version of the func cli are you on? |
Seen the same problem with python on az cli v2.0.73 and multiple versions of vs code.
Manually stopping it with ctrl-c has not caused any freezing yet either. |
This is happening for me consistently. My project is a Function developed on C#. A full sample project can be found here: https://github.com/jsacapdev/steel.function While adding
This development experience is less than ideal. I am getting the same experience on insiders. Please let me know if there is anything else, I can provide to help diagnose this issue. My machine is a Surface Book 2 running Windows 10. |
@jsacapdev what version of the func cli do you have? Are you on Windows 10 Home or Pro? Also can you go to the "About" thing for VS Code and copy all the versions from there |
@EricJizbaMSFT i believe i have the following version of the cli (let me know if this is not correct):
I am on VS Code:
Insiders:
|
Hi @EricJizbaMSFT - I have the same problem as @jsacapdev: Running an Azure Function App (C#) locally, in debug mode. Set some break points. Call the local FA via Postman a time or three. Then, attempting to stop debugging via disconnecting, the UI freezes and eventually (10-20 seconds later) VSCode pops a window stating the environment is non responsive and asks if I want to restart it. Function App version: VS Code: Version: 1.47.3 (user setup) Happy to provide any other details needed. |
any updates on this. I having the same issue with a C# function app with a timer trigger |
same thing here, this as started with latest azure function core tools, but might be coincidence. The fact is, Ctrl+C is the way to avoid the issue |
mine doesn't freeze as long as I kill it with ctrl-c in the terminal window |
@EricJizbaMSFT, is there any update to this investigation? thanks |
Exact same issue on me side with the latest core tools. CTRL-C in the terminal is the only way to not freeze vcode. |
I'm experiencing this issue from time to time on Python debugger as well. |
Experiencing the same issue with Python debugger |
Exact same issue here every time, with the latest versions of everything. |
Same issue here. latest builds of tools and client. Doesn't matter what language or architecture. Hangs on x32/x64 with JS/C#/PS. It happens less if you close the terminal once the function ends. |
Okay folks just released v1.1.0 of the extension which should hopefully fix this issue. I'm going to go ahead and close it, but let me know if you're still having problems after updating. Hard to know for sure because I was never able to get a consistent repro |
I have latest vscode version running on windows 10.
I am able to run Azure Functions locally on VS code using AzureFunctions ext. for VS Code, however when I run the debugger (F5) on my JavaScript Azure Function V2 (HttpTrigger), then when I stop it, very often it causes VS Code instance to crash and freeze.
Any help on this?
Its a standard project created with VS Code.
VS Code Info (Copied from About window):
Version: 1.36.1 (system setup)
Commit: 2213894ea0415ee8c85c5eea0d0ff81ecc191529
Date: 2019-07-08T22:59:35.033Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362
Node.js Version:
node -v --> v10.15.3
The text was updated successfully, but these errors were encountered: