Comments (2)
To help with debugging, I recompiled vls
without -prod
:
[Info - 10:53:20 PM] VLS Version: 0.0.1, OS: macos 64
[Info - 10:53:20 PM] Client / Editor: Visual Studio Code 1.55.1
V panic: as cast: cannot cast `v.ast.StringLiteral` to `v.ast.Ident`
0 vls 0x00000001028807d0 __as_cast + 400
1 vls 0x00000001028d1e57 v__ast__SelectorExpr_root_ident + 151
2 vls 0x0000000102991ac6 vls__CompletionItemConfig_completion_items_from_expr + 1030
3 vls 0x0000000102994df8 vls__Vls_completion + 3768
4 vls 0x00000001029a1d85 vls__Vls_dispatch + 1749
5 vls 0x00000001029a277d vls__Vls_start_loop + 141
6 vls 0x00000001029a4afc main__run_cli + 1292
7 vls 0x00000001028b7b89 cli__Command_parse_commands + 1369
8 vls 0x00000001028b6df2 cli__Command_parse + 290
9 vls 0x00000001029a4fc5 main__main + 1077
10 vls 0x00000001029a83aa main + 42
11 vls 0x0000000102859764 start + 52
12 ??? 0x0000000000000001 0x0 + 1
[Info - 10:53:25 PM] Connection to server got closed. Server will restart.
[Error - 10:53:25 PM] Request textDocument/codeLens failed.
Error: Connection got disposed.
at Object.connectionOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:1045:52)
at Object._clientOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2414:123)
at w.fillInitializeParams (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2432:27)
at w.this [as handleConnectionClosed] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/node/main.js:158:15)
at t (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2413:45)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.timer [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at Y (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:274:33)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.partialMessageEmitter [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at m.fireClose (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:43:21)
at Socket.<anonymous> (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:131:45)
at Socket.emit (events.js:327:22)
at Pipe.<anonymous> (net.js:674:12)
[Error - 10:53:26 PM] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.connectionOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:1045:52)
at Object._clientOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2414:123)
at w.fillInitializeParams (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2432:27)
at w.this [as handleConnectionClosed] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/node/main.js:158:15)
at t (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2413:45)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.timer [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at Y (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:274:33)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.partialMessageEmitter [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at m.fireClose (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:43:21)
at Socket.<anonymous> (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:131:45)
at Socket.emit (events.js:327:22)
at Pipe.<anonymous> (net.js:674:12)
[Info - 10:53:26 PM] VLS Version: 0.0.1, OS: macos 64
[Info - 10:53:26 PM] Client / Editor: Visual Studio Code 1.55.1
V panic: as cast: cannot cast `v.ast.StringLiteral` to `v.ast.Ident`
0 vls 0x00000001091747d0 __as_cast + 400
1 vls 0x00000001091c5e57 v__ast__SelectorExpr_root_ident + 151
2 vls 0x0000000109285ac6 vls__CompletionItemConfig_completion_items_from_expr + 1030
3 vls 0x0000000109288df8 vls__Vls_completion + 3768
4 vls 0x0000000109295d85 vls__Vls_dispatch + 1749
5 vls 0x000000010929677d vls__Vls_start_loop + 141
6 vls 0x0000000109298afc main__run_cli + 1292
7 vls 0x00000001091abb89 cli__Command_parse_commands + 1369
8 vls 0x00000001091aadf2 cli__Command_parse + 290
9 vls 0x0000000109298fc5 main__main + 1077
10 vls 0x000000010929c3aa main + 42
11 vls 0x000000010914d764 start + 52
12 ??? 0x0000000000000001 0x0 + 1
[Info - 10:53:26 PM] Connection to server got closed. Server will restart.
[Error - 10:53:26 PM] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.connectionOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:1045:52)
at Object._clientOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2414:123)
at w.fillInitializeParams (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2432:27)
at w.this [as handleConnectionClosed] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/node/main.js:158:15)
at t (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2413:45)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.timer [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at Y (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:274:33)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.partialMessageEmitter [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at m.fireClose (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:43:21)
at Socket.<anonymous> (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:131:45)
at Socket.emit (events.js:327:22)
at Pipe.<anonymous> (net.js:674:12)
[Error - 10:53:26 PM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
at Object.connectionOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:1045:52)
at Object._clientOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2414:123)
at w.fillInitializeParams (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2432:27)
at w.this [as handleConnectionClosed] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/node/main.js:158:15)
at t (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2413:45)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.timer [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at Y (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:274:33)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.partialMessageEmitter [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at m.fireClose (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:43:21)
at Socket.<anonymous> (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:131:45)
at Socket.emit (events.js:327:22)
at Pipe.<anonymous> (net.js:674:12)
[Info - 10:53:26 PM] VLS Version: 0.0.1, OS: macos 64
[Info - 10:53:26 PM] Client / Editor: Visual Studio Code 1.55.1
V panic: as cast: cannot cast `v.ast.StringLiteral` to `v.ast.Ident`
0 vls 0x0000000107a867d0 __as_cast + 400
1 vls 0x0000000107ad7e57 v__ast__SelectorExpr_root_ident + 151
2 vls 0x0000000107b97ac6 vls__CompletionItemConfig_completion_items_from_expr + 1030
3 vls 0x0000000107b9adf8 vls__Vls_completion + 3768
4 vls 0x0000000107ba7d85 vls__Vls_dispatch + 1749
5 vls 0x0000000107ba877d vls__Vls_start_loop + 141
6 vls 0x0000000107baaafc main__run_cli + 1292
7 vls 0x0000000107abdb89 cli__Command_parse_commands + 1369
8 vls 0x0000000107abcdf2 cli__Command_parse + 290
9 vls 0x0000000107baafc5 main__main + 1077
10 vls 0x0000000107bae3aa main + 42
11 vls 0x0000000107a5f764 start + 52
12 ??? 0x0000000000000001 0x0 + 1
[Info - 10:53:26 PM] Connection to server got closed. Server will restart.
[Error - 10:53:26 PM] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.connectionOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:1045:52)
at Object._clientOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2414:123)
at w.fillInitializeParams (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2432:27)
at w.this [as handleConnectionClosed] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/node/main.js:158:15)
at t (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2413:45)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.timer [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at Y (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:274:33)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.partialMessageEmitter [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at m.fireClose (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:43:21)
at Socket.<anonymous> (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:131:45)
at Socket.emit (events.js:327:22)
at Pipe.<anonymous> (net.js:674:12)
[Error - 10:53:26 PM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
at Object.connectionOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:1045:52)
at Object._clientOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2414:123)
at w.fillInitializeParams (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2432:27)
at w.this [as handleConnectionClosed] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/node/main.js:158:15)
at t (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2413:45)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.timer [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at Y (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:274:33)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.partialMessageEmitter [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at m.fireClose (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:43:21)
at Socket.<anonymous> (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:131:45)
at Socket.emit (events.js:327:22)
at Pipe.<anonymous> (net.js:674:12)
[Info - 10:53:26 PM] VLS Version: 0.0.1, OS: macos 64
[Info - 10:53:26 PM] Client / Editor: Visual Studio Code 1.55.1
V panic: as cast: cannot cast `v.ast.StringLiteral` to `v.ast.Ident`
0 vls 0x000000010865d7d0 __as_cast + 400
1 vls 0x00000001086aee57 v__ast__SelectorExpr_root_ident + 151
2 vls 0x000000010876eac6 vls__CompletionItemConfig_completion_items_from_expr + 1030
3 vls 0x0000000108771df8 vls__Vls_completion + 3768
4 vls 0x000000010877ed85 vls__Vls_dispatch + 1749
5 vls 0x000000010877f77d vls__Vls_start_loop + 141
6 vls 0x0000000108781afc main__run_cli + 1292
7 vls 0x0000000108694b89 cli__Command_parse_commands + 1369
8 vls 0x0000000108693df2 cli__Command_parse + 290
9 vls 0x0000000108781fc5 main__main + 1077
10 vls 0x00000001087853aa main + 42
11 vls 0x0000000108636764 start + 52
12 ??? 0x0000000000000001 0x0 + 1
[Info - 10:53:26 PM] Connection to server got closed. Server will restart.
[Error - 10:53:26 PM] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.connectionOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:1045:52)
at Object._clientOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2414:123)
at w.fillInitializeParams (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2432:27)
at w.this [as handleConnectionClosed] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/node/main.js:158:15)
at t (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2413:45)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.timer [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at Y (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:274:33)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.fire (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at f.async [as fireClose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:49:30)
at Socket.<anonymous> (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:78:41)
at Socket.emit (events.js:315:20)
at Pipe.<anonymous> (net.js:674:12)
[Error - 10:53:26 PM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
at Object.connectionOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:1045:52)
at Object._clientOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2414:123)
at w.fillInitializeParams (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2432:27)
at w.this [as handleConnectionClosed] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/node/main.js:158:15)
at t (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2413:45)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.timer [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at Y (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:274:33)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.fire (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at f.async [as fireClose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:49:30)
at Socket.<anonymous> (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:78:41)
at Socket.emit (events.js:315:20)
at Pipe.<anonymous> (net.js:674:12)
[Info - 10:53:26 PM] VLS Version: 0.0.1, OS: macos 64
[Info - 10:53:26 PM] Client / Editor: Visual Studio Code 1.55.1
V panic: as cast: cannot cast `v.ast.StringLiteral` to `v.ast.Ident`
0 vls 0x0000000107b717d0 __as_cast + 400
1 vls 0x0000000107bc2e57 v__ast__SelectorExpr_root_ident + 151
2 vls 0x0000000107c82ac6 vls__CompletionItemConfig_completion_items_from_expr + 1030
3 vls 0x0000000107c85df8 vls__Vls_completion + 3768
4 vls 0x0000000107c92d85 vls__Vls_dispatch + 1749
5 vls 0x0000000107c9377d vls__Vls_start_loop + 141
6 vls 0x0000000107c95afc main__run_cli + 1292
7 vls 0x0000000107ba8b89 cli__Command_parse_commands + 1369
8 vls 0x0000000107ba7df2 cli__Command_parse + 290
9 vls 0x0000000107c95fc5 main__main + 1077
10 vls 0x0000000107c993aa main + 42
11 vls 0x0000000107b4a764 start + 52
12 ??? 0x0000000000000001 0x0 + 1
[Error - 10:53:26 PM] Connection to server got closed. Server will not be restarted.
[Error - 10:53:26 PM] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.connectionOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:1045:52)
at Object._clientOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2414:123)
at w.fillInitializeParams (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2432:27)
at w.this [as handleConnectionClosed] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/node/main.js:158:15)
at t (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2413:45)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.timer [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at Y (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:274:33)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.partialMessageEmitter [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at m.fireClose (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:43:21)
at Socket.<anonymous> (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:131:45)
at Socket.emit (events.js:327:22)
at Pipe.<anonymous> (net.js:674:12)
[Error - 10:53:26 PM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
at Object.connectionOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:1045:52)
at Object._clientOptions [as dispose] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2414:123)
at w.fillInitializeParams (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2432:27)
at w.this [as handleConnectionClosed] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/node/main.js:158:15)
at t (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-languageclient/lib/common/client.js:2413:45)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.timer [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at Y (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/connection.js:274:33)
at r._callbacks [as invoke] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:64:5)
at o.partialMessageEmitter [as fire] (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
at m.fireClose (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:43:21)
at Socket.<anonymous> (/Users/jarred/.vscode/extensions/vlanguage.vscode-vlang-0.1.8/node_modules/vscode-jsonrpc/lib/common/messageReader.js:131:45)
at Socket.emit (events.js:327:22)
at Pipe.<anonymous> (net.js:674:12)
from vls.
Will look into it now. Thanks for the detailed report 🙂
from vls.
Related Issues (20)
- Incorrect `map` type signature info for function return type. HOT 1
- Text synchronization error on Windows. HOT 2
- Support multiple instances of VLS HOT 2
- Grammar railroad diagram HOT 1
- LSP completion error: Content duplication HOT 1
- Constant errors when using VLS in Neovim HOT 4
- VLS requiring GLIBC 2.32 HOT 3
- `undefined ident` for prefixed module constants HOT 3
- README update for vls reports HOT 1
- vls not running on fresh install, doesn't work when using it as global command either
- Syntax highlighting error for V language in Helix Editor HOT 2
- VLS isn't responding HOT 7
- Cannot install VLS in VSCode HOT 1
- Can't install vls with vscode HOT 1
- VLS crash when you write something HOT 1
- VScode VLC performance issue HOT 1
- NO_RESULT_CALLBACK_FOUND error HOT 2
- Which documentation how to use with vscode. HOT 2
- Crashes immediately (in terminal, and in editor)
- now use vls or v-analyzer HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vls.