vscode-powershell: FailFast: The terminfo database is invalid (Integrated Terminal)
System Details
-
Operating system name and version: Arch Linux (Kernel 4.16)
-
VS Code version: 1.22.2 3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9 x64
-
PowerShell extension version: 1.6.0
-
Output from
$PSVersionTable:
PSVersion 6.0.2
PSEdition Core
GitCommitId v6.0.2
OS Linux 4.16.3-1-ARCH #1 SMP PREEMPT Thu Apr 19… Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Copy / paste the following commands into the PowerShell Integrated Console, and paste the output here:
[codywd@cody-linux PowerShell]$ pwsh
PowerShell v6.0.2
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/pscore6-docs
Type 'help' to get help.
PS /home/codywd/Projects/PowerShell> code -v
1.22.2
3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9
x64
PS /home/codywd/Projects/PowerShell> $pseditor.EditorServicesVersion
PS /home/codywd/Projects/PowerShell> code --list-extensions --show-versions
CoenraadS.bracket-pair-colorizer@1.0.37
Dart-Code.dart-code@2.11.2
Equinusocio.vsc-material-theme@2.0.1
Hridoy.rails-snippets@1.0.8
Serge.vsc-material-theme-italicize@0.0.14
Tyriar.sort-lines@1.6.1
aaron-bond.better-comments@1.2.2
alefragnani.project-manager@0.25.2
bibhasdn.django-html@1.2.0
bibhasdn.django-snippets@1.1.0
burtlo.inspec@0.1.2
castwide.solargraph@0.16.0
christian-kohler.path-intellisense@1.4.2
donjayamanne.githistory@0.4.0
donjayamanne.jupyter@1.1.4
donjayamanne.python-extension-pack@1.0.1
eamodio.gitlens@8.2.4
felipecaputo.git-project-manager@1.5.1
formulahendry.code-runner@0.9.3
jchannon.csharpextensions@1.3.0
konstantin.wrapSelection@0.6.8
magicstack.MagicPython@1.0.12
mbessey.vscode-rufo@0.1.1
minhthai.vscode-todo-parser@1.9.1
ms-python.python@2018.3.1
ms-vscode.csharp@1.14.0
ms-vscode.PowerShell@1.6.0
njpwerner.autodocstring@0.2.1
rebornix.Ruby@0.18.0
rust-lang.rust@0.4.1
shardulm94.trailing-spaces@0.2.11
spywhere.guides@0.9.1
ultradracula.captain-sweetheart@0.0.3
wholroyd.jinja@0.0.8
wmaurer.change-case@1.0.0
wwm.better-align@1.1.6
PS /home/codywd/Projects/PowerShell> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.2
PSEdition Core
GitCommitId v6.0.2
OS Linux 4.16.3-1-ARCH #1 SMP PREEMPT Thu Apr 19 09:17:56 UTC 2018
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Issue Description
This is directly related to issue #6132 with PowerShell Core (https://github.com/PowerShell/PowerShell/issues/6132)
On Arch Linux, the PowerShell integrated shell can not open without manually opening the integrated terminal (after it crashes due to this error), and typing in TERM=xterm pwsh. However, intellisense and everything else continues to not work.
Starting code from terminal with TERM=xterm code also does not work, with the same crash.
Are there any workarounds for this issue?
Attached Logs
4/25/2018 2:14:15 PM [NORMAL] - Visual Studio Code v1.22.2 64-bit 4/25/2018 2:14:15 PM [NORMAL] - PowerShell Extension v1.6.0 4/25/2018 2:14:15 PM [NORMAL] - Operating System: Linux 64-bit 4/25/2018 2:14:15 PM [NORMAL] - Language server starting – 4/25/2018 2:14:15 PM [NORMAL] - exe: /usr/bin/pwsh 4/25/2018 2:14:15 PM [NORMAL] - args: /home/codywd/.vscode/extensions/ms-vscode.powershell-1.6.0/scripts/Start-EditorServices.ps1 -EditorServicesVersion ‘1.6.0’ -HostName ‘Visual Studio Code Host’ -HostProfileId ‘Microsoft.VSCode’ -HostVersion ‘1.6.0’ -AdditionalModules @(‘PowerShellEditorServices.VSCode’) -BundledModulesPath ‘/home/codywd/.vscode/extensions/ms-vscode.powershell-1.6.0/modules’ -EnableConsoleRepl -LogLevel ‘Normal’ -LogPath ‘/home/codywd/.vscode/extensions/ms-vscode.powershell-1.6.0/logs/1524680055-f11d6665-68a6-45fc-860c-d53ca8d865661524680053653/EditorServices.log’ -SessionDetailsPath ‘/home/codywd/.vscode/extensions/ms-vscode.powershell-1.6.0/sessions/PSES-VSCode-8842-464466’ -FeatureFlags @() 4/25/2018 2:14:15 PM [NORMAL] - powershell.exe started, pid: 9227 4/25/2018 2:14:16 PM [NORMAL] - powershell.exe terminated or terminal UI was closed 4/25/2018 2:15:15 PM [NORMAL] - Language server startup failed. 4/25/2018 2:15:15 PM [ERROR] - The language service could not be started: 4/25/2018 2:15:15 PM [ERROR] - Timed out waiting for session file to appear.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 31 (6 by maintainers)
We are using the
vscode.createTerminal()overload that takes shellPath and shellArgs. However, there is an overload that takes a TerminalOptions object which allows us to set env vars before invoking the terminal. I propose that we modify the schema of additional exe paths like so:As a workaround can you try this - put this in your settings file:
Then use the default PowerShell Core 6.0.2 session.
Can you change your user setting for
powershell.developer.editorServicesLogLeveltoDiagnosticso we get some more log output during startup? Also, since PowerShell seems to be starting but then crashing, can you attach the EditorServices.log file that gets created? Instructions for that are here - https://github.com/PowerShell/vscode-powershell#2-capture-verbose-logs-and-send-them-to-us