-
Notifications
You must be signed in to change notification settings - Fork 510
Powershell integrated terminal in VSCode doesn't start up. #1422
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
see #1421 ./modules/PowerShellEditorServices/Start-EditorServices.ps1:227 replace $mode = stat -c "%A" $PipeFile to $mode = stat -c "%a" $PipeFile |
Awesome, thanks. Seems to have fixed it. I also replaced the other occurrence of |
@Diederikjh Maybe only linux need fix. |
Your probably right. The debugger sometimes seems to crash on me. Not sure if it is related to the above changes. Attached logs of crash (folder in zip file with name 1531297271-01474be5-727d-4a9f-99e3-32a83afee6f41531297269484 probably good place to start looking) |
@Diederikjh, @fcharlie Can you please update your extension to 1.8.1 (just released then) and see if this issue is fixed? |
Looks good for now. Terminal starts up, and debugging looks more stable. |
I think this has regressed. I'm getting When starting a PowerShell debugger. Powershell Extension version is 1.8.4. VS Code version is 1.27.2 |
@Diederikjh The last change was this one to use the full path of the Can you try changing the file back to just |
Just tried that:
Same behavior unfortunately. |
Hmmm, as far as I know that behaviour hasn’t been changed otherwise. Have you upgraded PowerShell version? |
There hasn't been any other changes to that area. Did you update your Mac recently? If you do Do you get the expected value? Should be a 3 digit number. |
I'm running on Ubuntu. |
And what about just:
Since that's the actual code path you're going through. I expect it to be the same |
Yep, the same. Ive tried reproducing this issue in another system, and can't. Only difference I can see is the VSCode version where it does work is a bit older: 1.27.1 Both systems Ubuntu |
Hmmm... Do you happen to remember how you opened vscode? With the |
GUI on both systems.
|
I wonder if there's a bug in vscode where we don't have access to the path anymore... If you open in via a terminal, does that change anything? |
Starting from console (on both systems) has same behavior. |
Can you paste the contents of |
From system where it doesn't work: (On system where it does work: |
I just did a diff of the two:
So it's not a change in Start-EditorServices.ps1 that's caused it I don't think. Might be worth putting a Can you post the result of the following commands:
I've been developing PSES chiefly from an Ubuntu 18.04 LTS machine recently and really not sure what would be causing this to occur in your environment. |
All of above same as system where it works |
I didn't notice this before, but when starting up the PowerShell terminal it complains:
Obviously those files doesn't exist. |
Is there something unusual about the |
Doesn't look like it.
|
So I have no idea what changed, but had to do some pwsh development today, and everything seem to work as expected. A VSCode or plugin (or system?) upgrade must have fixed it along the line. |
I'm still mystified by this -- we tried reproducing it several times on different Linux platforms but couldn't. Good to know it's working @Diederikjh -- let us know if it stops again. |
Hi! I'm in the future but I had this issue while attaching vscode with the powershell extension to an Alpine-based container (we needed to debug some pwsh there) and I "fixed" it just copying Error:
"fix" (in my dockerfile):
|
We no longer rely on stat in the PowerShell Preview (coming to Stable next month) So you shouldn't have to do this if you use that. 😊 |
I have this issue on the Temporary Powershell Integrated Console when I click Debug.
After a while I get a timeout waiting for the powershell extension to start pop up. I am on Ubuntu 18.04.4 LTS |
@solomonsunder please read this comment above yours: |
@TylerLeonhardt @rjmholt Thanks. It works with Powershell Preview, though it does give some error while firing up.
By the way, is it expected behavior for the TEMP Powershell Integrated Console to not have the modules that was imported into the original console? For eg I had to put Import-Module AWSPowerShell.NetCore in the script. |
Absolutely; the TEMP console is supposed to be a clean session.
That's a worry. Can you open a new issue for that with the full error message and the output of |
If you use PowerShell 7, this will go away... but I also have PR out to fix this: |
System Details
$PSVersionTable
: (see below)Issue Description
I had a working Powershell integrated terminal and debugger just yesterday, using the old version of the Powershell extension.
VS code had a non clean exit (As my system locked up).
This morning I started Visual Studio Code and the integrated terminal doesn't work. Neither does the debugger. The Powershell extension also updated today.
After the terminal tries to launch it shows:
PowerShell Integrated Console Permissions to the pipe file were not set properly. Expected: 600 Actual: srw------- for file: /tmp/CoreFxPipe_PSES_5b0a428f-e0b7-4e90-b8c8-d0a44966a752
And after a while the terminal closes. Logs below:
the
pwsh
app seems to work fine in normal bash.I tried to delete all the pipe like files with the following command:
rm /tmp/CoreFxPip*
in the hope that it would re-create them correctly, but that didn't make a difference.I tried to set the permissions correctly on the file it was complaining about (by running
chmod 600
on the file it was complaining about) but that doesn't seem to work: it seems to re-create the files with incorrect permissions.Running VSCode as root doesn't seem to help either (glad it is very loud about warning the user not to do this).
I did find this old issue but this seems to be more windows specific.
Attached Logs
Verbose logs attached.
logs.zip
The text was updated successfully, but these errors were encountered: