Skip to content
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

Editing scripts.ps1 fails with error #32

Open
JessePeden opened this issue Jun 4, 2024 · 1 comment
Open

Editing scripts.ps1 fails with error #32

JessePeden opened this issue Jun 4, 2024 · 1 comment

Comments

@JessePeden
Copy link

JessePeden commented Jun 4, 2024

Trying to edit scripts.ps1 through the PSU VS Code extension, using the button at the top of the AUTOMATION frame, results in the following error:

Error running command powershell-universal.openScriptConfigFile: cannot open file:///c%3A/ProgramData/UniversalAutomation/Repository/.universal/scripts.ps1. Detail: Unable to read file 'c:\ProgramData\UniversalAutomation\Repository\.universal\scripts.ps1' (Error: Unable to resolve nonexistent file 'c:\ProgramData\UniversalAutomation\Repository\.universal\scripts.ps1'). This is likely caused by the extension that contributes powershell-universal.openScriptConfigFile.

The same button in the other frames (such as for APIS) works as it should.

Oddly enough, opening the scripts.ps1 file from the CONFIGURATION frame and navigating to the .universal sub-folder (the same path that should be used to open the scripts.ps1 file with the aforementioned button) works just fine.

@JessePeden
Copy link
Author

@adamdriscoll This is still an issue with the most recent release of the VS Code extension, fyi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant