-
Notifications
You must be signed in to change notification settings - Fork 500
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
vscode-powershell
messes up Microsoft.Graph.Authentication
#5053
Comments
We've found some similar issues:
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
|
Thanks for your submission! |
@o-l-a-v as a community member I cannot answer that question, but the Az, Microsoft.Graph, and Vscode-powershell team members are part of separate organizations within Microsoft. I want to be clear I closed it as a duplicate of the other issue, but the other issue is open and is definitely a known thing we'd like to address if possible, because it frustrates me just as much as it does you too :) PowerShell is fairly unique as a .NET application by having "plug-ins" in the forms of modules, and the tools to isolate those dependencies and make them play nice with each other aren't super mature in .NET just by virtue of most people not needing them, either because they use an IPC for communication between different .NET processes, or plugins are forced to use the same assemblies. |
I deleted the comment @JustinGrote replied to as I started doing deeper research into where I should send this feedback. For context, here is what I wrote: I quickly read through linked thread. Seems Az has issues with vscode-powershell due to inproper dependency isolation. Microsoft.Graph too then I guess. It's easy to close this vscode-powershell issue and blame it on other parts of the stack. And it might not be up to vscode-powershell to solve, I get that. What I then want to know is: What's the progress on having Microsoft modules play nice with the Microsoft official way of authoring PowerShell scripts these days? Do you have any insight on that? This should probably be a combined effort between vscode-powershell, Az and Microsoft.Graph authors/maintainers. The experience of using VSCode with a regular pwsh terminal is not as nice. Many times running multiple lines in a script file with F8 fails, because all info did not get sent to the terminal before it tries to execute. |
Prerequisites
Summary
Related issue:
I can't get the following to work from a
vscode-powershell
terminal, but it works in a barebone PowerShell v7.4.5 terminal, and the same PowerShell version through Windows Terminal.In VSCode this throws:
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: