You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the following .vscode setting to ensure the same version is being used in that workspace
{
"biome.lspBin": "./node_modules/.bin/biome"
}
And the output of the logs:
├─┘
├─┐biome_lsp::handlers::text_document::did_open{params=DidOpenTextDocumentParams { text_document: TextDocumentItem { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/spion/Projects/ionic-solidjs/packages/ionicons/src/index.ts", query: None, fragment: None }, language_id: "typescript", version: 1, text: "import type { JSX as IonicJSX } from 'ionicons/dist/types/components';\nimport type { JSX as JSXBase } from 'solid-js';\n\n// `tsup` removes an alias of first JSX import (IonicJSX) and uses only the JSX identifier\n// which makes problem when it's used directly in the 'solid-js' module.\ntype __$IonIconsJSXIntrinsicElements = IonicJSX.IntrinsicElements;\n\ntype WithElements<T> = {\n\t[P in keyof T]?: T[P] &\n\t\t(P extends keyof HTMLElementTagNameMap ? JSXBase.HTMLAttributes<HTMLElementTagNameMap[P]> : {});\n};\n\n// Add the Ionic JSX namespace to the solid-js' JSX namespace\ndeclare module 'solid-js' {\n\texport namespace JSX {\n\t\tinterface IntrinsicElements extends WithElements<__$IonIconsJSXIntrinsicElements> {}\n\t}\n}\n\nexport * from './icons';\n" } }}
│ ├─ 0ms DEBUG biome_service::workspace::server File capabilities: Js(JsFileSource { language: TypeScript { definition_file: false }, variant: Standard, module_kind: Module, version: ES2022, embedding_kind: None }) BiomePath { path: "packages/ionicons/src/index.ts" }
│ ├─ 0ms DEBUG biome_service::workspace The file has the following feature sets:
│ │ {Lint: Supported, OrganizeImports: Supported, Format: Supported, Search: FileNotSupported}
│ ├─ 0ms DEBUG biome_service::workspace::server File capabilities: Js(JsFileSource { language: TypeScript { definition_file: false }, variant: Standard, module_kind: Module, version: ES2022, embedding_kind: None }) BiomePath { path: "packages/ionicons/src/index.ts" }
│ ├─┐biome_js_parser::parse::parse{}
│ ├─┘
│ ├─┐biome_json_parser::parse{}
│ ├─┘
│ ├─ 0ms DEBUG biome_service::workspace::server File capabilities: Js(JsFileSource { language: TypeScript { definition_file: false }, variant: Standard, module_kind: Module, version: ES2022, embedding_kind: None }) BiomePath { path: "packages/ionicons/src/index.ts" }
│ ├─┐biome_service::workspace::server::Pulling diagnostics{categories=RuleCategories(SYNTAX | LINT | ACTION)}
│ │ ├─┐biome_service::file_handlers::javascript::Linting JavaScript file{path=BiomePath { path: "packages/ionicons/src/index.ts" }, language=Js(JsFileSource { language: TypeScript { definition_file: false }, variant: Standard, module_kind: Module, version: ES2022, embedding_kind: None })}
│ │ │ ├─ 0ms INFO biome_service::file_handlers::javascript Analyze file packages/ionicons/src/index.ts
│ │ │ ├─ 0ms ERROR biome_cli::panic Biome encountered an unexpected error
│ │ │ │
│ │ │ │ This is a bug in Biome, not an error in your code, and we would appreciate it if you could report it to https://github.com/biomejs/biome/issues/ along with the following information to help us fixing the issue:
│ │ │ │
│ │ │ │ Source Location: crates/biome_js_semantic/src/semantic_model/scope.rs:115:33
│ │ │ │ Thread Name: tokio-runtime-worker
│ │ │ │ Message: no entry found for key
│ │ │ │
│ │ ├─┘
│ ├─┘
├─┘
┘
INFO biome_cli::commands::daemon Received shutdown signal
The code of the file in question:
importtype{JSXasIonicJSX}from'ionicons/dist/types/components';importtype{JSXasJSXBase}from'solid-js';// `tsup` removes an alias of first JSX import (IonicJSX) and uses only the JSX identifier// which makes problem when it's used directly in the 'solid-js' module.type__$IonIconsJSXIntrinsicElements=IonicJSX.IntrinsicElements;typeWithElements<T>={[PinkeyofT]?: T[P]&(PextendskeyofHTMLElementTagNameMap ? JSXBase.HTMLAttributes<HTMLElementTagNameMap[P]> : {});};// Add the Ionic JSX namespace to the solid-js' JSX namespacedeclare module 'solid-js'{exportnamespaceJSX{interfaceIntrinsicElementsextendsWithElements<__$IonIconsJSXIntrinsicElements>{}}}export*from'./icons';
Expected result
Biome LSP works normally.
Code of Conduct
I agree to follow Biome's Code of Conduct
The text was updated successfully, but these errors were encountered:
spion
changed the title
🐛 Panic
🐛 Panic in semantic_model/scope.rs when opening a typescript file
May 4, 2024
I just tested this with latest main - it looks like the issue may've been fixed. (possibly by the conditional types PR, although the text there indicated that it may not be related as this conditional type doesn't use infer)
Environment information
What happened?
I got the following .vscode setting to ensure the same version is being used in that workspace
And the output of the logs:
The code of the file in question:
Expected result
Biome LSP works normally.
Code of Conduct
The text was updated successfully, but these errors were encountered: