sassoftware / vscode-sas-extension

This SAS Extension for Visual Studio Code provides support for the SAS language, including features such as SAS syntax highlighting, code completion, hover help, code folding, outline, SAS code snippets and run SAS code.
https://sassoftware.github.io/vscode-sas-extension/
Apache License 2.0
121 stars 49 forks source link

Windows connectivity issues #215

Closed scottdover closed 1 year ago

scottdover commented 1 year ago

Describe the bug In doing some testing for the 0.1.3 release, there were a few issues discovered around connectivity that were only present on a windows machine.

Steps to reproduce Scenario 1 (clicking the "Sign in" button with no profile)

Expected behavior

Environment (please complete the following information): Client OS: Windows Extension version: main (https://github.com/sassoftware/vscode-sas-extension/commit/ff2acf77720189f7d41cde5adb565efad67a0690) SAS version: Viya mwf/tth builds

Additional context

scottdover commented 1 year ago

It looks like there are oddities with how credential storing works on Windows. See the following:

At the moment, this issue only comes up when a user has multiple profiles and is using Windows. A workaround is to clear out vscode's cache using the following script:

cmdkey /list | Select-String -Pattern "LegacyGeneric:target=(vscode.+)" | ForEach-Object { cmdkey.exe /delete $_.Matches.Groups[1].Value }

@scnwwu, do you mind adding a comment or editing this one providing more detail on how this can be resolved using Windows Credential Manager

scnwwu commented 1 year ago

To clear the credentials for SAS extension only, open Control Panel\All Control Panel Items\Credential Manager, click Windows Credentials, find items start with vscodesas, click Remove.

scnwwu commented 1 year ago

The dependent VS Code issue has been fixed. It should no longer be a problem in latest VS Code.