Closed itm-platform closed 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
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?
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.
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
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
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!
Syntaxer
Great. It means the all components work correctly and it might be a deployment issue. BTW your syntaxer path is OK. Mine was from the another VSC plugin ("CS-Script"). BTW check if installing "CS-Script" resolves the situation.
Anyway, have a look at https://github.com/oleg-shilo/codemap.vscode/blob/master/src/mapper_cs.ts. This is where starting the syntaxer is implemented. May be it will give you a clue.
Collapsing
Try and see if the same C# code as below produces the same effect. Basically I expect only classes to be collapsable:
But you will need to ensure that you have "codemap.textMode": true
. See the https://github.com/oleg-shilo/codemap.vscode#limitations section
All good. Thanks Oleg!
Hi there. I get on CODEMAP EXPLORERNo 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?