Skip to content

Can't use PowerShell Daily without fully resolved path #4329

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

Closed
6 tasks done
TylerLeonhardt opened this issue Dec 14, 2022 · 2 comments · Fixed by #4331
Closed
6 tasks done

Can't use PowerShell Daily without fully resolved path #4329

TylerLeonhardt opened this issue Dec 14, 2022 · 2 comments · Fixed by #4331
Labels

Comments

@TylerLeonhardt
Copy link
Member

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

12/14/2022 10:34:46 AM [WARNING] - Additional PowerShell 'PowerShell Daily' not found at '~/.powershell-daily/pwsh'! 

but if I:
image

problem seems to be that node and vscode APIs don't handle ~ well

PowerShell Version

N/A

Visual Studio Code Version

Version: 1.75.0-insider
Commit: d7b1e2a1c892511a125e4ceb9758ec8ddf907775
Date: 2022-12-12T12:42:54.079Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin x64 22.1.0
Sandboxed: Yes

Extension Version

v2022.12.1

Steps to Reproduce

"powershell.powerShellAdditionalExePaths": {
      "PowerShell Daily": "~/.powershell-daily/pwsh"
    },
    "powershell.powerShellDefaultVersion": "PowerShell Daily",

reload. Get this:
image

Visuals

No response

Logs

No response

@TylerLeonhardt TylerLeonhardt added the Issue-Bug A bug to squash. label Dec 14, 2022
@ghost ghost added the Needs: Triage Maintainer attention needed! label Dec 14, 2022
@TylerLeonhardt
Copy link
Member Author

Maybe PowerShell Daily could be automatically discovered but only used if explicitly set in the powerShellDefaultVersion?

@andyleejordan
Copy link
Member

This is another reason why microsoft/vscode#46471 would be so useful because then you could just use ${userHome}, as you would expect to be able to for a VS Code setting!

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

Successfully merging a pull request may close this issue.

2 participants