-
Notifications
You must be signed in to change notification settings - Fork 511
FailFast: The terminfo database is invalid (Integrated Terminal) #1288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report! Can you try adding this to your user settings? "powershell.powerShellAdditionalExePaths": [
{
"versionName": "with-xterm-env-var",
"exePath": "TERM=xterm pwsh"
}
] and then also add this: "powershell.powerShellDefaultVersion": "with-xterm-env-var" I'm hoping the right environment variable gets set for you in the Integrated Console process. |
Is this much different than setting PowerShell.PowershellExePath to TERM=xterm pwsh? I tried that and received an error stating the executable wasnt found at that path. I also tried setting it to TERM=xterm /use/bin/pwsh with the same result. I am away from my computer at the moment, but I will try this tomorrow |
interesting. Should be the same result but worth a shot. |
Seems like this is fixed upstream. The next update should solve this. |
@tylerl0706 Just got around to testing this and it still fails with the same error. This is exactly what I typed in user settings
@dargmuesli dotnet seems to work, but PowerShell still crashes with this. |
I think we may need to add another property in that json called |
@tylerl0706 If this is done, please let me know and I'll definitely implement it in my VSCode immediately. I'll try any beta builds for this fix as well. I also forgot to mention, this same error occurs on VSCode 1.23 (which probably would have made a difference anyway) Another quick update, I looked at the session log for the latest launch and the following error is shown:
Another update, Setting |
Yeah, the extension code is being too clever and trying to verify the "file" at the exePath exists. :-( We could change that - treat this setting as a "sharp stick" kind of setting. |
@rkeithhill I like that! Especially since adding env vars to PSES is very rare. We could have a small addition to the description that says "supports passing environment variables: FOO=1 pwsh" Looks like the check is here: I think we might be able to just remove that check and things should work for this scenario. I wonder what error message is thrown when you DO supply a wrong path. This is a relatively trivial change if @codywd you (or anyone else lurking) would like to give it a try! Otherwise @rkeithhill or I can get to it. |
We are using the
As a workaround can you try this - put this in your settings file:
Then use the default PowerShell Core 6.0.2 session. |
@rkeithhill I definitely liked the
Idea more than removing the check. It's polished and feels less "hacky" to me. +1 for adding env! |
Hi.
Errors in log:
What else can I try to do? |
Try it with these settings - note there is no
From my experiments in Windows, this creates the PowerShell Integrated Console with the specified environment variables defined. |
Nope, that did not help me:
|
Can you change your user setting for |
Very strange, but |
The important log file we need is the EditorServices.log file. Look under your |
Hmm... Let me check to see if we are writing it to a different location on Linux. @tylerl0706 where do the extension log files go on your Mac? |
I know. But he's not there. |
@avbor Is PowerShell Core supported on Fedora 28? From this list of PS Core installs I only see 25 and 26 as supported. Can you manually start PowerShell Core with
Does anything of interest get output to the console? |
Supported or now - i dont know =) |
Sorry, can you run this instead? I just changed the log level to Diagnostic so we will see more info. |
|
This should theoretically be fixed in upstream versions of PowerShell built on top of .NET Core 2.1. Unfortunately, there is no released version that fits that bill (6.1.0-preview.3 will be the first release to switch to .NET Core 2.1), but according to @rjmholt, the Arch installation uses the latest In any case, if it is fixed, I'm not sure that implementing |
See PowerShell/PowerShell#6132 for the PowerShell issue summary. I've verified that this is fixed for Fedora 28 too. If you're very keen on testing it, building should work from PowerShell On the note of including an environment variable configuration, I can imagine that being useful in other scenarios too and @rkeithhill's suggested implementation looks pretty sane. |
I'm just trying to find a quick and easy way to get around this problem without manual recompilation from source. =) |
Unfortunately I don't think there's any way to set an environment variable for the PowerShell process being run by the service at the moment. And that's the only workaround I know of. |
@rjmholt Yes, all work fine since preview 3 =) |
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 Create Yeoman generator for PowerShell projects #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
Issue Description
This is directly related to issue #6132 with PowerShell Core (PowerShell/PowerShell#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.
The text was updated successfully, but these errors were encountered: