{"record":{"id":"ade0d4bc5967311a","repo":"gleam-lang/gleam","slug":"echo-with-no-expression-outside-of-pipe","errorCode":null,"errorMessage":"echo with no expression outside of pipe","messagePattern":"echo with no expression outside of pipe","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"compiler-core/src/javascript/expression.rs","lineNumber":541,"sourceCode":"            } => self.module_select(arena, module_alias, label, constructor),\n\n            TypedExpr::NegateBool { value, .. } => {\n                self.negate_with(arena, EXCLAMATION_MARK_DOCUMENT, value)\n            }\n\n            TypedExpr::NegateInt { value, .. } => {\n                self.negate_with(arena, MINUS_SPACE_DOCUMENT, value)\n            }\n\n            TypedExpr::Echo {\n                expression,\n                message,\n                location,\n                ..\n            } => {\n                let expression = expression\n                    .as_ref()\n                    .expect(\"echo with no expression outside of pipe\");\n                let expresion_doc =\n                    self.not_in_tail_position(None, |this| this.wrap_expression(arena, expression));\n                self.echo(arena, expresion_doc, message.as_deref(), location)\n            }\n\n            TypedExpr::Invalid { .. } => {\n                panic!(\"invalid expressions should not reach code generation\")\n            }\n        };\n        if let Position::Statement = self.scope_position\n            && expression_requires_semicolon(expression)\n        {\n            document = document.append(arena, SEMICOLON_DOCUMENT);\n        }\n        if expression.handles_own_return() {\n            docvec![\n                arena,\n                self.source_map_tracker(arena, expression.location().start),","sourceCodeStart":523,"sourceCodeEnd":559,"githubUrl":"https://github.com/gleam-lang/gleam/blob/7e623aa83da3776faee50ca4ab9a6c40124acd95/compiler-core/src/javascript/expression.rs#L523-L559","documentation":"Error \"echo with no expression outside of pipe\" thrown in gleam-lang/gleam.","triggerScenarios":"Thrown at compiler-core/src/javascript/expression.rs:541 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7e623aa83da3776faee50ca4ab9a6c40124acd95","analyzedAt":"2026-08-17T00:07:02.091Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}