{"record":{"id":"2089d8e2df136aa4","repo":"emberjs/ember.js","slug":"you-attempted-to-invoke-a-path-resolution-pat","errorCode":null,"errorMessage":"You attempted to invoke a path (\\`${resolution.path}\\`) but ${resolution.head} was not in scope","messagePattern":"You attempted to invoke a path \\(\\\\`(.+?)\\\\`\\) but (.+?) was not in scope","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@glimmer/syntax/lib/v2/normalize.ts","lineNumber":206,"sourceCode":"      case 'NullLiteral':\n      case 'BooleanLiteral':\n      case 'NumberLiteral':\n      case 'StringLiteral':\n      case 'UndefinedLiteral':\n        return this.block.builder.literal(expr.value, this.block.loc(expr.loc));\n      case 'PathExpression':\n        assert(resolution, '[BUG] resolution is required');\n        return this.path(expr, resolution);\n      case 'SubExpression': {\n        // expr.path used to incorrectly have the type ASTv1.Expression\n        if (isLiteral(expr.path)) {\n          assertIllegalLiteral(expr.path, expr.loc);\n        }\n\n        let resolution = this.block.resolutionFor(expr, SexpSyntaxContext);\n\n        if (resolution.result === 'error') {\n          throw generateSyntaxError(\n            `You attempted to invoke a path (\\`${resolution.path}\\`) but ${resolution.head} was not in scope`,\n            expr.loc\n          );\n        }\n\n        return this.block.builder.sexp(\n          this.callParts(expr, resolution.result),\n          this.block.loc(expr.loc)\n        );\n      }\n    }\n  }\n\n  private path(\n    expr: ASTv1.MinimalPathExpression,\n    resolution: ASTv2.FreeVarResolution\n  ): ASTv2.KeywordExpression | ASTv2.PathExpression {\n    let loc = this.block.loc(expr.loc);","sourceCodeStart":188,"sourceCodeEnd":224,"githubUrl":"https://github.com/emberjs/ember.js/blob/26f97246a8bf2e28edf26ac3093da2e86c04ffc5/packages/@glimmer/syntax/lib/v2/normalize.ts#L188-L224","documentation":"Error \"You attempted to invoke a path (\\`${resolution.path}\\`) but ${resolution.head} was not in scope\" thrown in emberjs/ember.js.","triggerScenarios":"Thrown at packages/@glimmer/syntax/lib/v2/normalize.ts:206 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":"26f97246a8bf2e28edf26ac3093da2e86c04ffc5","analyzedAt":"2026-09-01T05:01:28.182Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}