Windows 10 Visual Studio Code tcp server start listen on port 13603
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?
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?
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.
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.