Skip to content

"Unable to open 'File': resource is not available." when clicking on psscriptanalyzer problem #1732

Closed
@andrewducker

Description

@andrewducker

Issue Description

When I click on a warning/error/info in the "Problems" tab, it then fails to open the file (which is, by the way, already open) and gives the error
Unable to open 'File.ps1': resource is not available.
This happens with both modules and scripts.

It doesn't happen every single time, but more than 50% of the time.

image

Attached Logs

I turned logging up to Diagnostic. There was nothing coming up for this error. There were message in the analysis file for the file being opened/analysed/closed, but no errors.

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 6.1.7601
VSCode 1.30.2
PowerShell Extension Version 1.11.0

PowerShell Information

Name Value
PSVersion 5.1.14409.1018
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.14409.1018
BuildVersion 10.0.14409.1018
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
gitlens eamodio 9.4.1
json-tools eriklynd 1.0.2
PowerShell ms-vscode 1.11.0
printcode nobuhito 3.0.0
qub-xml-vscode qub 1.2.8
XMLLanguageSupport IBM 0.0.1
zenburn ryanolsonx 1.0.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions