6/16/2017 10:02:53 AM [NORMAL] - Method "StartLogging" at line 141 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs PowerShell Editor Services Host v1.3.2.0 starting (pid 14088)... Host application details: Name: Visual Studio Code Host ProfileId: Microsoft.VSCode Version: 1.3.2 Arch: 64-bit Operating system details: Version: Microsoft Windows NT 6.1.7601 Service Pack 1 Arch: 64-bit 6/16/2017 10:02:53 AM [NORMAL] - Method "StartLanguageService" at line 177 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs Language service started, listening on port 26361 6/16/2017 10:02:53 AM [NORMAL] - Method "StartDebugService" at line 240 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs Debug service started, listening on port 28730 6/16/2017 10:02:55 AM [NORMAL] - Method "Initialize" at line 220 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs PowerShell runtime version: 4.0, edition: Desktop 6/16/2017 10:02:55 AM [VERBOSE] - Method "SetExecutionPolicy" at line 1414 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Setting execution policy: Current = ExecutionPolicy.Bypass Desired = ExecutionPolicy.RemoteSigned 6/16/2017 10:02:56 AM [ERROR] - Method "SetExecutionPolicy" at line 1434 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs An error occurred while calling Set-ExecutionPolicy, the desired policy of RemoteSigned may not be set. System.Management.Automation.CmdletInvocationException: Windows PowerShell updated your execution policy successfully, but the setting is overridden by a policy defined at a more specific scope. Due to the override, your shell will retain its current effective execution policy of Bypass. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more information please see "Get-Help Set-ExecutionPolicy". ---> System.Security.SecurityException: Security error. at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) --- End of inner exception stack trace --- at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) at Microsoft.PowerShell.EditorServices.PowerShellContext.SetExecutionPolicy(ExecutionPolicy desiredExecutionPolicy) 6/16/2017 10:02:56 AM [VERBOSE] - Method "CheckForCapability" at line 155 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\Capabilities\DscBreakpointCapability.cs Side-by-side DSC module was not found. 6/16/2017 10:02:56 AM [VERBOSE] - Method "SetProfileVariableInCurrentRunspace" at line 1561 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Setting $profile variable in runspace. Current user host profile path: C:\Users\sa_alathom\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1 6/16/2017 10:02:56 AM [NORMAL] - Method "FindPSScriptAnalyzerModule" at line 322 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs PSScriptAnalyzer found at C:\Users\sa_alathom\.vscode\extensions\ms-vscode.powershell-1.3.2\modules\PSScriptAnalyzer\PSScriptAnalyzer.psd1 6/16/2017 10:02:59 AM [VERBOSE] - Method "EnumeratePSScriptAnalyzerRules" at line 350 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs Available PSScriptAnalyzer Rules: PSAlignAssignmentStatement PSAvoidUsingCmdletAliases PSAvoidDefaultValueSwitchParameter PSAvoidDefaultValueForMandatoryParameter PSAvoidUsingEmptyCatchBlock PSAvoidGlobalFunctions PSAvoidGlobalVars PSAvoidInvokingEmptyMembers PSAvoidNullOrEmptyHelpMessageAttribute PSAvoidUsingPositionalParameters PSReservedCmdletChar PSReservedParams PSAvoidShouldContinueWithoutForce PSAvoidUsingUserNameAndPassWordParams PSAvoidUsingComputerNameHardcoded PSAvoidUsingConvertToSecureStringWithPlainText PSAvoidUsingDeprecatedManifestFields PSAvoidUsingInvokeExpression PSAvoidUsingPlainTextForPassword PSAvoidUsingWMICmdlet PSAvoidUsingWriteHost PSMisleadingBacktick PSMissingModuleManifestField PSPlaceCloseBrace PSPlaceOpenBrace PSPossibleIncorrectComparisonWithNull PSProvideCommentHelp PSUseApprovedVerbs PSUseBOMForUnicodeEncodedFile PSUseCmdletCorrectly PSUseCompatibleCmdlets PSUseConsistentIndentation PSUseConsistentWhitespace PSUseDeclaredVarsMoreThanAssignments PSUseLiteralInitializerForHashtable PSUseOutputTypeCorrectly PSUsePSCredentialType PSShouldProcess PSUseShouldProcessForStateChangingFunctions PSUseSingularNouns PSUseSupportsShouldProcess PSUseToExportFieldsInManifest PSUseUTF8EncodingForHelpFile PSDSCDscExamplesPresent PSDSCDscTestsPresent PSDSCReturnCorrectTypesForDSCFunctions PSDSCUseIdenticalMandatoryParametersForDSC PSDSCUseIdenticalParametersForDSC PSDSCStandardDSCFunctionsInResource PSDSCUseVerboseMessageInDSCResource 6/16/2017 10:02:59 AM [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Attempting to execute command(s): Import-Module 6/16/2017 10:02:59 AM [VERBOSE] - Method "OnSessionStateChanged" at line 1138 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Session state changed -- Old state: Ready New state: Running Result: NotFinished 6/16/2017 10:03:05 AM [VERBOSE] - Method "OnSessionStateChanged" at line 1138 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Session state changed -- Old state: Running New state: Ready Result: Completed 6/16/2017 10:03:05 AM [VERBOSE] - Method "ExecuteCommand" at line 551 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Execution completed successfully. 6/16/2017 10:03:05 AM [VERBOSE] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "jsonrpc": "2.0", "id": 0, "method": "initialize", "params": { "processId": 10176, "rootPath": "c:\\Z\\Scripts", "rootUri": "file:///c%3A/Z/Scripts", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true }, "didChangeConfiguration": { "dynamicRegistration": false }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true }, "executeCommand": { "dynamicRegistration": true } }, "textDocument": { "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "completionItem": { "snippetSupport": true } }, "hover": { "dynamicRegistration": true }, "signatureHelp": { "dynamicRegistration": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "definition": { "dynamicRegistration": true }, "codeAction": { "dynamicRegistration": true }, "codeLens": { "dynamicRegistration": true }, "documentLink": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true } } }, "trace": "off" } } 6/16/2017 10:03:06 AM [VERBOSE] - Method "WriteMessage" at line 62 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs WRITE MESSAGE: { "jsonrpc": "2.0", "id": "0", "result": { "capabilities": { "textDocumentSync": 2, "hoverProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ ".", "-", ":", "\\" ] }, "signatureHelpProvider": { "triggerCharacters": [ " " ] }, "definitionProvider": true, "referencesProvider": true, "documentHighlightProvider": true, "documentSymbolProvider": true, "workspaceSymbolProvider": true, "codeActionProvider": true, "codeLensProvider": { "resolveProvider": true }, "documentFormattingProvider": null, "documentRangeFormattingProvider": null, "documentOnTypeFormattingProvider": null, "renameProvider": null, "documentLinkProvider": null, "executeCommandProvider": null, "experimental": null } } } 6/16/2017 10:03:06 AM [VERBOSE] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "jsonrpc": "2.0", "method": "initialized", "params": {} } 6/16/2017 10:03:06 AM [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs MessageDispatcher: No handler registered for Event type 'initialized' 6/16/2017 10:03:06 AM [VERBOSE] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "jsonrpc": "2.0", "method": "$/setTraceNotification", "params": { "value": "off" } } 6/16/2017 10:03:06 AM [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs MessageDispatcher: No handler registered for Event type '$/setTraceNotification' 6/16/2017 10:03:06 AM [VERBOSE] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "jsonrpc": "2.0", "method": "workspace/didChangeConfiguration", "params": { "settings": { "powershell": { "codeFormatting": { "alignPropertyValuePairs": true, "ignoreOneLineBlock": true, "newLineAfterCloseBrace": false, "newLineAfterOpenBrace": false, "openBraceOnSameLine": true, "whitespaceAfterSeparator": true, "whitespaceAroundOperator": false, "whitespaceBeforeOpenBrace": false, "whitespaceBeforeOpenParen": false }, "developer": { "bundledModulesPath": "", "editorServicesLogLevel": "Verbose", "editorServicesWaitForDebugger": false, "featureFlags": [], "powerShellExeIsWindowsDevBuild": false, "powerShellExePath": "" }, "enableProfileLoading": true, "integratedConsole": { "focusConsoleOnExecute": true, "showOnStartup": true }, "scriptAnalysis": { "enable": false, "settingsPath": "" }, "startAutomatically": true, "useX86Host": false } } } } 6/16/2017 10:03:06 AM [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Attempting to execute command(s): C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1 Out-Default 6/16/2017 10:03:06 AM [VERBOSE] - Method "OnSessionStateChanged" at line 1138 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Session state changed -- Old state: Ready New state: Running Result: NotFinished 6/16/2017 10:03:06 AM [VERBOSE] - Method "OnSessionStateChanged" at line 1138 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Session state changed -- Old state: Running New state: Ready Result: Completed 6/16/2017 10:03:06 AM [VERBOSE] - Method "ExecuteCommand" at line 551 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Execution completed successfully. 6/16/2017 10:03:06 AM [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Attempting to execute command(s): C:\Users\sa_alathom\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1 Out-Default 6/16/2017 10:03:06 AM [VERBOSE] - Method "OnSessionStateChanged" at line 1138 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Session state changed -- Old state: Ready New state: Running Result: NotFinished 6/16/2017 10:03:07 AM [VERBOSE] - Method "WriteMessage" at line 62 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs WRITE MESSAGE: { "jsonrpc": "2.0", "id": "1", "method": "editor/openFile", "params": "C:\\Users\\Public\\DMAC\\DMAC.ps1" } 6/16/2017 10:04:32 AM [VERBOSE] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "command": "initialize", "arguments": { "clientID": "vscode", "adapterID": "PowerShell", "pathFormat": "path", "linesStartAt1": true, "columnsStartAt1": true, "supportsVariableType": true, "supportsVariablePaging": true, "supportsRunInTerminalRequest": true }, "type": "request", "seq": 1 } 6/16/2017 10:04:32 AM [VERBOSE] - Method "WriteMessage" at line 62 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs WRITE MESSAGE: { "type": "response", "request_seq": 1, "command": "initialize", "success": true, "body": { "supportsConfigurationDoneRequest": true, "supportsFunctionBreakpoints": true, "supportsConditionalBreakpoints": true, "supportsHitConditionalBreakpoints": true, "supportsEvaluateForHovers": false, "supportsSetVariable": true } } 6/16/2017 10:04:32 AM [VERBOSE] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "command": "launch", "arguments": { "type": "PowerShell", "request": "launch", "name": "PowerShell Launch Current File", "script": "c:\\Z\\Scripts\\FormTesting.ps1", "args": [], "cwd": "c:\\Z\\Scripts\\FormTesting.ps1", "noDebug": true, "internalConsoleOptions": "neverOpen" }, "type": "request", "seq": 2 }