Language server hangs on Windows
5nord opened this issue · comments
Matthias Simon commented
Describe the bug
When the language server is started it hangs at:
Scanning "file:///c%3A/SomePath/" for possible TTCN-3 suites
To Reproduce
Steps to reproduce the behavior:
- On Windows install and update language server version 0.9.3 with vscode-ttcn3 extension
- Open any TTCN-3 file
3a. Task-Manager should show ~20% CPU usage of ntt-process
3b. Execute any request. ntt should ignore it. For example "TTCN-3: Show language server status"
Expected behavior
ntt should not use 20% CPU nor hang.
Possible fixes
ntt has two places where it searches towards file system root. It's possible at least one of those places cannot handle drive letter "C:" correctly and loops indefinitely.