powerplatform-vscode icon indicating copy to clipboard operation
powerplatform-vscode copied to clipboard

Listing Environments and creating profiles error

Open U2UTrainer opened this issue 3 years ago • 3 comments

Hi,

When I open the Power Platform extension window on the left side in VSCode, both the Auth Profiles and Environments & Solution keep on displaying an horizontal moving blue bar as if it is waiting for something. Also when I click "Add Dataverse Auth Profile" it asks for the Environment URL. If I type the environment URL and hit enter, nothing happens anymore....

This happens on a M1 MacBook Pro btw....

U2UTrainer avatar Jun 23 '22 12:06 U2UTrainer

I'm running into the same issue on a Windows 10 machine

ralphwest1 avatar Jun 23 '22 20:06 ralphwest1

Are you both seeing the waiting bar prior to clicking the Add Auth Profile button, or only afterwards?

If afterwards, the issue may be that the auth window is often opened up in the background, as the VS Code / nodejs process launch appears to launch that window in the background. (For Linux / Mac, this is a launch of the default web browser to the auth flow, and for Windows this is a MSAL dialog in its own window.)

tehcrashxor avatar Jun 24 '22 03:06 tehcrashxor

The two blue moving bars are shown as soon as the Power Platform extension window is opened. Also The Power Platform icon in the left-side navigation bar displays an extra clock icon as if it waiting for something.

I'm sure it is not waiting for any browser window opened in the background. If I first stop all browsers (chrome, safari) and then start VSCode and try to create an authentication profile in VSCode by clicking "Add Dataverse Auth Profile", none of by installed browsers actually launch. When I try to use the pac auth command to create an authentication profile it does launch the browser successfully and everything on the command line works as expected. But the UI of VSCode is able to see this authentication profile...

U2UTrainer avatar Jun 28 '22 06:06 U2UTrainer