{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/195","repository_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices","labels_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/195/comments","events_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/195/events","html_url":"https://github.com/PowerShell/PowerShellEditorServices/issues/195","id":142420268,"number":195,"title":"Debug adapter crashes when adding breakpoints for files that don't exist","user":{"login":"daviwil","id":79405,"avatar_url":"https://avatars.githubusercontent.com/u/79405?v=3","gravatar_id":"","url":"https://api.github.com/users/daviwil","html_url":"https://github.com/daviwil","followers_url":"https://api.github.com/users/daviwil/followers","following_url":"https://api.github.com/users/daviwil/following{/other_user}","gists_url":"https://api.github.com/users/daviwil/gists{/gist_id}","starred_url":"https://api.github.com/users/daviwil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviwil/subscriptions","organizations_url":"https://api.github.com/users/daviwil/orgs","repos_url":"https://api.github.com/users/daviwil/repos","events_url":"https://api.github.com/users/daviwil/events{/privacy}","received_events_url":"https://api.github.com/users/daviwil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"rkeithhill","id":5177512,"avatar_url":"https://avatars.githubusercontent.com/u/5177512?v=3","gravatar_id":"","url":"https://api.github.com/users/rkeithhill","html_url":"https://github.com/rkeithhill","followers_url":"https://api.github.com/users/rkeithhill/followers","following_url":"https://api.github.com/users/rkeithhill/following{/other_user}","gists_url":"https://api.github.com/users/rkeithhill/gists{/gist_id}","starred_url":"https://api.github.com/users/rkeithhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkeithhill/subscriptions","organizations_url":"https://api.github.com/users/rkeithhill/orgs","repos_url":"https://api.github.com/users/rkeithhill/repos","events_url":"https://api.github.com/users/rkeithhill/events{/privacy}","received_events_url":"https://api.github.com/users/rkeithhill/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/milestones/13","html_url":"https://github.com/PowerShell/PowerShellEditorServices/milestones/0.6.0","labels_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/milestones/13/labels","id":1630837,"number":13,"title":"0.6.0","description":null,"creator":{"login":"daviwil","id":79405,"avatar_url":"https://avatars.githubusercontent.com/u/79405?v=3","gravatar_id":"","url":"https://api.github.com/users/daviwil","html_url":"https://github.com/daviwil","followers_url":"https://api.github.com/users/daviwil/followers","following_url":"https://api.github.com/users/daviwil/following{/other_user}","gists_url":"https://api.github.com/users/daviwil/gists{/gist_id}","starred_url":"https://api.github.com/users/daviwil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviwil/subscriptions","organizations_url":"https://api.github.com/users/daviwil/orgs","repos_url":"https://api.github.com/users/daviwil/repos","events_url":"https://api.github.com/users/daviwil/events{/privacy}","received_events_url":"https://api.github.com/users/daviwil/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":1,"state":"open","created_at":"2016-03-08T15:34:20Z","updated_at":"2016-03-30T14:43:28Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-03-21T17:43:58Z","updated_at":"2016-04-03T20:29:53Z","closed_at":null,"body":"This can happen when VS Code keeps old breakpoints for files that have been renamed or deleted.  See this bug report: https://github.com/PowerShell/vscode-powershell/issues/121\r\n\r\nThe optimal behavior here is to send back information to VS Code saying that the breakpoint is unverified.  Maybe there's a way to send an error saying that the breakpoint is completely invalid and should be removed?\r\n\r\nStack trace:\r\n\r\n```\r\n3/21/2016 7:51:58 AM [NORMAL] - Method \"Main\" at line 103 of C:\\projects\\powershelleditorservices\\src\\PowerShellEditorServices.Host\\Program.cs\r\n\r\n    PowerShell Editor Services Host v0.5.0.304 starting (pid 10796)...\r\n\r\n3/21/2016 7:51:58 AM [NORMAL] - Method \"Main\" at line 112 of C:\\projects\\powershelleditorservices\\src\\PowerShellEditorServices.Host\\Program.cs\r\n\r\n    PowerShell Editor Services Host started!\r\n\r\n3/21/2016 7:51:58 AM [VERBOSE] - Method \"ReadMessage\" at line 111 of C:\\projects\\powershelleditorservices\\src\\PowerShellEditorServices.Protocol\\MessageProtocol\\MessageReader.cs\r\n\r\n    READ MESSAGE:\r\n\r\n    {\r\n      \"type\": \"request\",\r\n      \"seq\": 1,\r\n      \"command\": \"initialize\",\r\n      \"arguments\": {\r\n        \"adapterID\": \"PowerShell\",\r\n        \"pathFormat\": \"path\",\r\n        \"linesStartAt1\": true,\r\n        \"columnsStartAt1\": true\r\n      }\r\n    }\r\n\r\n3/21/2016 7:51:59 AM [VERBOSE] - Method \"WriteMessage\" at line 58 of C:\\projects\\powershelleditorservices\\src\\PowerShellEditorServices.Protocol\\MessageProtocol\\MessageWriter.cs\r\n\r\n    WRITE MESSAGE:\r\n\r\n    {\r\n      \"type\": \"event\",\r\n      \"event\": \"initialized\",\r\n      \"body\": null\r\n    }\r\n\r\n3/21/2016 7:51:59 AM [VERBOSE] - Method \"WriteMessage\" at line 58 of C:\\projects\\powershelleditorservices\\src\\PowerShellEditorServices.Protocol\\MessageProtocol\\MessageWriter.cs\r\n\r\n    WRITE MESSAGE:\r\n\r\n    {\r\n      \"type\": \"response\",\r\n      \"request_seq\": \"1\",\r\n      \"command\": \"initialize\",\r\n      \"success\": true,\r\n      \"body\": {\r\n        \"supportsConfigurationDoneRequest\": true,\r\n        \"supportsFunctionBreakpoints\": true,\r\n        \"supportsConditionalBreakpoints\": true,\r\n        \"supportsEvaluateForHovers\": false\r\n      }\r\n    }\r\n\r\n3/21/2016 7:51:59 AM [VERBOSE] - Method \"ReadMessage\" at line 111 of C:\\projects\\powershelleditorservices\\src\\PowerShellEditorServices.Protocol\\MessageProtocol\\MessageReader.cs\r\n\r\n    READ MESSAGE:\r\n\r\n    {\r\n      \"type\": \"request\",\r\n      \"seq\": 2,\r\n      \"command\": \"setBreakpoints\",\r\n      \"arguments\": {\r\n        \"source\": {\r\n          \"path\": \"c:\\\\Users\\\\Brian\\\\OneDrive\\\\Development\\\\GitHub\\\\ConnectWisePSModule\\\\src\\\\ConnectWisePSModule.psm1\"\r\n        },\r\n        \"lines\": [\r\n          295,\r\n          356\r\n        ],\r\n        \"breakpoints\": [\r\n          {\r\n            \"line\": 295\r\n          },\r\n          {\r\n            \"line\": 356\r\n          }\r\n        ]\r\n      }\r\n    }\r\n\r\n3/21/2016 7:51:59 AM [VERBOSE] - Method \"ResolveFilePath\" at line 248 of C:\\projects\\powershelleditorservices\\src\\PowerShellEditorServices\\Workspace\\Workspace.cs\r\n\r\n    Resolved path: c:\\Users\\Brian\\OneDrive\\Development\\GitHub\\ConnectWisePSModule\\src\\ConnectWisePSModule.psm1\r\n\r\n3/21/2016 7:51:59 AM [ERROR] - Method \"CurrentDomain_UnhandledException\" at line 125 of C:\\projects\\powershelleditorservices\\src\\PowerShellEditorServices.Host\\Program.cs\r\n\r\n    FATAL UNHANDLED EXCEPTION:\r\n\r\n    System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: Could not find file 'c:\\Users\\Brian\\OneDrive\\Development\\GitHub\\ConnectWisePSModule\\src\\ConnectWisePSModule.psm1'.\r\n       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n       at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)\r\n       at System.IO.StreamReader..ctor(String path, Encoding encoding)\r\n       at Microsoft.PowerShell.EditorServices.Workspace.GetFile(String filePath)\r\n       at Microsoft.PowerShell.EditorServices.Protocol.Server.DebugAdapter.<HandleSetBreakpointsRequest>d__15.MoveNext()\r\n    --- End of stack trace from previous location where exception was thrown ---\r\n       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n       at Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.MessageDispatcher.<DispatchMessage>d__32.MoveNext()\r\n    --- End of stack trace from previous location where exception was thrown ---\r\n       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n       at Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.MessageDispatcher.<ListenForMessages>d__31.MoveNext()\r\n    --- End of stack trace from previous location where exception was thrown ---\r\n       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n       at Microsoft.PowerShell.EditorServices.Utility.AsyncContext.Start(Func`1 asyncMainFunc)\r\n       at System.Threading.Tasks.Task.Execute()\r\n       --- End of inner exception stack trace ---\r\n       --- End of inner exception stack trace ---\r\n       at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n       at Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.ProtocolEndpoint.WaitForExit()\r\n       at Microsoft.PowerShell.EditorServices.Host.Program.Main(String[] args)\r\n    ---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: Could not find file 'c:\\Users\\Brian\\OneDrive\\Development\\GitHub\\ConnectWisePSModule\\src\\ConnectWisePSModule.psm1'.\r\n       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n       at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)\r\n       at System.IO.StreamReader..ctor(String path, Encoding encoding)\r\n       at Microsoft.PowerShell.EditorServices.Workspace.GetFile(String filePath)\r\n       at Microsoft.PowerShell.EditorServices.Protocol.Server.DebugAdapter.<HandleSetBreakpointsRequest>d__15.MoveNext()\r\n    --- End of stack trace from previous location where exception was thrown ---\r\n       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n       at Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.MessageDispatcher.<DispatchMessage>d__32.MoveNext()\r\n    --- End of stack trace from previous location where exception was thrown ---\r\n       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n       at Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.MessageDispatcher.<ListenForMessages>d__31.MoveNext()\r\n    --- End of stack trace from previous location where exception was thrown ---\r\n       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n       at Microsoft.PowerShell.EditorServices.Utility.AsyncContext.Start(Func`1 asyncMainFunc)\r\n       at System.Threading.Tasks.Task.Execute()\r\n       --- End of inner exception stack trace ---\r\n    ---> (Inner Exception #0) System.IO.FileNotFoundException: Could not find file 'c:\\Users\\Brian\\OneDrive\\Development\\GitHub\\ConnectWisePSModule\\src\\ConnectWisePSModule.psm1'.\r\n    File name: 'c:\\Users\\Brian\\OneDrive\\Development\\GitHub\\ConnectWisePSModule\\src\\ConnectWisePSModule.psm1'\r\n       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n       at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)\r\n       at System.IO.StreamReader..ctor(String path, Encoding encoding)\r\n       at Microsoft.PowerShell.EditorServices.Workspace.GetFile(String filePath)\r\n       at Microsoft.PowerShell.EditorServices.Protocol.Server.DebugAdapter.<HandleSetBreakpointsRequest>d__15.MoveNext()\r\n    --- End of stack trace from previous location where exception was thrown ---\r\n       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n       at Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.MessageDispatcher.<DispatchMessage>d__32.MoveNext()\r\n    --- End of stack trace from previous location where exception was thrown ---\r\n       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n       at Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.MessageDispatcher.<ListenForMessages>d__31.MoveNext()\r\n    --- End of stack trace from previous location where exception was thrown ---\r\n       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n       at Microsoft.PowerShell.EditorServices.Utility.AsyncContext.Start(Func`1 asyncMainFunc)\r\n       at System.Threading.Tasks.Task.Execute()<---\r\n    <---\r\n```"},"comment":{"url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/comments/205048125","html_url":"https://github.com/PowerShell/PowerShellEditorServices/issues/195#issuecomment-205048125","issue_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/195","id":205048125,"user":{"login":"daviwil","id":79405,"avatar_url":"https://avatars.githubusercontent.com/u/79405?v=3","gravatar_id":"","url":"https://api.github.com/users/daviwil","html_url":"https://github.com/daviwil","followers_url":"https://api.github.com/users/daviwil/followers","following_url":"https://api.github.com/users/daviwil/following{/other_user}","gists_url":"https://api.github.com/users/daviwil/gists{/gist_id}","starred_url":"https://api.github.com/users/daviwil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviwil/subscriptions","organizations_url":"https://api.github.com/users/daviwil/orgs","repos_url":"https://api.github.com/users/daviwil/repos","events_url":"https://api.github.com/users/daviwil/events{/privacy}","received_events_url":"https://api.github.com/users/daviwil/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T20:29:53Z","updated_at":"2016-04-03T20:29:53Z","body":"I'm also OK with having a less noisy output that is more appropriate for the console."}}