[Bug] Excessive Token Usage During Compilation Bug Check
Resolved 💬 3 comments Opened Oct 10, 2025 by ddubielRDI Closed Oct 14, 2025
Bug Description
when it checks for compilation bugs it pulls in 15K tokens; that doesnt work for me
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 2.0.13
- Feedback ID: 960b66aa-f02c-4084-aa06-6d4e2c32f48d
Errors
[{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:432:3020\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-10-10T14:15:55.460Z"},{"error":"SyntaxError: Unexpected token L in JSON at position 67\n at JSON.parse (<anonymous>)\n at file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:62:719\n at Q (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:15093)\n at ga2 (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:753:22219)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-10-10T17:09:49.008Z"},{"error":"MaxFileReadTokenExceededError: File content (25497 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at b7B (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:1674:1716)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Object.call (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:1683:950)\n at async BS5 (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:2485:66145)\n at async K2Q (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:2485:62271)","timestamp":"2025-10-10T17:10:07.913Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: liquid\n at hK (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:2116:729)\n at file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:2116:457\n at Array.map (<anonymous>)\n at tF (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:2116:448)\n at Y6Q (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:2586:3376)\n at G$ (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:19415)\n at Sa (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:42814)\n at S9 (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38355)\n at Ym (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38283)\n at z$ (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38137)","timestamp":"2025-10-10T17:46:58.373Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: liquid\n at hK (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:2116:729)\n at file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:2116:457\n at Array.map (<anonymous>)\n at tF (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:2116:448)\n at Y6Q (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:2586:3376)\n at G$ (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:19415)\n at Sa (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:42814)\n at S9 (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38355)\n at Ym (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38283)\n at z$ (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38137)","timestamp":"2025-10-10T17:46:58.376Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: liquid\n at hK (file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_modules/@anthropic-ai/claude-code/cli.js:2116:729)\n at file:///usr/local/share/nvm/versions/node/v18.20.5/lib/node_m
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗