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

"Add Auth Profile" button is not doing anything #840

Open
SEMoslaw opened this issue Feb 9, 2024 · 2 comments
Open

"Add Auth Profile" button is not doing anything #840

SEMoslaw opened this issue Feb 9, 2024 · 2 comments

Comments

@SEMoslaw
Copy link

SEMoslaw commented Feb 9, 2024

I'm trying this in my VS Code on my PC and Laptop both having the same issue. Not sure what might be the problem. I've reinstalled .net and this extension like some people suggested and also made sure that window is not hidden anywhere but had no luck.

@wsperger
Copy link

wsperger commented May 1, 2024

Issue Description

I have experienced this issue on several machines on several accounts and its sadly blocking me from using this awesome extension.

Context

The issue manifests across multiple machines, suggesting a systemic problem rather than an isolated configuration error. It also aligns with previously reported issues:

In both instances, the proposed solutions were:

  1. Checking for the authentication pop-up window behind the Visual Studio Code window.
  2. Ensuring the installation of .NET 6.
  3. There is "missing code / not installed":

There I eventually identified that the pac executable was not getting installed on my system. (I have no idea why!) Luckily, I had a backup from a previous system that I was able to grab the old extension install and copy it to my new system.

If the bug cant be fixed, would it be possible to provide the missing code, i tried comparing the repo code and the installed code, but couldnt find differences or the pac file mentioned.

Despite applying these solutions—verifying the absence of obscured windows and confirming the installation of the required .NET versions—the problem persists.

System Configuration and Commands Executed

Here are the outputs from the system showing the installed .NET versions and the successful creation of authentication profiles:

PS H:\Backup\Besper - RAG> dotnet --list-sdks
6.0.421 [C:\Program Files\dotnet\sdk]
7.0.403 [C:\Program Files\dotnet\sdk]

PS H:\Backup\Besper - RAG> pac auth create --environment c83f2d2a-574f-eda2-afd5-fac4ef2d564b
'[email protected]' authenticated successfully.
Validating connection...
Connected to... Dev
Default organization: Dev
Authentication profile created
    * UNIVERSAL: WolfgangSperger@[Redacted] Public https://[Redacted].crm16.dynamics.com/   

PS H:\Backup\Besper - RAG> pac auth list
Index Active Kind Name User Cloud Type Environment Environment Url
[1] UNIVERSAL WolfgangSperger@[Redacted] Public User BesperAi (default) https://[Redacted].crm16.dynamics.com/
[2] * DATAVERSE [Redacted] WolfgangSperger@[Redacted] Public User Development https://[Redacted].crm.dynamics.com/
[3] * UNIVERSAL WolfgangSperger@[Redacted] Public User Dev https://[Redacted].crm16.dynamics.com/

The systems used were all windows 11.

In the image you can see the loading screen which despite the auth profiles does not show anything:
image

@wsperger
Copy link

wsperger commented May 1, 2024

Update:
After restarting visual studio again after creating the auth profiles via the command line, the profiles all showed up.

So the solution is to run the commands listed above and then restart.

But still, might be cool to fix this :)

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

2 participants