vscode-powershell: PowerShell Integrated Console crashes upon startup
System Details
- Operating system name and version: macOS High Sierra 10.13.6
- VS Code version: 1.25.1
- PowerShell extension version: 1.8.1
- Output from
$PSVersionTable:
PSVersion 6.1.0-preview.2 PSEdition Core GitCommitId v6.1.0-preview.2 OS Darwin 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X… Platform Unix PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0
Unable to get following information due to crash:
code -v
$pseditor.EditorServicesVersion
code --list-extensions --show-versions
$PSVersionTable
Issue Description
Upon startup of VS Code and loading of a PS Script the integrated console tries to start. Immediately the following happens:
PowerShell Integrated Console
stat: cannot read file system information for ‘%A’: No such file or directory
Permissions to the pipe file were not set properly. Expected: 600 Actual: File: “/var/folders/s0/4w848hkn4wj44s5gwc2pgsmh0000gn/T/CoreFxPipe_PSES_08e5bc47-6a7a-4bf0-a6d3-29382d684af4” ID: 100000400000018 Namelen: ? Type: apfs Block size: 4096 Fundamental block size: 4096 Blocks: Total: 61202533 Free: 29361808 Available: 28934011 Inodes: Total: 9223372036854775807 Free:9223372036853114215 for file: /var/folders/s0/4w848hkn4wj44s5gwc2pgsmh0000gn/T/CoreFxPipe_PSES_08e5bc47-6a7a-4bf0-a6d3-29382d684af4
With a message “The language service could not be started:”
Tested with both, PS 6.1.0 Preview 2 and 6.0.3
The permissions of the mentioned file above: srw------- 1 adrian staff 0 Jul 20 11:47 CoreFxPipe_PSES_08e5bc47-6a7a-4bf0-a6d3-29382d684af4
Attached Logs
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (9 by maintainers)
I just tried on Fedora 28…
stat -f "%A" $pipeNamegives exactly what your log says. That’s the problem.I think for macOS we should add the path to stat (
/usr/bin/stat) to prevent the issue you’re running into.