-
Notifications
You must be signed in to change notification settings - Fork 513
Debug adapter process has terminated unexpectedly #918
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
Based on what I see here, the code is crashing on a file path. Can you tell me the path of the file you're trying to debug? Alternatively, turn on Verbose logging so that we can see more details about what's happening: |
My scripts are located in below location C:\scripts\Final\SplattingFromFile, There is some issue uploading zip file, Please bare with me, I am copy pasting logs here. Just to mentioned I found I don't have C:\Projects folder on my machine as per the logs. DebugAdapter.Log EditorServices.log
6/23/2017 7:24:01 PM [NORMAL] - Method "StartLanguageService" at line 180 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs
6/23/2017 7:24:01 PM [NORMAL] - Method "StartDebugService" at line 254 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs
6/23/2017 7:24:02 PM [NORMAL] - Method "Initialize" at line 220 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:02 PM [VERBOSE] - Method "SetExecutionPolicy" at line 1414 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:02 PM [VERBOSE] - Method "CheckForCapability" at line 155 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\Capabilities\DscBreakpointCapability.cs
6/23/2017 7:24:02 PM [VERBOSE] - Method "SetProfileVariableInCurrentRunspace" at line 1561 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:02 PM [NORMAL] - Method "FindPSScriptAnalyzerModule" at line 354 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs
6/23/2017 7:24:03 PM [VERBOSE] - Method "EnumeratePSScriptAnalyzerCmdlets" at line 389 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs
6/23/2017 7:24:03 PM [VERBOSE] - Method "EnumeratePSScriptAnalyzerRules" at line 405 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs
6/23/2017 7:24:03 PM [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:03 PM [VERBOSE] - Method "OnSessionStateChanged" at line 1138 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "OnSessionStateChanged" at line 1138 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "ExecuteCommand" at line 551 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "OnSessionStateChanged" at line 1138 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:04 PM [NORMAL] - Method "Register" at line 36 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.VSCode\ComponentRegistration.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "OnSessionStateChanged" at line 1138 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "ExecuteCommand" at line 551 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs
6/23/2017 7:24:04 PM [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs
6/23/2017 7:24:04 PM [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "OnSessionStateChanged" at line 1138 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "ResolveFilePath" at line 354 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "GetFileBuffer" at line 138 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "HandleDidOpenTextDocumentNotification" at line 484 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\Server\LanguageServer.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs
6/23/2017 7:24:04 PM [ERROR] - Method "OnListenTaskCompleted" at line 391 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\ProtocolEndpoint.cs
6/23/2017 7:24:04 PM [ERROR] - Method "ProtocolEndpoint_UnhandledException" at line 417 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "OnSessionStateChanged" at line 1138 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 7:24:04 PM [VERBOSE] - Method "ExecuteCommand" at line 551 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
vscode-powershell.log [19:24:2] Language server started. Language service connected. powershell.exe terminated or terminal UI was closed |
@daviwil is there any update? |
I frequently get these errors:
I can resolve only be closing VS Code and then restarting. I am on Powershell (authored by ms-vscode) |
It got resolved after uninstalling and reinstalling all extensions and VS
Code, I suspect it was due to one of the extension but not sure (Gradually
installed only required, Only uninstall and reinstall of VS code didn't
resolved).
…On Tue, Jul 11, 2017 at 7:38 PM, HowardHoffman ***@***.***> wrote:
I frequently get these errors:
The PowerShell session has terminated due to an error or Debug adapter
process has terminated unexpectedly.
I can resolve only be closing VS Code and then restarting. I am on
Powershell (authored by ms-vscode) 1.4.1.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#918 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKCwJK3iPE4isx8CV1OY8USPDgA8SR69ks5sM4FvgaJpZM4ODi1->
.
|
@HowardHoffman can you please attach logs to this issue? |
I am seeing exactly the same problem (logs attached). It seem to happen with specific files but I can't find anything common with them, they are even in the same folder as files that are ok. I am not debugging when it crashes just viewing the code. 1502698131-aae3bc26-03ba-47be-b9ed-8984139d6e211502693666404.zip |
I thought the common feature was the file being non-UTF-8 but even after converting to UTF-8 the same files still cause a crash. Looking the code it seems be be that PowerShellEditorServices module is incorrectly calculating the number of lines in the file. Hope this helps. |
Is anyone still seeing this issue? We've done some fixes around the "Illegal characters in path" exception. |
I am also having the similar issue. Any update? 2018-07-27 11:24:36.623 [ERROR] C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\ProtocolEndpoint.cs: In method 'OnListenTaskCompleted', line 391:
|
I haven't seen this problem with any of the latest updates. |
I am using 1.8.1 with Visual Studio code v1.25.1 |
@nsleigh Looks like I found an issue. In my path, one of the folder has dot(.) in it. If I remove the dot then everything works ok. This was working earlier but not anymore. So for time being, I will have to rename my folder. Hope this helps in troubleshooting issue. |
@ravick4u Would you be able to share the full path of that folder (or something similar)? |
Also, @ravick4u could you share your platform information?
Should be enough, although if you're on non-Windows, more info about the OS is often helpful. |
@rjmholt Not sure why but now I am not able to reproduce the issue. :( If this issue comes again I will report it. Below is requested details regarding PowerShell.
|
Same Issue, the folder name contains a dot may cause the issue. Folder path is 'C:\Program Files\WindowsPowerShell\Modules\Huawei.iBMC.Cmdlets'
|
I was unable to reproduce this even with putting a ton of special characters in a project folder as #918 (comment) suggests @IamFive can you still reproduce after the latest version release? |
Given that the debugging infrastructure has changed pretty significantly, I think it's safe to assume that any issue still occurring here is unrelated to what's happening in this issue and doesn't share any meaningful context |
I getting error after upgrading after upgrading latest VScode-Powershell. Debug adapter process has terminated unexpectedly
6/23/2017 6:31:56 PM [NORMAL] - Method "StartLanguageService" at line 180 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs
6/23/2017 6:31:56 PM [NORMAL] - Method "StartDebugService" at line 254 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs
6/23/2017 6:31:57 PM [NORMAL] - Method "Initialize" at line 220 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
6/23/2017 6:31:57 PM [NORMAL] - Method "FindPSScriptAnalyzerModule" at line 354 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs
6/23/2017 6:31:59 PM [NORMAL] - Method "Register" at line 36 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.VSCode\ComponentRegistration.cs
6/23/2017 6:31:59 PM [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
6/23/2017 6:31:59 PM [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
6/23/2017 6:31:59 PM [ERROR] - Method "OnListenTaskCompleted" at line 391 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\ProtocolEndpoint.cs
6/23/2017 6:31:59 PM [ERROR] - Method "ProtocolEndpoint_UnhandledException" at line 417 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs
The text was updated successfully, but these errors were encountered: