$PSVersionTableName Value
---- -----
PSVersion 5.1.17763.134
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.134
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Log:
Before:
2/6/2019 9:40:55 AM [NORMAL] - Visual Studio Code v1.30.2 64-bit
2/6/2019 9:40:55 AM [NORMAL] - PowerShell Extension v1.11.0
2/6/2019 9:40:55 AM [NORMAL] - Operating System: Windows 64-bit
2/6/2019 9:40:55 AM [NORMAL] - Path specified by 'powerShellExePath' setting - '' - not found, reverting to default PowerShell path.
2/6/2019 9:40:55 AM [NORMAL] - Language server starting --
2/6/2019 9:40:55 AM [NORMAL] - exe: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
2/6/2019 9:40:55 AM [NORMAL] - args: C:\Users\guido\.vscode\extensions\ms-vscode.powershell-1.11.0\modules\PowerShellEditorServices\Start-EditorServices.ps1 -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.11.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'C:\Users\guido\.vscode\extensions\ms-vscode.powershell-1.11.0\modules' -EnableConsoleRepl -LogLevel 'Diagnostic' -LogPath 'C:\Users\guido\.vscode\extensions\ms-vscode.powershell-1.11.0\logs\1549453255-1c1b03fb-74b1-469d-80fa-ee806bf37f721549453241348\EditorServices.log' -SessionDetailsPath 'C:\Users\guido\.vscode\extensions\ms-vscode.powershell-1.11.0\sessions\PSES-VSCode-22472-915323' -FeatureFlags @()
2/6/2019 9:40:59 AM [NORMAL] - powershell.exe started, pid: 21056
2/6/2019 9:41:07 AM [NORMAL] - Language server started.
2/6/2019 9:41:07 AM [NORMAL] - {"languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_om0xrcnc.psj","debugServiceTransport":"NamedPipe","status":"started","debugServicePipeName":"\\\\.\\pipe\\PSES_lt00llnd.2pe"}
2/6/2019 9:41:07 AM [NORMAL] - Connecting to language service on pipe \\.\pipe\PSES_om0xrcnc.psj...
2/6/2019 9:41:07 AM [NORMAL] - Language service connected.
After
2/6/2019 9:34:38 AM [NORMAL] - Visual Studio Code v1.30.2 64-bit
2/6/2019 9:34:38 AM [NORMAL] - PowerShell Extension v1.11.0
2/6/2019 9:34:38 AM [NORMAL] - Operating System: Windows 64-bit
2/6/2019 9:34:38 AM [NORMAL] - Language server starting --
2/6/2019 9:34:38 AM [NORMAL] - exe: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
2/6/2019 9:34:38 AM [NORMAL] - args: C:\Users\guido\.vscode\extensions\ms-vscode.powershell-1.11.0\modules\PowerShellEditorServices\Start-EditorServices.ps1 -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.11.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'C:\Users\guido\.vscode\extensions\ms-vscode.powershell-1.11.0\modules' -EnableConsoleRepl -LogLevel 'Diagnostic' -LogPath 'C:\Users\guido\.vscode\extensions\ms-vscode.powershell-1.11.0\logs\1549452878-079f2677-a738-4aa5-8836-cab7b576e4211549452860002\EditorServices.log' -SessionDetailsPath 'C:\Users\guido\.vscode\extensions\ms-vscode.powershell-1.11.0\sessions\PSES-VSCode-17652-244616' -FeatureFlags @()
2/6/2019 9:34:45 AM [NORMAL] - powershell.exe started, pid: 20208
2/6/2019 9:34:57 AM [NORMAL] - Language server started.
2/6/2019 9:34:57 AM [NORMAL] - {"languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_qg0d4imt.zar","debugServiceTransport":"NamedPipe","status":"started","debugServicePipeName":"\\\\.\\pipe\\PSES_3brpuflv.yu4"}
2/6/2019 9:34:57 AM [NORMAL] - Connecting to language service on pipe \\.\pipe\PSES_qg0d4imt.zar...
2/6/2019 9:34:57 AM [NORMAL] - Language service connected.
My VSCode Powershell extension language server was contantly crashing, after setting the loglevel to Diagnostic i was able to determine that the powershell.developer.powerShellExePath property was set to null, therefore generating an error. Despite connecting to the language server without the powerShellExePath set, it constantly crashes.
Value set by default, bot causing the language server to crash
Hmm, that setting is deprecated - replaced by powershell.powerShellExePath which defaults to "". This will cause the extension to search for your default installation of PowerShell. BTW, what path are you using for the setting to get the extension to not crash?
To tell why the extension crashes we really need the other logs. Can you revert your settings to the before state, repro the extension crash and then follow these instructions on how to provide the extension logs here.
with the most recent update i coundn't reproduce the error.
Closing this given it doesn't repro in the latest update.
I'm receiving the same error on latest version:
10/04/2019 09:09:23 [NORMAL] - Visual Studio Code v1.33.0 64-bit
10/04/2019 09:09:23 [NORMAL] - PowerShell Extension v1.12.0
10/04/2019 09:09:23 [NORMAL] - Operating System: Windows 64-bit
10/04/2019 09:09:23 [NORMAL] - Path specified by 'powerShellExePath' setting - '' - not found, reverting to default PowerShell path.
10/04/2019 09:09:23 [NORMAL] - Language server starting --
10/04/2019 09:09:23 [NORMAL] - exe: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
10/04/2019 09:09:23 [NORMAL] - args: C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\modules\PowerShellEditorServices\Start-EditorServices.ps1 -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.12.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\modules' -EnableConsoleRepl -LogLevel 'Normal' -LogPath 'C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\logs\1554898163-b9f831e9-ad70-4fa9-aa0a-41a987f168771554898161012\EditorServices.log' -SessionDetailsPath 'C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\sessions\PSES-VSCode-1916-905428' -FeatureFlags @()
10/04/2019 09:09:24 [NORMAL] - powershell.exe started, pid: 8388
10/04/2019 09:09:25 [NORMAL] - Language server started.
10/04/2019 09:09:25 [NORMAL] - {"languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_fszmoh5f.p5g","debugServiceTransport":"NamedPipe","status":"started","debugServicePipeName":"\\\\.\\pipe\\PSES_wo1bwf05.jhl"}
10/04/2019 09:09:25 [NORMAL] - Connecting to language service on pipe \\.\pipe\PSES_fszmoh5f.p5g...
10/04/2019 09:09:25 [NORMAL] - Language service connected.
10/04/2019 09:09:30 [NORMAL] - powershell.exe terminated or terminal UI was closed
Thanks for the info! Can you also attach the logs here so we can get a better idea of what's going on?
Sure!
PS: I don't know if I'm supposed to send Diagnostics or Verbose... so I'll send them both
Version: 1.33.0 (system setup)
Commit: 0dd516dd412d42323fc3464531b1c715d51c4c1a
Date: 2019-04-04T15:14:28.026Z
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17763
Diagnostic logs:
2019-04-10 16:08:08.216 [NORMAL] tid:9 in 'StartLogging' C:\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: line 183
PowerShell Editor Services Host v1.12.0.0 starting (PID 8392
Host application details:
Name: Visual Studio Code Host
Version: 1.12.0
ProfileId: Microsoft.VSCode
Arch: X64
Operating system details:
Version: Microsoft Windows 10.0.17763
Arch: X64
Build information:
Version: <development-build>
Origin: <development>
Date: 2019-03-29T16:36:28
2019-04-10 16:08:08.311 [NORMAL] tid:9 in 'StartLanguageService' C:\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: line 202
Language service started, type = NamedPipe, endpoint = InOut pipe: PSES_lwp5tzr2.coj
2019-04-10 16:08:08.330 [NORMAL] tid:9 in 'StartDebugService' C:\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: line 279
Debug service started, type = NamedPipe, endpoint = InOut pipe: PSES_hai4mdyd.0tr
2019-04-10 16:08:10.161 [NORMAL] tid:5 in 'Initialize' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 221
PowerShell runtime version: 5.1.17763.316, edition: Desktop
2019-04-10 16:08:10.331 [VERBOSE] tid:5 in 'SetExecutionPolicy' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1600
Setting execution policy:
Current = ExecutionPolicy.Bypass
Desired = ExecutionPolicy.RemoteSigned
2019-04-10 16:08:10.331 [VERBOSE] tid:5 in 'CheckForCapability' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\Capabilities\DscBreakpointCapability.cs: line 157
Side-by-side DSC module was not found.
2019-04-10 16:08:10.341 [VERBOSE] tid:5 in 'SetProfileVariableInCurrentRunspace' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1747
Setting $profile variable in runspace. Current user host profile path: C:\Users\vpereira\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1
2019-04-10 16:08:11.716 [VERBOSE] tid:5 in 'LogAvailablePssaFeatures' C:\PowerShellEditorServices\src\PowerShellEditorServices\Analysis\AnalysisService.cs: line 473
PSScriptAnalyzer successfully imported:
Version: 1.18.0
Exported Cmdlets:
Get-ScriptAnalyzerRule
Invoke-Formatter
Invoke-ScriptAnalyzer
Available Rules:
PSAlignAssignmentStatement
PSAvoidUsingCmdletAliases
PSAvoidAssignmentToAutomaticVariable
PSAvoidDefaultValueSwitchParameter
PSAvoidDefaultValueForMandatoryParameter
PSAvoidUsingEmptyCatchBlock
PSAvoidGlobalAliases
PSAvoidGlobalFunctions
PSAvoidGlobalVars
PSAvoidInvokingEmptyMembers
PSAvoidNullOrEmptyHelpMessageAttribute
PSAvoidUsingPositionalParameters
PSReservedCmdletChar
PSReservedParams
PSAvoidShouldContinueWithoutForce
PSAvoidTrailingWhitespace
PSAvoidUsingUsernameAndPasswordParams
PSAvoidUsingComputerNameHardcoded
PSAvoidUsingConvertToSecureStringWithPlainText
PSAvoidUsingDeprecatedManifestFields
PSAvoidUsingInvokeExpression
PSAvoidUsingPlainTextForPassword
PSAvoidUsingWMICmdlet
PSAvoidUsingWriteHost
PSUseCompatibleCommands
PSUseCompatibleSyntax
PSUseCompatibleTypes
PSMisleadingBacktick
PSMissingModuleManifestField
PSPlaceCloseBrace
PSPlaceOpenBrace
PSPossibleIncorrectComparisonWithNull
PSPossibleIncorrectUsageOfAssignmentOperator
PSPossibleIncorrectUsageOfRedirectionOperator
PSProvideCommentHelp
PSUseApprovedVerbs
PSUseBOMForUnicodeEncodedFile
PSUseCmdletCorrectly
PSUseCompatibleCmdlets
PSUseConsistentIndentation
PSUseConsistentWhitespace
PSUseCorrectCasing
PSUseDeclaredVarsMoreThanAssignments
PSUseLiteralInitializerForHashtable
PSUseOutputTypeCorrectly
PSUsePSCredentialType
PSShouldProcess
PSUseShouldProcessForStateChangingFunctions
PSUseSingularNouns
PSUseSupportsShouldProcess
PSUseToExportFieldsInManifest
PSUseUTF8EncodingForHelpFile
PSDSCDscExamplesPresent
PSDSCDscTestsPresent
PSDSCReturnCorrectTypesForDSCFunctions
PSDSCUseIdenticalMandatoryParametersForDSC
PSDSCUseIdenticalParametersForDSC
PSDSCStandardDSCFunctionsInResource
PSDSCUseVerboseMessageInDSCResource
2019-04-10 16:08:11.990 [VERBOSE] tid:5 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
{
"jsonrpc": "2.0",
"method": "powerShell/executionStatusChanged",
"params": {
"executionOptions": {
"writeOutputToHost": false,
"writeErrorsToHost": false,
"addToHistory": false,
"interruptCommandPrompt": false
},
"executionStatus": 1,
"hadErrors": false
}
}
2019-04-10 16:08:11.990 [VERBOSE] tid:5 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 492
Attempting to execute command(s):
Import-Module C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\modules\PowerShellEditorServices\bin\Desktop\..\..\Commands\PowerShellEditorServices.Commands.psd1
2019-04-10 16:08:11.995 [VERBOSE] tid:3 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Ready
New state: Running
Result: NotFinished
2019-04-10 16:08:12.791 [VERBOSE] tid:3 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Running
New state: Ready
Result: Completed
2019-04-10 16:08:12.791 [ERROR] tid:3 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 565
Execution of the following command(s) completed with errors:
Import-Module C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\modules\PowerShellEditorServices\bin\Desktop\..\..\Commands\PowerShellEditorServices.Commands.psd1
2019-04-10 16:08:12.791 [VERBOSE] tid:3 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
{
"jsonrpc": "2.0",
"method": "powerShell/executionStatusChanged",
"params": {
"executionOptions": {
"writeOutputToHost": false,
"writeErrorsToHost": false,
"addToHistory": false,
"interruptCommandPrompt": false
},
"executionStatus": 4,
"hadErrors": true
}
}
2019-04-10 16:08:12.811 [VERBOSE] tid:3 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
{
"jsonrpc": "2.0",
"method": "powerShell/executionStatusChanged",
"params": {
"executionOptions": {
"writeOutputToHost": false,
"writeErrorsToHost": true,
"addToHistory": false,
"interruptCommandPrompt": false
},
"executionStatus": 1,
"hadErrors": false
}
}
2019-04-10 16:08:12.811 [VERBOSE] tid:3 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 492
Attempting to execute command(s):
Microsoft.PowerShell.Core\Import-Module -Name PowerShellEditorServices.VSCode
2019-04-10 16:08:12.811 [VERBOSE] tid:6 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Ready
New state: Running
Result: NotFinished
2019-04-10 16:08:12.901 [NORMAL] tid:14 in 'Register' C:\PowerShellEditorServices\src\PowerShellEditorServices.VSCode\ComponentRegistration.cs: line 36
PowerShell Editor Services VS Code module loaded.
2019-04-10 16:08:13.251 [VERBOSE] tid:6 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Running
New state: Ready
Result: Completed
2019-04-10 16:08:13.251 [VERBOSE] tid:6 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 571
Execution completed successfully.
2019-04-10 16:08:13.251 [VERBOSE] tid:6 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
{
"jsonrpc": "2.0",
"method": "powerShell/executionStatusChanged",
"params": {
"executionOptions": {
"writeOutputToHost": false,
"writeErrorsToHost": true,
"addToHistory": false,
"interruptCommandPrompt": false
},
"executionStatus": 4,
"hadErrors": false
}
}
2019-04-10 16:08:13.324 [VERBOSE] tid:15 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Request 'initialize' with id 0
{
"jsonrpc": "2.0",
"id": 0,
"method": "initialize",
"params": {
"processId": 2528,
"rootPath": "\\\\SRV-AD01\\Arquivos\\Suporte\\Restrito\\Scripts\\PowerShell",
"rootUri": "file://srv-ad01/Arquivos/Suporte/Restrito/Scripts/PowerShell",
"capabilities": {
"workspace": {
"applyEdit": true,
"workspaceEdit": {
"documentChanges": true,
"resourceOperations": [
"create",
"rename",
"delete"
],
"failureHandling": "textOnlyTransactional"
},
"didChangeConfiguration": {
"dynamicRegistration": true
},
"didChangeWatchedFiles": {
"dynamicRegistration": true
},
"symbol": {
"dynamicRegistration": true,
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
}
},
"executeCommand": {
"dynamicRegistration": true
},
"configuration": true,
"workspaceFolders": true
},
"textDocument": {
"publishDiagnostics": {
"relatedInformation": true
},
"synchronization": {
"dynamicRegistration": true,
"willSave": true,
"willSaveWaitUntil": true,
"didSave": true
},
"completion": {
"dynamicRegistration": true,
"contextSupport": true,
"completionItem": {
"snippetSupport": true,
"commitCharactersSupport": true,
"documentationFormat": [
"markdown",
"plaintext"
],
"deprecatedSupport": true,
"preselectSupport": true
},
"completionItemKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25
]
}
},
"hover": {
"dynamicRegistration": true,
"contentFormat": [
"markdown",
"plaintext"
]
},
"signatureHelp": {
"dynamicRegistration": true,
"signatureInformation": {
"documentationFormat": [
"markdown",
"plaintext"
]
}
},
"definition": {
"dynamicRegistration": true
},
"references": {
"dynamicRegistration": true
},
"documentHighlight": {
"dynamicRegistration": true
},
"documentSymbol": {
"dynamicRegistration": true,
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
},
"hierarchicalDocumentSymbolSupport": true
},
"codeAction": {
"dynamicRegistration": true,
"codeActionLiteralSupport": {
"codeActionKind": {
"valueSet": [
"",
"quickfix",
"refactor",
"refactor.extract",
"refactor.inline",
"refactor.rewrite",
"source",
"source.organizeImports"
]
}
}
},
"codeLens": {
"dynamicRegistration": true
},
"formatting": {
"dynamicRegistration": true
},
"rangeFormatting": {
"dynamicRegistration": true
},
"onTypeFormatting": {
"dynamicRegistration": true
},
"rename": {
"dynamicRegistration": true,
"prepareSupport": true
},
"documentLink": {
"dynamicRegistration": true
},
"typeDefinition": {
"dynamicRegistration": true
},
"implementation": {
"dynamicRegistration": true
},
"colorProvider": {
"dynamicRegistration": true
},
"foldingRange": {
"dynamicRegistration": true,
"rangeLimit": 5000,
"lineFoldingOnly": true
}
}
},
"trace": "off",
"workspaceFolders": [
{
"uri": "file://srv-ad01/Arquivos/Suporte/Restrito/Scripts/PowerShell",
"name": "PowerShell"
}
]
}
}
2019-04-10 16:08:13.456 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Response 'initialize' with id 0
{
"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": false,
"documentRangeFormattingProvider": false,
"documentOnTypeFormattingProvider": null,
"renameProvider": false,
"documentLinkProvider": null,
"executeCommandProvider": null,
"experimental": null,
"foldingRangeProvider": true
}
}
}
2019-04-10 16:08:13.461 [VERBOSE] tid:15 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Event 'initialized'
{
"jsonrpc": "2.0",
"method": "initialized",
"params": {}
}
2019-04-10 16:08:13.461 [VERBOSE] tid:15 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Event 'workspace/didChangeConfiguration'
{
"jsonrpc": "2.0",
"method": "workspace/didChangeConfiguration",
"params": {
"settings": {
"powershell": {
"sideBar": {
"CommandExplorerVisibility": true,
"CommandExplorerExcludeFilter": []
},
"powerShellExePath": "",
"powerShellAdditionalExePaths": [],
"powerShellDefaultVersion": "",
"startAutomatically": true,
"useX86Host": false,
"enableProfileLoading": true,
"bugReporting": {
"project": "https://github.com/PowerShell/vscode-powershell"
},
"helpCompletion": "BlockComment",
"scriptAnalysis": {
"enable": true,
"settingsPath": ""
},
"codeFolding": {
"enable": true,
"showLastLine": true
},
"codeFormatting": {
"preset": "Custom",
"openBraceOnSameLine": true,
"newLineAfterOpenBrace": true,
"newLineAfterCloseBrace": true,
"pipelineIndentationStyle": "NoIndentation",
"whitespaceBeforeOpenBrace": true,
"whitespaceBeforeOpenParen": true,
"whitespaceAroundOperator": true,
"whitespaceAfterSeparator": true,
"WhitespaceInsideBrace": true,
"WhitespaceAroundPipe": true,
"ignoreOneLineBlock": true,
"alignPropertyValuePairs": true,
"useCorrectCasing": true
},
"integratedConsole": {
"showOnStartup": true,
"focusConsoleOnExecute": true
},
"debugging": {
"createTemporaryIntegratedConsole": false
},
"developer": {
"bundledModulesPath": "",
"editorServicesLogLevel": "Diagnostic",
"editorServicesWaitForDebugger": false,
"featureFlags": [],
"powerShellExeIsWindowsDevBuild": false,
"powerShellExePath": ""
}
}
}
}
}
2019-04-10 16:08:13.480 [VERBOSE] tid:15 in 'Update' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\Server\LanguageServerSettings.cs: line 99
Using Script Analyzer settings path - ''.
2019-04-10 16:08:13.485 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
{
"jsonrpc": "2.0",
"method": "powerShell/executionStatusChanged",
"params": {
"executionOptions": {
"writeOutputToHost": true,
"writeErrorsToHost": true,
"addToHistory": false,
"interruptCommandPrompt": false
},
"executionStatus": 1,
"hadErrors": false
}
}
2019-04-10 16:08:13.485 [VERBOSE] tid:15 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 492
Attempting to execute command(s):
C:\Users\vpereira\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1
Out-Default
2019-04-10 16:08:13.486 [VERBOSE] tid:6 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Ready
New state: Running
Result: NotFinished
2019-04-10 16:08:13.589 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Connect_O365andEXO",
"displayName": "Conectar no Office 365 e Exchange Online"
}
}
2019-04-10 16:08:13.590 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Disconnect_EXO",
"displayName": "Desconectar do Exchange Online"
}
}
2019-04-10 16:08:13.592 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Connect_O365anSPO",
"displayName": "Conectar no Office 365 e SharePoint Online"
}
}
2019-04-10 16:08:13.592 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Disconnect_SPO",
"displayName": "Desconectar do SharePoint Online"
}
}
2019-04-10 16:08:13.592 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Connect_O365andSFB",
"displayName": "Conectar no Office 365 e Skype for Business Online"
}
}
2019-04-10 16:08:13.592 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Disconnect_SFB",
"displayName": "Desconectar do Skype for Business Online"
}
}
2019-04-10 16:08:13.592 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Connect_O365andSCC",
"displayName": "Conectar no Office 365 e Security & Compliance Center"
}
}
2019-04-10 16:08:13.592 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Disconnect_SCC",
"displayName": "Desconectar do Security & Compliance Center"
}
}
2019-04-10 16:08:13.592 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Connect_O365AllServices",
"displayName": "Conectar em todos os servi�os do Office 365"
}
}
2019-04-10 16:08:13.592 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Disconnect_AllServices",
"displayName": "Desconectar de todos os servi�os do Office 365"
}
}
2019-04-10 16:08:13.592 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Connect_PowerCLI",
"displayName": "Conectar no VMware PowerCLI"
}
}
2019-04-10 16:08:13.593 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Disconnect_PowerCLI",
"displayName": "Desconectar do VMware PowerCLI"
}
}
2019-04-10 16:08:13.593 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Connect_Storage",
"displayName": "Conectar no Storage"
}
}
2019-04-10 16:08:13.593 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
{
"jsonrpc": "2.0",
"method": "powerShell/extensionCommandAdded",
"params": {
"name": "Disconnect_Storage",
"displayName": "Desconectar do Storage"
}
}
2019-04-10 16:08:13.703 [VERBOSE] tid:6 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Running
New state: Ready
Result: Completed
2019-04-10 16:08:13.703 [VERBOSE] tid:15 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 571
Execution completed successfully.
2019-04-10 16:08:13.729 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
{
"jsonrpc": "2.0",
"method": "powerShell/executionStatusChanged",
"params": {
"executionOptions": {
"writeOutputToHost": true,
"writeErrorsToHost": true,
"addToHistory": false,
"interruptCommandPrompt": false
},
"executionStatus": 4,
"hadErrors": false
}
}
2019-04-10 16:08:13.755 [VERBOSE] tid:15 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Event 'textDocument/didOpen'
{
"jsonrpc": "2.0",
"method": "textDocument/didOpen",
"params": {
"textDocument": {
"uri": "file://srv-ad01/Arquivos/Suporte/Restrito/Scripts/PowerShell/Console.1-Main.ps1",
"languageId": "powershell",
"version": 1,
"text": "# -----------------------------------------------------------------------------\r\n# Script: Console.1-Main.ps1\r\n# Descrição: Script do console principal de gerenciamento da Axxiom\r\n# Autor: [email protected]\r\n# Data de criação: 23/11/2017\r\n# Data de modificação: 23/11/2017\r\n# -----------------------------------------------------------------------------\r\n\r\n\r\nfunction MenuPrincipal {\r\n $Loop = $True\r\n While ($Loop) {\r\n Clear-Host\r\n Write-Host \"`n`t############################################################\" -ForegroundColor Green\r\n Write-Host \"`t# #\" -ForegroundColor Green\r\n Write-Host \"`t# Console de gerenciamento da Axxiom #\" -ForegroundColor Green\r\n Write-Host \"`t# #\" -ForegroundColor Green\r\n Write-Host \"`t############################################################`n\" -ForegroundColor Green\r\n Write-Host \"`t0) Sair da console\" -ForegroundColor Yellow\r\n Write-Host \"`t1) Ajuda`n\" -ForegroundColor Yellow\r\n Write-Host \"`t2) Gerenciar ambiente Linux\" -ForegroundColor Yellow\r\n Write-Host \"`t3) Gerenciar ambiente Microsoft, Dell e VMware`n\" -ForegroundColor Yellow\r\n\r\n\r\n $Opcao = Read-Host \"`tSelecione uma opção [0-3]\"\r\n if (($Opcao -lt 0) -or ([int]$Opcao -gt 3)) {\r\n Clear-Host\r\n Write-Host \"`n`tVocê digitou uma opção que não existe... Favor tentar novamente.`n\" -ForegroundColor Red\r\n Pause\r\n $Loop = $True\r\n }\r\n switch ($Opcao) {\r\n 0 {\r\n $Loop = $True\r\n Clear-Host\r\n Exit\r\n }\r\n\r\n 1 {\r\n Clear-Host\r\n & C:\\PowerShell\\Console.1-Main_ajuda.ps1\r\n Pause\r\n }\r\n\r\n 2 {\r\n Clear-Host\r\n bash -c \"ssh -t root@srv-backup01 /u01/Scripts/console.sh\"\r\n #ssh -t root@srv-backup01 /u01/Scripts/console.sh\r\n #putty root@srv-backup01 -m C:\\PowerShell\\ConsolePutty.txt -t\r\n }\r\n\r\n 3 {\r\n MenuWindows\r\n }\r\n }\r\n }\r\n}\r\n\r\n\r\nfunction MenuWindows {\r\n & C:\\PowerShell\\Console.2-Mgmt.ps1\r\n}\r\n\r\n\r\nMenuPrincipal\r\n"
}
}
}
2019-04-10 16:08:13.760 [VERBOSE] tid:6 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 492
Attempting to execute command(s):
prompt
2019-04-10 16:08:13.760 [VERBOSE] tid:3 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Ready
New state: Running
Result: NotFinished
2019-04-10 16:08:13.771 [VERBOSE] tid:15 in 'ResolveFilePath' C:\PowerShellEditorServices\src\PowerShellEditorServices\Workspace\Workspace.cs: line 484
Resolved path: \\srv-ad01\Arquivos\Suporte\Restrito\Scripts\PowerShell\Console.1-Main.ps1
2019-04-10 16:08:13.788 [VERBOSE] tid:15 in 'GetFileBuffer' C:\PowerShellEditorServices\src\PowerShellEditorServices\Workspace\Workspace.cs: line 203
Opened file as in-memory buffer: \\srv-ad01\Arquivos\Suporte\Restrito\Scripts\PowerShell\Console.1-Main.ps1
2019-04-10 16:08:13.790 [VERBOSE] tid:15 in 'HandleDidOpenTextDocumentNotification' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\Server\LanguageServer.cs: line 625
Finished opening document.
2019-04-10 16:08:13.790 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
{
"jsonrpc": "2.0",
"method": "powerShell/executionStatusChanged",
"params": {
"executionOptions": {
"writeOutputToHost": false,
"writeErrorsToHost": false,
"addToHistory": false,
"interruptCommandPrompt": false
},
"executionStatus": 1,
"hadErrors": false
}
}
2019-04-10 16:08:13.792 [VERBOSE] tid:15 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Request 'powerShell/getVersion' with id 1
{
"jsonrpc": "2.0",
"id": 1,
"method": "powerShell/getVersion",
"params": null
}
2019-04-10 16:08:13.797 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Response 'powerShell/getVersion' with id 1
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"version": "5.1.17763.316",
"displayVersion": "5.1",
"edition": "Desktop",
"architecture": "x64"
}
}
2019-04-10 16:08:13.803 [VERBOSE] tid:15 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Request 'textDocument/codeAction' with id 2
{
"jsonrpc": "2.0",
"id": 2,
"method": "textDocument/codeAction",
"params": {
"textDocument": {
"uri": "file://srv-ad01/Arquivos/Suporte/Restrito/Scripts/PowerShell/Console.1-Main.ps1"
},
"range": {
"start": {
"line": 20,
"character": 61
},
"end": {
"line": 20,
"character": 61
}
},
"context": {
"diagnostics": []
}
}
}
2019-04-10 16:08:13.820 [VERBOSE] tid:3 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Running
New state: Ready
Result: Completed
2019-04-10 16:08:13.820 [VERBOSE] tid:3 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 571
Execution completed successfully.
2019-04-10 16:08:13.823 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Response 'textDocument/codeAction' with id 2
{
"jsonrpc": "2.0",
"id": "2",
"result": []
}
2019-04-10 16:08:13.824 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
{
"jsonrpc": "2.0",
"method": "powerShell/executionStatusChanged",
"params": {
"executionOptions": {
"writeOutputToHost": false,
"writeErrorsToHost": false,
"addToHistory": false,
"interruptCommandPrompt": false
},
"executionStatus": 4,
"hadErrors": false
}
}
2019-04-10 16:08:13.825 [VERBOSE] tid:15 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Request 'textDocument/foldingRange' with id 3
{
"jsonrpc": "2.0",
"id": 3,
"method": "textDocument/foldingRange",
"params": {
"textDocument": {
"uri": "file://srv-ad01/Arquivos/Suporte/Restrito/Scripts/PowerShell/Console.1-Main.ps1"
}
}
}
2019-04-10 16:08:13.831 [VERBOSE] tid:15 in 'ResolveFilePath' C:\PowerShellEditorServices\src\PowerShellEditorServices\Workspace\Workspace.cs: line 484
Resolved path: \\srv-ad01\Arquivos\Suporte\Restrito\Scripts\PowerShell\Console.1-Main.ps1
2019-04-10 16:08:13.856 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Response 'textDocument/foldingRange' with id 3
{
"jsonrpc": "2.0",
"id": "3",
"result": [
{
"startLine": 25,
"startCharacter": 52,
"endLine": 29,
"endCharacter": 9,
"kind": null
},
{
"startLine": 32,
"startCharacter": 14,
"endLine": 35,
"endCharacter": 13,
"kind": null
},
{
"startLine": 38,
"startCharacter": 14,
"endLine": 41,
"endCharacter": 13,
"kind": null
},
{
"startLine": 44,
"startCharacter": 14,
"endLine": 48,
"endCharacter": 13,
"kind": null
},
{
"startLine": 51,
"startCharacter": 14,
"endLine": 52,
"endCharacter": 13,
"kind": null
},
{
"startLine": 31,
"startCharacter": 24,
"endLine": 53,
"endCharacter": 9,
"kind": null
},
{
"startLine": 11,
"startCharacter": 18,
"endLine": 54,
"endCharacter": 5,
"kind": null
},
{
"startLine": 9,
"startCharacter": 23,
"endLine": 55,
"endCharacter": 1,
"kind": null
},
{
"startLine": 59,
"startCharacter": 21,
"endLine": 60,
"endCharacter": 1,
"kind": null
},
{
"startLine": 0,
"startCharacter": 0,
"endLine": 5,
"endCharacter": 0,
"kind": "comment"
},
{
"startLine": 47,
"startCharacter": 15,
"endLine": 47,
"endCharacter": 0,
"kind": "comment"
}
]
}
2019-04-10 16:08:13.857 [VERBOSE] tid:15 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Request 'textDocument/codeLens' with id 4
{
"jsonrpc": "2.0",
"id": 4,
"method": "textDocument/codeLens",
"params": {
"textDocument": {
"uri": "file://srv-ad01/Arquivos/Suporte/Restrito/Scripts/PowerShell/Console.1-Main.ps1"
}
}
}
2019-04-10 16:08:13.861 [VERBOSE] tid:15 in 'ResolveFilePath' C:\PowerShellEditorServices\src\PowerShellEditorServices\Workspace\Workspace.cs: line 484
Resolved path: \\srv-ad01\Arquivos\Suporte\Restrito\Scripts\PowerShell\Console.1-Main.ps1
2019-04-10 16:08:13.870 [VERBOSE] tid:15 in 'InvokeProviders' C:\PowerShellEditorServices\src\PowerShellEditorServices\Components\FeatureComponentBase.cs: line 71
Invocation of provider 'Microsoft.PowerShell.EditorServices.CodeLenses.ReferencesCodeLensProvider' completed in 3ms.
2019-04-10 16:08:13.873 [VERBOSE] tid:15 in 'InvokeProviders' C:\PowerShellEditorServices\src\PowerShellEditorServices\Components\FeatureComponentBase.cs: line 71
Invocation of provider 'Microsoft.PowerShell.EditorServices.CodeLenses.PesterCodeLensProvider' completed in 2ms.
2019-04-10 16:08:13.883 [VERBOSE] tid:15 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Response 'textDocument/codeLens' with id 4
{
"jsonrpc": "2.0",
"id": "4",
"result": [
{
"range": {
"start": {
"line": 9,
"character": 0
},
"end": {
"line": 56,
"character": 1
}
},
"command": null,
"data": {
"uri": "file:///file%3A%2F%2Fsrv-ad01%2FArquivos%2FSuporte%2FRestrito%2FScripts%2FPowerShell%2FConsole.1-Main.ps1",
"providerId": "Microsoft.PowerShell.EditorServices.CodeLenses.ReferencesCodeLensProvider"
}
},
{
"range": {
"start": {
"line": 59,
"character": 0
},
"end": {
"line": 61,
"character": 1
}
},
"command": null,
"data": {
"uri": "file:///file%3A%2F%2Fsrv-ad01%2FArquivos%2FSuporte%2FRestrito%2FScripts%2FPowerShell%2FConsole.1-Main.ps1",
"providerId": "Microsoft.PowerShell.EditorServices.CodeLenses.ReferencesCodeLensProvider"
}
}
]
}
2019-04-10 16:08:14.504 [VERBOSE] tid:15 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Request 'codeLens/resolve' with id 5
{
"jsonrpc": "2.0",
"id": 5,
"method": "codeLens/resolve",
"params": {
"range": {
"start": {
"line": 9,
"character": 0
},
"end": {
"line": 56,
"character": 1
}
},
"data": {
"uri": "file:///file%3A%2F%2Fsrv-ad01%2FArquivos%2FSuporte%2FRestrito%2FScripts%2FPowerShell%2FConsole.1-Main.ps1",
"providerId": "Microsoft.PowerShell.EditorServices.CodeLenses.ReferencesCodeLensProvider"
}
}
}
2019-04-10 16:08:14.571 [ERROR] tid:6 in 'OnListenTaskCompleted' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\ProtocolEndpoint.cs: line 391
ProtocolEndpoint message loop terminated due to unhandled exception:
System.AggregateException: Um ou mais erros. ---> System.NotSupportedException: Não há suporte para o formato do caminho dado.
em System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
em System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
em Microsoft.PowerShell.EditorServices.Workspace.ResolveFilePath(String filePath)
em Microsoft.PowerShell.EditorServices.Workspace.GetFile(String filePath)
em Microsoft.PowerShell.EditorServices.CodeLenses.CodeLensFeature.<HandleCodeLensResolveRequest>d__6.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.MessageDispatcher.<DispatchMessage>d__7.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.ProtocolEndpoint.<ListenForMessages>d__36.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Utility.AsyncContext.Start(Func`1 asyncMainFunc, ILogger logger)
em System.Threading.Tasks.Task.Execute()
--- Fim do rastreamento de pilha de exceções internas ---
---> (Exceção Interna N° 0) System.NotSupportedException: Não há suporte para o formato do caminho dado.
em System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
em System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
em Microsoft.PowerShell.EditorServices.Workspace.ResolveFilePath(String filePath)
em Microsoft.PowerShell.EditorServices.Workspace.GetFile(String filePath)
em Microsoft.PowerShell.EditorServices.CodeLenses.CodeLensFeature.<HandleCodeLensResolveRequest>d__6.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.MessageDispatcher.<DispatchMessage>d__7.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.ProtocolEndpoint.<ListenForMessages>d__36.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Utility.AsyncContext.Start(Func`1 asyncMainFunc, ILogger logger)
em System.Threading.Tasks.Task.Execute()<---
2019-04-10 16:08:14.616 [ERROR] tid:6 in 'ProtocolEndpoint_UnhandledException' C:\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: line 448
PowerShell Editor Services is terminating due to an unhandled exception, see previous logs for details.
**********************
InÃcio da transcrição do Windows PowerShell
Hora de inÃcio: 20190410160807
Nome de Usuário: AXXIOM1\vpereira
Executar como Usuário: AXXIOM1\vpereira
Nome da Configuração:
Computador: EST001927 (Microsoft Windows NT 10.0.17763.0)
Aplicativo Host: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -EncodedCommand JgAgACcAQwA6AFwAVQBzAGUAcgBzAFwAdgBwAGUAcgBlAGkAcgBhAFwALgB2AHMAYwBvAGQAZQBcAGUAeAB0AGUAbgBzAGkAbwBuAHMAXABtAHMALQB2AHMAYwBvAGQAZQAuAHAAbwB3AGUAcgBzAGgAZQBsAGwALQAxAC4AMQAyAC4AMABcAG0AbwBkAHUAbABlAHMAXABQAG8AdwBlAHIAUwBoAGUAbABsAEUAZABpAHQAbwByAFMAZQByAHYAaQBjAGUAcwBcAFMAdABhAHIAdAAtAEUAZABpAHQAbwByAFMAZQByAHYAaQBjAGUAcwAuAHAAcwAxACcAIAAtAEgAbwBzAHQATgBhAG0AZQAgACcAVgBpAHMAdQBhAGwAIABTAHQAdQBkAGkAbwAgAEMAbwBkAGUAIABIAG8AcwB0ACcAIAAtAEgAbwBzAHQAUAByAG8AZgBpAGwAZQBJAGQAIAAnAE0AaQBjAHIAbwBzAG8AZgB0AC4AVgBTAEMAbwBkAGUAJwAgAC0ASABvAHMAdABWAGUAcgBzAGkAbwBuACAAJwAxAC4AMQAyAC4AMAAnACAALQBBAGQAZABpAHQAaQBvAG4AYQBsAE0AbwBkAHUAbABlAHMAIABAACgAJwBQAG8AdwBlAHIAUwBoAGUAbABsAEUAZABpAHQAbwByAFMAZQByAHYAaQBjAGUAcwAuAFYAUwBDAG8AZABlACcAKQAgAC0AQgB1AG4AZABsAGUAZABNAG8AZAB1AGwAZQBzAFAAYQB0AGgAIAAnAEMAOgBcAFUAcwBlAHIAcwBcAHYAcABlAHIAZQBpAHIAYQBcAC4AdgBzAGMAbwBkAGUAXABlAHgAdABlAG4AcwBpAG8AbgBzAFwAbQBzAC0AdgBzAGMAbwBkAGUALgBwAG8AdwBlAHIAcwBoAGUAbABsAC0AMQAuADEAMgAuADAAXABtAG8AZAB1AGwAZQBzACcAIAAtAEUAbgBhAGIAbABlAEMAbwBuAHMAbwBsAGUAUgBlAHAAbAAgAC0ATABvAGcATABlAHYAZQBsACAAJwBEAGkAYQBnAG4AbwBzAHQAaQBjACcAIAAtAEwAbwBnAFAAYQB0AGgAIAAnAEMAOgBcAFUAcwBlAHIAcwBcAHYAcABlAHIAZQBpAHIAYQBcAC4AdgBzAGMAbwBkAGUAXABlAHgAdABlAG4AcwBpAG8AbgBzAFwAbQBzAC0AdgBzAGMAbwBkAGUALgBwAG8AdwBlAHIAcwBoAGUAbABsAC0AMQAuADEAMgAuADAAXABsAG8AZwBzAFwAMQA1ADUANAA5ADIAMwAyADgAMwAtADkAMwBkAGIAMQAzADUAMAAtAGUAZgA4ADUALQA0ADYAMAAzAC0AOAA0AGYAOQAtADkAMwA2ADgAMQBlADcAYwAzADYANABhADEANQA1ADQAOQAyADMAMgA2ADkAOQAyADcAXABFAGQAaQB0AG8AcgBTAGUAcgB2AGkAYwBlAHMALgBsAG8AZwAnACAALQBTAGUAcwBzAGkAbwBuAEQAZQB0AGEAaQBsAHMAUABhAHQAaAAgACcAQwA6AFwAVQBzAGUAcgBzAFwAdgBwAGUAcgBlAGkAcgBhAFwALgB2AHMAYwBvAGQAZQBcAGUAeAB0AGUAbgBzAGkAbwBuAHMAXABtAHMALQB2AHMAYwBvAGQAZQAuAHAAbwB3AGUAcgBzAGgAZQBsAGwALQAxAC4AMQAyAC4AMABcAHMAZQBzAHMAaQBvAG4AcwBcAFAAUwBFAFMALQBWAFMAQwBvAGQAZQAtADEANQA4ADYANAAtADkAOAA0ADQAOAA4ACcAIAAtAEYAZQBhAHQAdQByAGUARgBsAGEAZwBzACAAQAAoACkA
ID do Processo: 8392
PSVersion: 5.1.17763.316
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.17763.316
BuildVersion: 10.0.17763.316
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
DETALHADO:
#-- Console Encoding ---------------------------------------------------------
DETALHADO: System.Text.ASCIIEncoding
DETALHADO:
#-- Updated PSModulePath to: -------------------------------------------------
DETALHADO: C:\Users\vpereira\Documents\WindowsPowerShell\Modules
DETALHADO: C:\Program Files\WindowsPowerShell\Modules
DETALHADO: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
DETALHADO: C:\Program Files\Common Files\Skype for Business Online\Modules\
DETALHADO: C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\modules
DETALHADO:
#-- Check required modules available -----------------------------------------
DETALHADO: Testing module availability PowerShellGet
DETALHADO: Populando a propriedade RepositorySourceLocation do módulo de preenchimento PowerShellGet.
DETALHADO: Carregando módulo do caminho 'C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.1.2\PSModule.psm1'.
DETALHADO: Carregando módulo do caminho 'C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1'.
DETALHADO: PowerShellGet found
DETALHADO:
#-- Start up PowerShellEditorServices ----------------------------------------
DETALHADO: Importing PowerShellEditorServices
DETALHADO: Carregando módulo do caminho 'C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'.
DETALHADO: Carregando módulo do caminho 'C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\modules\PowerShellEditorServices\PowerShellEditorServices.psm1'.
DETALHADO: Exportando a função 'Start-EditorServicesHost'.
DETALHADO: Exportando a função 'Compress-LogDir'.
DETALHADO: Exportando a função 'Get-PowerShellEditorServicesVersion'.
DETALHADO: Importando a função 'Compress-LogDir'.
DETALHADO: Importando a função 'Get-PowerShellEditorServicesVersion'.
DETALHADO: Importando a função 'Start-EditorServicesHost'.
PowerShell Integrated Console
DETALHADO: Invoking Start-EditorServicesHost
DETALHADO: Start-EditorServicesHost returned Microsoft.PowerShell.EditorServices.Host.EditorServicesHost
DETALHADO: Writing session file with contents:
DETALHADO: {"languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_lwp5tzr2.coj","debugServiceTransport":"NamedPipe","status":"started","debugServicePipeName":"\\\\.\\pipe\\PSES_hai4mdyd.0tr"}
DETALHADO: Wrote out session file
DETALHADO:
#-- Waiting for EditorServicesHost to complete execution ---------------------
DETALHADO: ERRORS caught while waiting for EditorServicesHost to complete execution
DETALHADO: Um ou mais erros.
em System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
em System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
em CallSite.Target(Closure , CallSite , Object )
DETALHADO: Um ou mais erros.
em System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
em System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
em CallSite.Target(Closure , CallSite , Object )
Um ou mais erros.
DETALHADO: Um ou mais erros.
em System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
em System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
em CallSite.Target(Closure , CallSite , Object )
Um ou mais erros.
Não há suporte para o formato do caminho dado.
em System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
em System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
em Microsoft.PowerShell.EditorServices.Workspace.ResolveFilePath(String filePath)
em Microsoft.PowerShell.EditorServices.Workspace.GetFile(String filePath)
em Microsoft.PowerShell.EditorServices.CodeLenses.CodeLensFeature.<HandleCodeLensResolveRequest>d__6.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.MessageDispatcher.<DispatchMessage>d__7.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.ProtocolEndpoint.<ListenForMessages>d__36.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Utility.AsyncContext.Start(Func`1 asyncMainFunc, ILogger logger)
em System.Threading.Tasks.Task.Execute()
PS>$global:?
True
**********************
Fim da transcrição do Windows PowerShell
Hora de término: 20190410160814
**********************
10/04/2019 16:08:03 [NORMAL] - Path specified by 'powerShellExePath' setting - '' - not found, reverting to default PowerShell path.
10/04/2019 16:08:03 [NORMAL] - Language server starting --
10/04/2019 16:08:03 [NORMAL] - exe: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
10/04/2019 16:08:03 [NORMAL] - args: C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\modules\PowerShellEditorServices\Start-EditorServices.ps1 -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.12.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\modules' -EnableConsoleRepl -LogLevel 'Diagnostic' -LogPath 'C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\logs\1554923283-93db1350-ef85-4603-84f9-93681e7c364a1554923269927\EditorServices.log' -SessionDetailsPath 'C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\sessions\PSES-VSCode-15864-984488' -FeatureFlags @()
10/04/2019 16:08:06 [NORMAL] - powershell.exe started, pid: 8392
10/04/2019 16:08:09 [NORMAL] - {"languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_lwp5tzr2.coj","debugServiceTransport":"NamedPipe","status":"started","debugServicePipeName":"\\\\.\\pipe\\PSES_hai4mdyd.0tr"}
10/04/2019 16:08:09 [NORMAL] - Language server started.
10/04/2019 16:08:09 [NORMAL] - Connecting to language service on pipe \\.\pipe\PSES_lwp5tzr2.coj...
10/04/2019 16:08:09 [NORMAL] - Language service connected.
10/04/2019 16:08:17 [NORMAL] - powershell.exe terminated or terminal UI was closed
Verbose logs:
2019-04-10 16:15:51.880 [NORMAL] tid:10 in 'StartLogging' C:\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: line 183
PowerShell Editor Services Host v1.12.0.0 starting (PID 8788
Host application details:
Name: Visual Studio Code Host
Version: 1.12.0
ProfileId: Microsoft.VSCode
Arch: X64
Operating system details:
Version: Microsoft Windows 10.0.17763
Arch: X64
Build information:
Version: <development-build>
Origin: <development>
Date: 2019-03-29T16:36:28
2019-04-10 16:15:51.897 [NORMAL] tid:10 in 'StartLanguageService' C:\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: line 202
Language service started, type = NamedPipe, endpoint = InOut pipe: PSES_ovduonmp.0ul
2019-04-10 16:15:51.902 [NORMAL] tid:10 in 'StartDebugService' C:\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: line 279
Debug service started, type = NamedPipe, endpoint = InOut pipe: PSES_bgki303q.uid
2019-04-10 16:15:53.602 [NORMAL] tid:4 in 'Initialize' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 221
PowerShell runtime version: 5.1.17763.316, edition: Desktop
2019-04-10 16:15:53.724 [VERBOSE] tid:4 in 'SetExecutionPolicy' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1600
Setting execution policy:
Current = ExecutionPolicy.Bypass
Desired = ExecutionPolicy.RemoteSigned
2019-04-10 16:15:53.727 [VERBOSE] tid:4 in 'CheckForCapability' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\Capabilities\DscBreakpointCapability.cs: line 157
Side-by-side DSC module was not found.
2019-04-10 16:15:53.727 [VERBOSE] tid:4 in 'SetProfileVariableInCurrentRunspace' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1747
Setting $profile variable in runspace. Current user host profile path: C:\Users\vpereira\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1
2019-04-10 16:15:54.423 [VERBOSE] tid:4 in 'LogAvailablePssaFeatures' C:\PowerShellEditorServices\src\PowerShellEditorServices\Analysis\AnalysisService.cs: line 473
PSScriptAnalyzer successfully imported:
Version: 1.18.0
Exported Cmdlets:
Get-ScriptAnalyzerRule
Invoke-Formatter
Invoke-ScriptAnalyzer
Available Rules:
PSAlignAssignmentStatement
PSAvoidUsingCmdletAliases
PSAvoidAssignmentToAutomaticVariable
PSAvoidDefaultValueSwitchParameter
PSAvoidDefaultValueForMandatoryParameter
PSAvoidUsingEmptyCatchBlock
PSAvoidGlobalAliases
PSAvoidGlobalFunctions
PSAvoidGlobalVars
PSAvoidInvokingEmptyMembers
PSAvoidNullOrEmptyHelpMessageAttribute
PSAvoidUsingPositionalParameters
PSReservedCmdletChar
PSReservedParams
PSAvoidShouldContinueWithoutForce
PSAvoidTrailingWhitespace
PSAvoidUsingUsernameAndPasswordParams
PSAvoidUsingComputerNameHardcoded
PSAvoidUsingConvertToSecureStringWithPlainText
PSAvoidUsingDeprecatedManifestFields
PSAvoidUsingInvokeExpression
PSAvoidUsingPlainTextForPassword
PSAvoidUsingWMICmdlet
PSAvoidUsingWriteHost
PSUseCompatibleCommands
PSUseCompatibleSyntax
PSUseCompatibleTypes
PSMisleadingBacktick
PSMissingModuleManifestField
PSPlaceCloseBrace
PSPlaceOpenBrace
PSPossibleIncorrectComparisonWithNull
PSPossibleIncorrectUsageOfAssignmentOperator
PSPossibleIncorrectUsageOfRedirectionOperator
PSProvideCommentHelp
PSUseApprovedVerbs
PSUseBOMForUnicodeEncodedFile
PSUseCmdletCorrectly
PSUseCompatibleCmdlets
PSUseConsistentIndentation
PSUseConsistentWhitespace
PSUseCorrectCasing
PSUseDeclaredVarsMoreThanAssignments
PSUseLiteralInitializerForHashtable
PSUseOutputTypeCorrectly
PSUsePSCredentialType
PSShouldProcess
PSUseShouldProcessForStateChangingFunctions
PSUseSingularNouns
PSUseSupportsShouldProcess
PSUseToExportFieldsInManifest
PSUseUTF8EncodingForHelpFile
PSDSCDscExamplesPresent
PSDSCDscTestsPresent
PSDSCReturnCorrectTypesForDSCFunctions
PSDSCUseIdenticalMandatoryParametersForDSC
PSDSCUseIdenticalParametersForDSC
PSDSCStandardDSCFunctionsInResource
PSDSCUseVerboseMessageInDSCResource
2019-04-10 16:15:54.521 [VERBOSE] tid:4 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
2019-04-10 16:15:54.523 [VERBOSE] tid:4 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 492
Attempting to execute command(s):
Import-Module C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\modules\PowerShellEditorServices\bin\Desktop\..\..\Commands\PowerShellEditorServices.Commands.psd1
2019-04-10 16:15:54.523 [VERBOSE] tid:12 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Ready
New state: Running
Result: NotFinished
2019-04-10 16:15:55.092 [VERBOSE] tid:12 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Running
New state: Ready
Result: Completed
2019-04-10 16:15:55.092 [ERROR] tid:12 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 565
Execution of the following command(s) completed with errors:
Import-Module C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\modules\PowerShellEditorServices\bin\Desktop\..\..\Commands\PowerShellEditorServices.Commands.psd1
2019-04-10 16:15:55.092 [VERBOSE] tid:12 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
2019-04-10 16:15:55.092 [VERBOSE] tid:12 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
2019-04-10 16:15:55.092 [VERBOSE] tid:12 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 492
Attempting to execute command(s):
Microsoft.PowerShell.Core\Import-Module -Name PowerShellEditorServices.VSCode
2019-04-10 16:15:55.092 [VERBOSE] tid:4 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Ready
New state: Running
Result: NotFinished
2019-04-10 16:15:55.162 [NORMAL] tid:15 in 'Register' C:\PowerShellEditorServices\src\PowerShellEditorServices.VSCode\ComponentRegistration.cs: line 36
PowerShell Editor Services VS Code module loaded.
2019-04-10 16:15:55.392 [VERBOSE] tid:4 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Running
New state: Ready
Result: Completed
2019-04-10 16:15:55.392 [VERBOSE] tid:4 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 571
Execution completed successfully.
2019-04-10 16:15:55.392 [VERBOSE] tid:4 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
2019-04-10 16:15:55.392 [VERBOSE] tid:18 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Request 'initialize' with id 0
2019-04-10 16:15:55.432 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Response 'initialize' with id 0
2019-04-10 16:15:55.437 [VERBOSE] tid:18 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Event 'initialized'
2019-04-10 16:15:55.442 [VERBOSE] tid:18 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Event 'workspace/didChangeConfiguration'
2019-04-10 16:15:55.454 [VERBOSE] tid:18 in 'Update' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\Server\LanguageServerSettings.cs: line 99
Using Script Analyzer settings path - ''.
2019-04-10 16:15:55.456 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
2019-04-10 16:15:55.457 [VERBOSE] tid:18 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 492
Attempting to execute command(s):
C:\Users\vpereira\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1
Out-Default
2019-04-10 16:15:55.457 [VERBOSE] tid:6 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Ready
New state: Running
Result: NotFinished
2019-04-10 16:15:55.526 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.527 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.528 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.528 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.528 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.528 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.528 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.529 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.529 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.529 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.530 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.530 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.531 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.531 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/extensionCommandAdded'
2019-04-10 16:15:55.634 [VERBOSE] tid:6 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Running
New state: Ready
Result: Completed
2019-04-10 16:15:55.634 [VERBOSE] tid:18 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 571
Execution completed successfully.
2019-04-10 16:15:55.661 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
2019-04-10 16:15:55.687 [VERBOSE] tid:18 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Event 'textDocument/didOpen'
2019-04-10 16:15:55.687 [VERBOSE] tid:3 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 492
Attempting to execute command(s):
prompt
2019-04-10 16:15:55.688 [VERBOSE] tid:4 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Ready
New state: Running
Result: NotFinished
2019-04-10 16:15:55.689 [VERBOSE] tid:18 in 'ResolveFilePath' C:\PowerShellEditorServices\src\PowerShellEditorServices\Workspace\Workspace.cs: line 484
Resolved path: \\srv-ad01\Arquivos\Suporte\Restrito\Scripts\PowerShell\Console.1-Main.ps1
2019-04-10 16:15:55.690 [VERBOSE] tid:18 in 'GetFileBuffer' C:\PowerShellEditorServices\src\PowerShellEditorServices\Workspace\Workspace.cs: line 203
Opened file as in-memory buffer: \\srv-ad01\Arquivos\Suporte\Restrito\Scripts\PowerShell\Console.1-Main.ps1
2019-04-10 16:15:55.690 [VERBOSE] tid:18 in 'HandleDidOpenTextDocumentNotification' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\Server\LanguageServer.cs: line 625
Finished opening document.
2019-04-10 16:15:55.690 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
2019-04-10 16:15:55.691 [VERBOSE] tid:18 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Request 'powerShell/getVersion' with id 1
2019-04-10 16:15:55.694 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Response 'powerShell/getVersion' with id 1
2019-04-10 16:15:55.695 [VERBOSE] tid:18 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Request 'textDocument/foldingRange' with id 2
2019-04-10 16:15:55.698 [VERBOSE] tid:18 in 'ResolveFilePath' C:\PowerShellEditorServices\src\PowerShellEditorServices\Workspace\Workspace.cs: line 484
Resolved path: \\srv-ad01\Arquivos\Suporte\Restrito\Scripts\PowerShell\Console.1-Main.ps1
2019-04-10 16:15:55.706 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Response 'textDocument/foldingRange' with id 2
2019-04-10 16:15:55.709 [VERBOSE] tid:18 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Request 'textDocument/codeLens' with id 3
2019-04-10 16:15:55.712 [VERBOSE] tid:18 in 'ResolveFilePath' C:\PowerShellEditorServices\src\PowerShellEditorServices\Workspace\Workspace.cs: line 484
Resolved path: \\srv-ad01\Arquivos\Suporte\Restrito\Scripts\PowerShell\Console.1-Main.ps1
2019-04-10 16:15:55.713 [VERBOSE] tid:18 in 'InvokeProviders' C:\PowerShellEditorServices\src\PowerShellEditorServices\Components\FeatureComponentBase.cs: line 71
Invocation of provider 'Microsoft.PowerShell.EditorServices.CodeLenses.ReferencesCodeLensProvider' completed in 0ms.
2019-04-10 16:15:55.713 [VERBOSE] tid:18 in 'InvokeProviders' C:\PowerShellEditorServices\src\PowerShellEditorServices\Components\FeatureComponentBase.cs: line 71
Invocation of provider 'Microsoft.PowerShell.EditorServices.CodeLenses.PesterCodeLensProvider' completed in 0ms.
2019-04-10 16:15:55.739 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Response 'textDocument/codeLens' with id 3
2019-04-10 16:15:55.767 [VERBOSE] tid:4 in 'OnSessionStateChanged' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 1311
Session state changed --
Old state: Running
New state: Ready
Result: Completed
2019-04-10 16:15:55.767 [VERBOSE] tid:4 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 571
Execution completed successfully.
2019-04-10 16:15:55.767 [VERBOSE] tid:18 in 'WriteMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
Writing Event 'powerShell/executionStatusChanged'
2019-04-10 16:15:56.466 [VERBOSE] tid:18 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
Received Request 'codeLens/resolve' with id 4
2019-04-10 16:15:56.488 [ERROR] tid:3 in 'OnListenTaskCompleted' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\ProtocolEndpoint.cs: line 391
ProtocolEndpoint message loop terminated due to unhandled exception:
System.AggregateException: Um ou mais erros. ---> System.NotSupportedException: Não há suporte para o formato do caminho dado.
em System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
em System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
em Microsoft.PowerShell.EditorServices.Workspace.ResolveFilePath(String filePath)
em Microsoft.PowerShell.EditorServices.Workspace.GetFile(String filePath)
em Microsoft.PowerShell.EditorServices.CodeLenses.CodeLensFeature.<HandleCodeLensResolveRequest>d__6.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.MessageDispatcher.<DispatchMessage>d__7.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.ProtocolEndpoint.<ListenForMessages>d__36.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Utility.AsyncContext.Start(Func`1 asyncMainFunc, ILogger logger)
em System.Threading.Tasks.Task.Execute()
--- Fim do rastreamento de pilha de exceções internas ---
---> (Exceção Interna N° 0) System.NotSupportedException: Não há suporte para o formato do caminho dado.
em System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
em System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
em Microsoft.PowerShell.EditorServices.Workspace.ResolveFilePath(String filePath)
em Microsoft.PowerShell.EditorServices.Workspace.GetFile(String filePath)
em Microsoft.PowerShell.EditorServices.CodeLenses.CodeLensFeature.<HandleCodeLensResolveRequest>d__6.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.MessageDispatcher.<DispatchMessage>d__7.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol.ProtocolEndpoint.<ListenForMessages>d__36.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.PowerShell.EditorServices.Utility.AsyncContext.Start(Func`1 asyncMainFunc, ILogger logger)
em System.Threading.Tasks.Task.Execute()<---
2019-04-10 16:15:56.488 [ERROR] tid:3 in 'ProtocolEndpoint_UnhandledException' C:\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: line 448
PowerShell Editor Services is terminating due to an unhandled exception, see previous logs for details.
10/04/2019 16:15:49 [NORMAL] - Path specified by 'powerShellExePath' setting - '' - not found, reverting to default PowerShell path.
10/04/2019 16:15:49 [NORMAL] - Language server starting --
10/04/2019 16:15:49 [NORMAL] - exe: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
10/04/2019 16:15:49 [NORMAL] - args: C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\modules\PowerShellEditorServices\Start-EditorServices.ps1 -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.12.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\modules' -EnableConsoleRepl -LogLevel 'Verbose' -LogPath 'C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\logs\1554923749-8df1e612-9e1b-4d58-b696-21a0b1dc96d11554923746186\EditorServices.log' -SessionDetailsPath 'C:\Users\vpereira\.vscode\extensions\ms-vscode.powershell-1.12.0\sessions\PSES-VSCode-10496-113544' -FeatureFlags @()
10/04/2019 16:15:50 [NORMAL] - powershell.exe started, pid: 8788
10/04/2019 16:15:53 [NORMAL] - Language server started.
10/04/2019 16:15:53 [NORMAL] - {"languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_ovduonmp.0ul","debugServiceTransport":"NamedPipe","status":"started","debugServicePipeName":"\\\\.\\pipe\\PSES_bgki303q.uid"}
10/04/2019 16:15:53 [NORMAL] - Connecting to language service on pipe \\.\pipe\PSES_ovduonmp.0ul...
10/04/2019 16:15:53 [NORMAL] - Language service connected.
10/04/2019 16:15:59 [NORMAL] - powershell.exe terminated or terminal UI was closed
Obrigado! 🙂 (I like the Portuguese stack trace)
Do you have any UNC paths in your folder?
Yes, it's a symbolic link to a network path. I have used like this since the begining.
So when I update my PowerShell scripts I don't have to go updating them all on other machines =p
The folder in my PC is: C:\PowerShell
The real path is: \\srv-ad01\arquivos\suporte\restrito\scripts\powershell
PS: Now that you mention it, I've tried to open a script on my OneDrive and the error did not happened.
Ah. Then that is #1830
Fixed in PowerShell/PowerShellEditorServices#908
So I just have to wait for the next update?
Thanks a lot @TylerLeonhardt !
So I just have to wait for the next update?
Yep, we're working to get it out within the next week :)
No problem! Keep up with the great work! VSCode is the best
Working now that the PowerShell extension was updated to version 1.12.1.
Thks once again!