I need some help setting the extension up. I did this:
1) Installed the extension from the Marketplace,
2) Built the daScript compiler,
Specifically:
git clone https://github.com/GaijinEntertainment/daScript
cd daScript && cmake -B build && cd build && make -j8
And now I have the binary /home/andrew/daScript/bin/daScript, it passes all tests.
3) Now I enter the above path in the settings. However, the lsp doesn't seem to work
Highlighting works, but that seems to be it. No goto-definition or autocomplete.
I tried it on several projects: the das compiler itself and the samples provided in this repo to no avail.
LSP log:
language server (ls): starting server... Workspace folder: 'server'
ls: /home/andrew/.vscode/extensions/profelis.dascript-plugin-0.14.6/server/das> /home/andrew/daScript/bin/daScript /home/andrew/.vscode/extensions/profelis.dascript-plugin-0.14.6/server/das/server.das -- --port 8244
/home/andrew/.vscode/extensions/profelis.dascript-plugin-0.14.6/server/das/server.das:1334:12: *warning* defer_delete is deprecated. use var inscope instead
array<string> const = [[array<string> const data at 0x7ffde4802be8
"/home/andrew/daScript/bin/daScript" /*0x7ffde48031c2*/;
"/home/andrew/.vscode/extensions/profelis.dascript-plugin-0.14.6/server/das/server.das" /*0x7ffde48031e5*/;
"--" /*0x7ffde480323b*/;
"--port" /*0x7ffde480323e*/;
"8244" /*0x7ffde4803245*/
]]
at /home/andrew/.vscode/extensions/profelis.dascript-plugin-0.14.6/server/das/server.das:1651:4
[Info] server start: port: 8244 file: ts:Thu Jan 1 03:00:00 1970
/home/andrew/.vscode/extensions/profelis.dascript-plugin-0.14.6/server/das/server.das:1657
[Info] server at port 8244
/home/andrew/.vscode/extensions/profelis.dascript-plugin-0.14.6/server/das/server.das:1675
[Info] string heap (1): 816b. heap (1): 3.437500000kb (3520)
/home/andrew/.vscode/extensions/profelis.dascript-plugin-0.14.6/server/das/server.das:1710
[Info] string heap (1): 1.269531250kb (1300). heap (1): 3.437500000kb (3520)
/home/andrew/.vscode/extensions/profelis.dascript-plugin-0.14.6/server/das/server.das:1710
[Info] string heap (1): 1.691406250kb (1732). heap (1): 3.437500000kb (3520)
/home/andrew/.vscode/extensions/profelis.dascript-plugin-0.14.6/server/das/server.das:1710
[Info] string heap (1): 2.113281250kb (2164). heap (1): 3.437500000kb (3520)
/home/andrew/.vscode/extensions/profelis.dascript-plugin-0.14.6/server/das/server.das:1710
... And so on
It's a known issue, but I am not sure hot to fix it correctly. Shortly, increase value in this setting dascript.server.connectTimeout , till 8, maybe 10, if you use debug build maybe 20.
Hello!
I need some help setting the extension up. I did this:
1) Installed the extension from the Marketplace, 2) Built the daScript compiler,
Specifically:
And now I have the binary
/home/andrew/daScript/bin/daScript
, it passes all tests.3) Now I enter the above path in the settings. However, the lsp doesn't seem to work
Highlighting works, but that seems to be it. No goto-definition or autocomplete. I tried it on several projects: the das compiler itself and the samples provided in this repo to no avail.
LSP log:
Any suggestions?