malloy-debug

Diagnose and resolve compile-time errors in Malloy source code.

95|24|Updated Sep 16, 2024
One-click install
npx skills add https://github.com/malloydata/publisher --skill malloy-debug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: malloy-debug
Source: https://github.com/malloydata/publisher/tree/main/skills/malloy-debug
Command: npx skills add https://github.com/malloydata/publisher --skill malloy-debug

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit provides tools and strategies to identify and fix compile errors in Malloy files, helping users navigate through complex error messages and understand their causes.

Core Features & Use Cases

  • Diagnostics Retrieval: Offers methods to retrieve diagnostics from Malloy files using VS Code or the command line.
  • Error Fixing Strategies: Suggests a step-by-step approach to fixing errors, including a checklist for common issues.
  • Quick Fixes: Provides immediate solutions for a range of common errors, including type casting, aggregate functions, and null checks.
  • Gotchas Checklist: Details important considerations like reserved words, proper usage of date functions, and aggregate filters.
  • Cross-File Errors: Offers guidance on handling errors related to source imports and circular dependencies.

Quick Start

To start debugging a Malloy file, open it in VS Code and use the ReadLints tool on the file path, or open the file and check lints in the editor.

Frequently Asked Questions about malloy-debug

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix compile errors in Malloy source code?

To fix compile errors in Malloy source code, retrieve diagnostics using VS Code's ReadLints tool or the command line, then apply targeted strategies like type casting or null checks to resolve the identified syntax or semantic issues.

What is the best way to retrieve diagnostics for Malloy files?

Retrieving diagnostics for Malloy files is done by opening the file in VS Code and using the ReadLints tool on the file path, or by checking lints directly in the editor to identify compile-time errors.

Why does my Malloy code fail when using aggregate functions or date functions?

Malloy code often fails with aggregate functions or date functions due to common gotchas like improper aggregate filters or incorrect date function usage, which can be resolved by reviewing the specific checklist for these issues.

How do I handle circular dependencies and source imports in Malloy?

Handling circular dependencies and source imports in Malloy requires checking cross-file error guidance to identify circular references and ensure proper source file resolution during compilation.

Can I check for reserved words and type casting issues when debugging Malloy syntax?

Checking for reserved words and type casting issues is possible when debugging Malloy syntax, as the diagnostic process includes a specific gotchas checklist for immediate solutions to these common compile-time errors.