slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.54k stars 601 forks source link

slint preview crash in vscode #3085

Closed almindor closed 1 year ago

almindor commented 1 year ago

The preview crashes with this backtrace:

thread '<unnamed>' panicked at 'The parser only avoid missing types for two way bindings', internal/compiler/passes/infer_aliases_types.rs:72:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info  - 15:01:20] Connection to server got closed. Server will restart.
The Slint Language Server crashed. This is a bug.
Please open an issue on https://github.com/slint-ui/slint/issues
[Error - 15:01:20] Request textDocument/semanticTokens/full failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageWriter.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:42:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:75:42)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:757:14)
[Error - 15:01:20] Request textDocument/codeAction failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageWriter.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:42:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:75:42)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:757:14)
[Error - 15:01:20] Request textDocument/codeLens failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageWriter.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:42:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:75:42)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:757:14)
[Error - 15:01:20] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageWriter.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:42:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:75:42)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:757:14)
thread '<unnamed>' panicked at 'The parser only avoid missing types for two way bindings', internal/compiler/passes/infer_aliases_types.rs:72:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info  - 15:01:20] Connection to server got closed. Server will restart.
The Slint Language Server crashed. This is a bug.
Please open an issue on https://github.com/slint-ui/slint/issues
[Error - 15:01:20] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageReader.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageReader.js:125:42)
    at Socket.emit (node:events:525:35)
    at Pipe.<anonymous> (node:net:757:14)
[Error - 15:01:20] Request textDocument/codeAction failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageReader.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageReader.js:125:42)
    at Socket.emit (node:events:525:35)
    at Pipe.<anonymous> (node:net:757:14)
[Error - 15:01:20] Request textDocument/colorPresentation failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageReader.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageReader.js:125:42)
    at Socket.emit (node:events:525:35)
    at Pipe.<anonymous> (node:net:757:14)
thread '<unnamed>' panicked at 'The parser only avoid missing types for two way bindings', internal/compiler/passes/infer_aliases_types.rs:72:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info  - 15:01:20] Connection to server got closed. Server will restart.
The Slint Language Server crashed. This is a bug.
Please open an issue on https://github.com/slint-ui/slint/issues
[Error - 15:01:20] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageReader.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageReader.js:125:42)
    at Socket.emit (node:events:525:35)
    at Pipe.<anonymous> (node:net:757:14)
[Error - 15:01:20] Request textDocument/codeAction failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageReader.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageReader.js:125:42)
    at Socket.emit (node:events:525:35)
    at Pipe.<anonymous> (node:net:757:14)
[Error - 15:01:20] Request textDocument/colorPresentation failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageReader.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageReader.js:125:42)
    at Socket.emit (node:events:525:35)
    at Pipe.<anonymous> (node:net:757:14)
thread '<unnamed>' panicked at 'The parser only avoid missing types for two way bindings', internal/compiler/passes/infer_aliases_types.rs:72:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info  - 15:01:20] Connection to server got closed. Server will restart.
The Slint Language Server crashed. This is a bug.
Please open an issue on https://github.com/slint-ui/slint/issues
[Error - 15:01:20] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageWriter.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:42:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:75:42)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:757:14)
[Error - 15:01:20] Request textDocument/codeAction failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageWriter.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:42:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:75:42)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:757:14)
[Error - 15:01:20] Request textDocument/colorPresentation failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageWriter.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:42:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:75:42)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:757:14)
thread '<unnamed>' panicked at 'The parser only avoid missing types for two way bindings', internal/compiler/passes/infer_aliases_types.rs:72:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Error - 15:01:20] Connection to server got closed. Server will not be restarted.
The Slint Language Server crashed. This is a bug.
Please open an issue on https://github.com/slint-ui/slint/issues
[Error - 15:01:20] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageWriter.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:42:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:75:42)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:757:14)
[Error - 15:01:20] Request textDocument/codeAction failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageWriter.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:42:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:75:42)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:757:14)
[Error - 15:01:20] Request textDocument/colorPresentation failed.
Error: Connection got disposed.
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
    at Object.dispose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:73:35)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
    at LanguageClient.handleConnectionClosed (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/node/main.js:155:15)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at closeHandler (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
    at CallbackList.invoke (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
    at Emitter.fire (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
    at StreamMessageWriter.fireClose (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:42:27)
    at Socket.<anonymous> (/<redacted>/.vscode-oss/extensions/slint.slint-1.1.1-universal/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:75:42)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:757:14)

The issue seems to be related to a pre-assigned callback being also implemented by accident e.g. (inside a component):

   ...
    callback row-pointer-event <=> stv.row-pointer-event; // stv is an inner component e.g. stv := StandardTableView { ... }

    menu := AccountMenu {}

    row-pointer-event(idx, pe, pos) => {    } // causes crash
   ...
ogoffart commented 1 year ago

Thanks for the bug report! I can reproduce the problem.