nicollasricas / vscode-deck

Enables Stream Deck integration with Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=nicollasr.vscode-streamdeck
MIT License
82 stars 11 forks source link

Not connecting #44

Open wabiloo opened 1 year ago

wabiloo commented 1 year ago

Hi,

I'm trying to use the extension in my Visual Code, but it's not connecting. The status bar shows "Deck | Connecting".

I'm using Visual Studio Code 1.74.3 on Mac. Version of your extension is v4.1.6

StreamDeck v6.0.2 Plugin v5.1.3

I'm working locally (no SSH)

I don't see any error in the JS Console. Looking at the Output for StreamDeck in VS, I see it constantly connecting and disconnecting:

[2/2/2023, 1:49:10 PM] Connecting to Stream Deck
[2/2/2023, 1:49:10 PM] Registering session 23707a89-7aff-460c-ae65-1a5388ab26841675345749453
[2/2/2023, 1:49:10 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:11 PM] Configuration changed, restarting...
[2/2/2023, 1:49:11 PM] Connecting to Stream Deck
[2/2/2023, 1:49:11 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:11 PM] Activation requested to 23707a89-7aff-460c-ae65-1a5388ab26841675345749453
[2/2/2023, 1:49:15 PM] Connecting to Stream Deck
[2/2/2023, 1:49:15 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:16 PM] Connecting to Stream Deck
[2/2/2023, 1:49:16 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:20 PM] Connecting to Stream Deck
[2/2/2023, 1:49:20 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:21 PM] Connecting to Stream Deck
[2/2/2023, 1:49:21 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:25 PM] Connecting to Stream Deck
[2/2/2023, 1:49:25 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:26 PM] Connecting to Stream Deck
[2/2/2023, 1:49:26 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:30 PM] Connecting to Stream Deck
[2/2/2023, 1:49:30 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:31 PM] Connecting to Stream Deck
[2/2/2023, 1:49:31 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:35 PM] Connecting to Stream Deck
[2/2/2023, 1:49:35 PM] Disconnected from Stream Deck. Reconnecting in 5 seconds.
[2/2/2023, 1:49:36 PM] Connecting to Stream Deck

Any idea?

wabiloo commented 1 year ago

It seems that all it needed was a reboot...

leeahoward commented 1 year ago

I have noticed that if I restart the stream deck software vscode will not reconnect until I reboot or change the port in vscode and the sd plugin. There is an error in the sd plugin log that says address is in use.

wabiloo commented 1 year ago

Same behaviour here

nicollasricas commented 1 year ago

@leeahoward are you also on Mac?

jfessard commented 1 year ago

I also see the same on M1 Max Mac. It constantly tries to connect and fails (in Vscode log)

leeahoward commented 1 year ago

Yes I am

On Mon, Mar 20, 2023, 7:32 AM Nicollas R. @.***> wrote:

@leeahoward https://github.com/leeahoward are you also on Mac?

— Reply to this email directly, view it on GitHub https://github.com/nicollasricas/vscode-deck/issues/44#issuecomment-1476062564, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG35IU7TWILAJPVFR7QHQLW5A53RANCNFSM6AAAAAAUPBT3XU . You are receiving this because you were mentioned.Message ID: @.***>

Latent-code commented 7 months ago

I have noticed that if I restart the stream deck software vscode will not reconnect until I reboot or change the port in vscode and the sd plugin. There is an error in the sd plugin log that says address is in use.

I have this problem too, but i cant seem to figure out how to get it to connect..

Stream Deck for Visual Studio Code v4.1.6 VS Code Version: 1.86.0 Stream Deck plugin version 5.1.2

I'm working locally (no SSH)

I tried rebooting Stream Deck, laptop and VS code with no luck so far.

Any tips?

[08/02/2024, 14:43:05] Connecting to Stream Deck [08/02/2024, 14:43:05] Disconnected from Stream Deck. Reconnecting in 5 seconds. [08/02/2024, 14:43:05] Connecting to Stream Deck [08/02/2024, 14:43:05] Disconnected from Stream Deck. Reconnecting in 5 seconds. [08/02/2024, 14:43:05] Connecting to Stream Deck [08/02/2024, 14:43:05] Disconnected from Stream Deck. Reconnecting in 5 seconds. [08/02/2024, 14:43:08] Activation requested to a119aec7-180c-4637-bc85-e92d1c4111ee1707399709193 [08/02/2024, 14:43:10] Connecting to Stream Deck [08/02/2024, 14:43:10] Connecting to Stream Deck [08/02/2024, 14:43:10] Disconnected from Stream Deck. Reconnecting in 5 seconds. [08/02/2024, 14:43:10] Disconnected from Stream Deck. Reconnecting in 5 seconds. [08/02/2024, 14:43:10] Connecting to Stream Deck [08/02/2024, 14:43:10] Disconnected from Stream Deck. Reconnecting in 5 seconds. [08/02/2024, 14:43:10] Connecting to Stream Deck [08/02/2024, 14:43:10] Disconnected from Stream Deck. Reconnecting in 5 seconds. [08/02/2024, 14:43:10] Connecting to Stream Deck [08/02/2024, 14:43:10] Disconnected from Stream Deck. Reconnecting in 5 seconds. [08/02/2024, 14:43:15] Connecting to Stream Deck [08/02/2024, 14:43:15] Connecting to Stream Deck [08/02/2024, 14:43:15] Disconnected from Stream Deck. Reconnecting in 5 seconds. [08/02/2024, 14:43:15] Disconnected from Stream Deck. Reconnecting in 5 seconds. [08/02/2024, 14:43:15] Connecting to Stream Deck [08/02/2024, 14:43:15] Disconnected from Stream Deck. Reconnecting in 5 seconds. [08/02/2024, 14:43:15] Connecting to Stream Deck

notrobpike commented 1 week ago

Same problem, which never occured for me before. I opened #57 for it. I guess I'll let maintainer decide to keep that one open or close as duplicate. Problem is clearly that the SD plugin doesn't open a listening port -- nothing to do with vscode per se AFAICT. If someone knows where the logs for the plugin end up that might be helpful.

It does work for me on other machines. I can't figure out the difference between working and not-working.

notrobpike commented 1 week ago

Clearly this is not OP's issue, since they were using 5.1.3. However, it worked for me when updating the SD plugin 5.1.2->5.1.3. Maybe that helps others such as @Latent-code that also got tripped up with the way this is distributed.

https://github.com/nicollasricas/vscode-deck/issues/57#issuecomment-2319380685