petrbroz / vscode-forge-tools

Visual Studio Code extension for accessing Autodesk Forge services and content.
https://marketplace.visualstudio.com/items?itemName=petrbroz.vscode-forge-tools
MIT License
74 stars 17 forks source link

create activity buttons in panel are not working #57

Closed jeroenVerdonschot closed 1 year ago

jeroenVerdonschot commented 2 years ago

Hi,

Great extension. But I run into a problem. When I try to create a new activity, none of the buttons are working in the New Activity screen. I reinstalled the extension. The problem persists.

I have got the latest version of vscode: Version: 1.61.2 (user setup) Commit: 6cba118ac49a1b88332f312a8f67186f7f3c1643 Date: 2021-10-19T14:57:20.575Z Electron: 13.5.1 Chrome: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.19042

please help. I really want to use this extension :)

petrbroz commented 2 years ago

Thank you for the heads up! I just tried creating a new activity on my end, and both buttons seem to be working fine. My setup is:

Version: 1.61.2
Commit: 6cba118ac49a1b88332f312a8f67186f7f3c1643
Date: 2021-10-19T15:49:28.381Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 20.6.0

Are you saying that in your case none of the buttons are working? Even the "Cancel" button cannot be used to close the window, or the "magic wand" button cannot be used to auto-populate the command line field?

petrbroz commented 2 years ago

Also, could you try the webview developer tools, and see if there are any errors in the New Activity webpage?

Note that in the dev tools you'll need to switch to the corresponding iframe context:

Screen Shot 2021-11-04 at 3 15 03 PM
jeroenVerdonschot commented 2 years ago

Hi Petr,

Sorry for my delayed reply.

I made a screenshot of the developer screen.

vscode

None of the buttons are working. Also the cancel button.

I hope the screenshot helps.

thanks!

petrbroz commented 1 year ago

Thank you @jeroenVerdonschot, it looks like the vscode webview isn't able to fetch jQuery (we use Bootstrap & jQuery for all the UI). Could this be some sort of firewall issue on your side perhaps? Can you access https://code.jquery.com/jquery-3.3.1.slim.min.js directly?

petrbroz commented 1 year ago

Btw. I'm planning to reimplement all the UI using VSCode WebView UI Toolkit which would remove the Bootstrap/jQuery dependency, and hopefully resolve the issue for you.

petrbroz commented 1 year ago

Hi @jeroenVerdonschot, I have just finished a major overhaul of the UI, moving from Bootstrap/jQuery/Pug to https://github.com/microsoft/vscode-webview-ui-toolkit. Let me close this issue, and if you run into other problems, please let me know.