Perl-LanguageServer icon indicating copy to clipboard operation
Perl-LanguageServer copied to clipboard

Windows 10 Visual Studio Code tcp server start listen on port 13603

Open Curtis-Lockley opened this issue 2 years ago • 3 comments

I am new to Perl and am trying to run a simple hello world program as shown below.

#!/usr/bin/perl
use warnings;
print("Hello, World!\n");

However, visual studio code will only show the below errors in the console.

tcp server start listen on port 13603
[Info  - 9:47:57 PM] Connection to server got closed. Server will restart.
tcp server start listen on port 13603
[Info  - 9:47:57 PM] Connection to server got closed. Server will restart.
tcp server start listen on port 13603
[Info  - 9:47:58 PM] Connection to server got closed. Server will restart.
tcp server start listen on port 13603
[Info  - 9:47:58 PM] Connection to server got closed. Server will restart.
tcp server start listen on port 13603
[Error - 9:47:59 PM] Connection to server got closed. Server will not be restarted.

What can I do to fix it?

Curtis-Lockley avatar Aug 25 '23 21:08 Curtis-Lockley

Could it be that there is already a Perl::LanguageServer running? You you try to take look in the task manager? WHich version you are running? Which version of Perl? Do you run on native windows or inside the Linux Subsystem? Can you set the LogLevel to 2 and post the output here?

richterger avatar Sep 23 '23 17:09 richterger

Hi I run strawberry perl on Windows 11, and also get this error. I have no other instance to my knowledge. Here is the loglevel 2 information.

##### 0 #####
 running: {} coros: {}
LS: start aio read, buffer len = 0
LS: start aio read, buffer len = 0
tcp server start listen on port 13603
[Info  - 11:29:34 AM] Connection to server got closed. Server will restart.
##### 0 #####
 running: {} coros: {}
LS: start aio read, buffer len = 0
LS: start aio read, buffer len = 0
tcp server start listen on port 13603
[Info  - 11:29:34 AM] Connection to server got closed. Server will restart.
##### 0 #####
 running: {} coros: {}
LS: start aio read, buffer len = 0
LS: start aio read, buffer len = 0
tcp server start listen on port 13603
[Info  - 11:29:35 AM] Connection to server got closed. Server will restart.
##### 0 #####
 running: {} coros: {}
LS: start aio read, buffer len = 0
LS: start aio read, buffer len = 0
tcp server start listen on port 13603
[Info  - 11:29:35 AM] Connection to server got closed. Server will restart.
##### 0 #####
 running: {} coros: {}
LS: start aio read, buffer len = 0
LS: start aio read, buffer len = 0
tcp server start listen on port 13603
[Error - 11:29:36 AM] Connection to server got closed. Server will not be restarted.

dignin avatar Oct 18 '23 09:10 dignin

Sorry, no idea what issue here is, but native windows is anyway not fully supported due to issues with stdin/stdout. Maybe you could use the windows subsystem for linux.

richterger avatar Nov 24 '23 18:11 richterger