Skip to content

Failed to make ast node syntax::ast::generated::nodes::Name from text mod Self; #20398

@Veykril

Description

@Veykril
thread 'Worker11' panicked at crates/syntax/src/ast/make.rs:127:5:
Failed to make ast node `syntax::ast::generated::nodes::Name` from text mod Self;
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: syntax::ast::make::name
   3: ide_assists::handlers::generate_function::FunctionBuilder::from_method_call
   4: ide_assists::handlers::generate_function::generate_function
   5: ide_assists::assists
   6: salsa::cancelled::Cancelled::catch
   7: ide::Analysis::assists_with_fixes
   8: rust_analyzer::handlers::request::handle_code_action
   9: core::ops::function::FnOnce::call_once{{vtable.shim}}
  10: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
additional context:
   0:
version: 0.3.2563-standalone (8d75311400 2025-08-03)
request: textDocument/codeAction CodeActionParams {
    text_document: TextDocumentIdentifier {
        uri: Url {
            scheme: "file",
            cannot_be_a_base: false,
            username: "",
            password: None,
            host: None,
            port: None,
            path: "...",
            query: None,
            fragment: None,
        },
    },
    range: Range {
        start: Position {
            line: 60,
            character: 33,
        },
        end: Position {
            line: 60,
            character: 33,
        },
    },
    context: CodeActionContext {
        diagnostics: [],
        only: Some(
            [
                CodeActionKind(
                    "",
                ),
                CodeActionKind(
                    "quickfix",
                ),
                CodeActionKind(
                    "refactor",
                ),
                CodeActionKind(
                    "refactor.extract",
                ),
                CodeActionKind(
                    "refactor.inline",
                ),
                CodeActionKind(
                    "refactor.rewrite",
                ),
            ],
        ),
        trigger_kind: None,
    },
    work_done_progress_params: WorkDoneProgressParams {
        work_done_token: None,
    },
    partial_result_params: PartialResultParams {
        partial_result_token: None,
    },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions