oleg-shilo / codemap.vscode

Code map (syntax tree) of the active document
MIT License
85 stars 28 forks source link

<Error>No connection could be made because the target machine actively refused it #26

Closed itm-platform closed 4 years ago

itm-platform commented 4 years ago

Hi there. I get on CODEMAP EXPLORER No connection could be made because the target machine actively refused it: 127.0.0.1:18002

I opened that port on my firewall, but it had no effect

Any idea of what can be going on?

oleg-shilo commented 4 years ago

It means that the syntaxer server (syntaxer.exe) is not running as it should. Why? Hard to say. It's easier to fix it though...

There is a good chance it's all you need

itm-platform commented 4 years ago

Thanks Oleg. That didn't work. There is no syntaxer.exe running with or without VS Code open.

I have seen a syntaxer.exe in .vscode\extensions\oleg-shilo.codemap-1.10.2\bin which I tried to execute. I got this:

C:\Windows\Microsoft.NET\Framework\v4.0.30319
Probing cscs.exe ...
Probing cscs.exe failed...

Any other suggestion?

oleg-shilo commented 4 years ago

The syntaxer server is normally started by VSCode (or any other IDE that uses CS-Script engine for Intellisense).

First you need to see that it can be started without VSCode. Run this:

syntaxer -port:18002 -listen -timeout:60000 cscs_path:C:\Users\<user>\AppData\Roaming\Code\User\cs-script.user\syntaxer\<whatever version you have>\cscs.exe

Let's see if you can start the server then will decide what to do next.

itm-platform commented 4 years ago

Oh, this worked :)

C:\Users\dpire\AppData\Roaming\Code\User\codemap.user\syntaxer\1.2.1.0>syntaxer -port:18002 -listen -timeout:60000 cscs_path:C:\Users\dpire\AppData\Roaming\Code\User\cs-script.user\syntaxer\1.2.1.0\cscs.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319
Probing cscs.exe ...
Probing cscs.exe failed...
 >> Server (v1.5.1.0) Started (port=18002)
 >> Syntax engine loaded
 >> Waiting for client request...
 >> Accepted client...
 >> Reading request...
 >> Processing client request

Now I get my map image

Any workaround to make it start with VSCode? I already uninstalled/reinstalled

As a side note,\AppData\Roaming\Code\User\ doesn't exist, There is this \AppData\Roaming\Code\User\codemap.user\syntaxer\1.2.1.0

image

I could not make it collapsable/expandable, though. I will keep trying and open a different issue if I can't make it work Thanks!

oleg-shilo commented 4 years ago

But you will need to ensure that you have "codemap.textMode": true. See the https://github.com/oleg-shilo/codemap.vscode#limitations section

itm-platform commented 4 years ago

All good. Thanks Oleg!