arnoudkooi / sn-scriptsync

Use sn-scriptsync in combination with SN Utils to be able to code in VS Code, including all benefits of a full fledged code editor
https://marketplace.visualstudio.com/items?itemName=arnoudkooicom.sn-scriptsync
Other
43 stars 28 forks source link

Issue with connecting Vendor Instance to VS Code Websocket #103

Open JamesYoung-Nuvolo opened 5 hours ago

JamesYoung-Nuvolo commented 5 hours ago

I open VS Code, open folder, enable sn-scriptsync server. I open my instance, open SN Utils Extension, to validate that Settings > Enable sn-scriptsync buttons (VS Code): is set to true/checked. I navigate to a Script (Scheduled Job) in my instance. I right-click, SN Utils > open Helper Tab. image

The helper tab says the Web Socket connection failed. image

I select Save Icon next to Script field, and then open Helper Window, asking me to allow scriptsync to connect with my instance. image

And I select allow.

I nav back to Script, select save icon, nothing happens. I refresh page, select save icon, nothing happens.

I'm not sure what I'm missing here.

arnoudkooi commented 5 hours ago

do you see an error in the terminal of vs code (not exacrly sure shat tab to check)

JamesYoung-Nuvolo commented 1 hour ago

No, I'm not seeing any activity, at all, in VS Code.

arnoudkooi commented 57 minutes ago

Should probably be in the Output > Extension Host section And obviously sn-scriptsync must be running... Code20241114 - 2244

JamesYoung-Nuvolo commented 40 minutes ago

Yup, sn_scriptsync is running.

image

Retesting helper page and save to VS Code from SN instance. Upon opening helper page: image &&

image

Then clicking save on Script field: image

I see an update in Helper page: image

On that page, I select Allow. And the Activity tab in helper page updates: image

Nav back to instance, on Script page, and save is "grayed out" image

But, I re-select save, again, anyway: Nothing happens.

Refresh instance, save button is back to being selectable: image

Select it again: It goes back to grayed out, but nothing else happens: image

image image

Because the Helper page says no allowed instances, I refresh the helper page: I see this popup: image

Select Reload. And then I see that my instance is allowed: image

But there is no connection to the websocket: image

And all that time, there isn't any change in the Output in VS Code: image

All in all, I'm really not sure what's going on.