{"record":{"id":"f56afc18ebc03289","repo":"DioxusLabs/dioxus","slug":"positional-argument-follows-keyword-argument","errorCode":null,"errorMessage":"positional argument follows keyword argument","messagePattern":"positional argument follows keyword argument","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/fullstack-macro/src/lib.rs","lineNumber":1678,"sourceCode":"                                \"keyword argument repeated: `impl_deref`\",\n                            ));\n                        }\n                        impl_deref = Some(stream.parse()?);\n                    } else if key == \"protocol\" {\n                        if protocol.is_some() {\n                            return Err(syn::Error::new(\n                                key.span(),\n                                \"keyword argument repeated: `protocol`\",\n                            ));\n                        }\n                        protocol = Some(stream.parse()?);\n                    } else {\n                        return Err(lookahead.error());\n                    }\n                } else {\n                    let value = key_or_value;\n                    if use_key_and_value {\n                        return Err(syn::Error::new(\n                            value.span(),\n                            \"positional argument follows keyword argument\",\n                        ));\n                    }\n                    if arg_pos == 1 {\n                        struct_name = Some(value)\n                    } else {\n                        return Err(syn::Error::new(value.span(), \"expected string literal\"));\n                    }\n                }\n            } else if lookahead.peek(LitStr) {\n                if use_key_and_value {\n                    return Err(syn::Error::new(\n                        stream.span(),\n                        \"If you use keyword arguments (e.g., `name` = \\\n                         Something), then you can no longer use arguments \\\n                         without a keyword.\",\n                    ));","sourceCodeStart":1660,"sourceCodeEnd":1696,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/fullstack-macro/src/lib.rs#L1660-L1696","documentation":"While parsing `#[server]` macro options, this fires when a positional (non-keyword) argument appears after a `key = value` argument has already been parsed. Once keyword arguments start, all remaining arguments must use `key = value` form.","triggerScenarios":"Thrown at packages/fullstack-macro/src/lib.rs:1678 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Put all positional arguments before any keyword arguments, or convert the positional argument to a keyword argument."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}