{"record":{"id":"dd37f7109a3a1c8b","repo":"denoland/deno","slug":"either-node-or-range-must-be-provided-when-rep","errorCode":null,"errorMessage":"Either `node` or `range` must be provided when reporting an error","messagePattern":"Either `node` or `range` must be provided when reporting an error","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/js/40_lint.js","lineNumber":386,"sourceCode":"    this.filename = fileName;\n    this.sourceCode = new SourceCode(ctx);\n  }\n\n  getFilename() {\n    return this.filename;\n  }\n\n  getSourceCode() {\n    return this.sourceCode;\n  }\n\n  /**\n   * @param {Deno.lint.ReportData} data\n   */\n  report(data) {\n    const range = data.node ? data.node.range : data.range ? data.range : null;\n    if (range == null) {\n      throw new Error(\n        \"Either `node` or `range` must be provided when reporting an error\",\n      );\n    }\n\n    const start = range[0];\n    const end = range[1];\n\n    if (start > end) {\n      throw new RangeError(\n        `Invalid range. Start value is bigger than end value: [${start}, ${end}]`,\n      );\n    }\n\n    /** @type {Deno.lint.Fix[]} */\n    const fixes = [];\n\n    if (typeof data.fix === \"function\") {\n      const fixer = new Fixer();","sourceCodeStart":368,"sourceCodeEnd":404,"githubUrl":"https://github.com/denoland/deno/blob/89f33cbef296a2b287f323d42de54c871fa69c77/cli/js/40_lint.js#L368-L404","documentation":"macOS variant of the dev-dir lookup: LAUFEY_DEV_DIR is set, so the `.app` bundle is resolved from the local laufey checkout, but no `.app` bundle for the backend could be located under it.","triggerScenarios":"LAUFEY_DEV_DIR pointing at a checkout that was built as plain binaries but whose macOS `.app` bundle was never produced, or was produced in a non-default location.","commonSituations":"Building laufey with `cargo build` only (no bundling step); stale clone missing the packaging output.","solutions":["Produce the `.app` bundle in the checkout (run laufey's packaging/bundle step) and re-run","Verify the expected `.app` path exists under the checkout before launching","If dev mode was unintended, unset LAUFEY_DEV_DIR to use the cached/fresh download"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"const devDir = Deno.env.get('LAUFEY_DEV_DIR');\nif (devDir && !await exists(`${devDir}/target/release/laufey.app`)) {\n  throw new Error('LAUFEY_DEV_DIR set but no built .app — run laufey\\'s packaging step first');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run laufey's bundle/packaging step after building when developing on macOS","Preflight for the .app path whenever LAUFEY_DEV_DIR is set","Unset the env var to fall back to downloaded bundles"],"tags":["desktop","laufey","macos","app-bundle","dev-dir"],"backgroundTag":null,"analyzedSha":"89f33cbef296a2b287f323d42de54c871fa69c77","analyzedAt":"2026-08-16T07:54:21.310Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}