-
Notifications
You must be signed in to change notification settings - Fork 511
VS Code does not run PowerShell jobs correctly #120
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
Hey @marksrasmussen, there may be some behavior we need to add to support PowerShell jobs. Thanks for the example script! I'll try to get this fixed for a future release. |
Just wanted to include some error information, I got bit by this bug today. Start-Job -Name testjob2 -ScriptBlock {get-process -Name "Code" | select processname,id,starttime} receive-job -name testjob2 [localhost] The background process reported an error with the following message: |
What a strange error... Not sure if it's a job problem or something else. Will look into it! |
The issue is still present in the current marketplace release (0.6.1 - 5/17/2016). |
Sorry, this item is still on the backlog. To keep track of the status of this bug, keep an eye on the Hopefully we can get it at least figured out for the next release and possibly fixed if the "fix" is simple enough. :-) I think we are shooting for a faster release frequency which may help as well. |
Having the same issue as @mcmiv413, my integration scripts actively using powershell jobs, so this will be nice to have full support of jobs in vscode-powershell. |
@rkeithhill @daviwil Just circling back on this to clean up. I am able to successfully invoke PowerShell Background Jobs on Mac OS X from the latest version of the VSCode PowerShell Extension. I'm currently running:
Cheers, |
On MacOS with VSCode 1.15.1 and PowerShell Extension version 1.4.1 and PowerShell Core Beta 5... |
Hi @GoateePFE, can you elaborate on what you mean by the F8 method? |
@tylerl0706 In the Windows PowerShell Integrated Scripting Editor (ISE), F8 became the standard shortcut to run the "current line" that the cursor is on (if there is no editor selection) or "current selection" (if there is an editor selection). So, I'm guessing that what @GoateePFE means by "F8 method" is that he's simply putting the cursor on a line with a |
@tylerl0706 The comments of @pcgeek86 are correct. |
Thanks for that guys! I can repro exactly what @pcgeek86 said. So something fixed the other scenarios but this one is still broken. We'll have to look into this. Thanks for the update! |
I bet the issue that @GoateePFE is seeing is the same bug as PowerShell/PowerShellEditorServices#554. It only happens on non-Windows systems. I know right where the issue lies (documented in the aforementioned issue and my first attempt to fix it - PowerShell/PowerShellEditorServices#557). |
@rkeithhill this issue should be fixed now with PowerShell/PowerShellEditorServices#592 But it also looks like @SeeminglyScience might be addressing an issue with that PR? |
Yup, I'd say the original issue is fixed. Close it. |
Awesome! Keep your eyes out for this in the next release! |
Regarding the |
The text was updated successfully, but these errors were encountered: