forcedotcom / Einstein-GPT-for-Developers

Einstein GPT For Developers
BSD 3-Clause "New" or "Revised" License
31 stars 8 forks source link

Extension does not activate in VS Code #20

Closed bbarlow-knauf closed 11 months ago

bbarlow-knauf commented 11 months ago

I’ve installed the extension in VS Code, but it has not activated yet as I do not see the Einstein icon in the side bar. I have enable “Einstein for Developers” in the sandbox I am connected to in my sandbox org. I am using the latest version of VS Code 1.82.1 and have the latest version of the SF CLI installed as well. The other SF extensions load just fine.

leefranke commented 11 months ago

Same exact issue. I have a feeling that there will be a lot of folks trying this out today as Dreamforce has ended.

gbockus-sf commented 11 months ago

Howdy!
A few questions to help us track down why the extension isn't activating.

We've added the ability to see debug logging. If you open the settings you can turn on the debug logging with the following setting

image

After that reload VSCode and open the Developer tools with Developer: Toggle Developer Tools. If you right click the console from there you can save the log file. Please email it to gbockus@salesforce.com.

leefranke commented 11 months ago

It seems to be stuck in 'Activating'.

I do not see that small Einstein icon in the bottom right. image

I'll work on getting the debug log to export.

gbockus-sf commented 11 months ago

Thanks for the Log @leefranke. I can see where the Einstein extension is failing to activate b/c it can't find a dependency from the Salesforce CLI Integration extension. Can you verify what version of the CLI extension you have currently installed? (The latest is v58.14.2). You will find the extension version in both the Running extensions view and if you find the extension in the extensions panel.

leefranke commented 11 months ago

I'm running 57.15.0. I'll update and see if that works.

leefranke commented 11 months ago

That sort of worked. It is now running but it threw and error (at least I think it is that extension throwing the error):

Error loading webview: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..

I'll send the logs.

gbockus-sf commented 11 months ago

Nice. I created a ticket to detect the version of the CLI extension and provide guidance at activation. I did a quick google on the webview error and it seems to be an inconsistent VSCode issue. https://github.com/microsoft/vscode/issues/128649. Can you try a restart and see if it goes away?

gbockus-sf commented 11 months ago

@bbarlow-knauf can you check the version of the CLI extension you have installed when you get a few? I just want to verify it was the same issue Lee was seeing.

leefranke commented 11 months ago

The icons appear but the Einstein Sidebar does not have the prompt. I can start a different post for that issue.

bbarlow-knauf commented 11 months ago

@gbockus-sf I had an older version of the Salesforce Extension Pack. I updated all of the installed extensions and now Einstein for Developers is working for me. Thanks for the troubleshooting steps!

gbockus-sf commented 11 months ago

Closing this one as we found the issue 👍