← Editor setup guides

How to enable .sdd validation and path warnings in your editor

How-To Editor setup Beginner 1031002HOWTO-1031002

HOWTO-1031002Editor setupBeginner

This guide shows you how to turn editor feedback for .sdd files into a practical validation loop.

Use it when your editor recognizes SpecDD files but you want diagnostics, unresolved path warnings, and project-wide checks to catch mistakes before review.

Short answer

With a SpecDD editor integration installed, open the repository or workspace root, save files with the .sdd extension, and use the editor’s diagnostics or inspections. For cross-editor verification, run specdd lint from the project root.

Prerequisites

Install one editor integration before you start:

For CLI verification, also install the SpecDD CLI:

Steps

1. Open the correct content root

Open the repository, workspace, or monorepo root that should act as the SpecDD content root.

The content root is the boundary used for:

Do not open only src/main/java, src, or a feature folder unless that folder is intentionally an independent SpecDD project.

2. Open or create a .sdd file

Create a small valid file if you need a test case:

Spec: Editor Validation

Purpose:
  Verify editor diagnostics for SpecDD files.

Owns:
  ./editor-validation.sdd

Save the file with the .sdd extension.

3. Check structural diagnostics

Strict validation should catch .sdd language mistakes such as:

For example, this is invalid because Purpose must not have inline text:

Purpose: Inline text is not valid here.

Use:

Purpose:
  Inline text belongs in the section body.

4. Check path warnings

SpecDD treats only explicit path prefixes as file references:

Unprefixed names are ordinary text, not paths:

Owns:
  itinerary.js

Use an explicit path when you want editor path behavior:

Owns:
  ./itinerary.js

Missing exact paths are unresolved references, not syntax errors. Fix them by correcting the path, moving the spec, creating the missing file, or changing the line to ordinary prose when it is not meant to be a path.

Malformed globs are warning-level unresolved glob issues, not syntax errors:

Can read:
  ./fixtures/[*.json

Fix the glob or replace it with a plain description.

5. Use workspace validation when available

The VS Code extension includes workspace validation. If your editor exposes SpecDD commands in the command palette, run the workspace validation command after opening the project root.

JetBrains IDEs report structural validation and unresolved path warnings through inspections while you edit.

6. Verify with the CLI

Run the same validation outside the editor:

specdd lint

To lint a specific target:

specdd lint path/to/project
specdd lint path/to/project/project.sdd
specdd lint path/to/project/src/feature.ts

Use this when you want editor feedback and command-line feedback to agree before a pull request.

Common mistakes

How to verify the result

Validation is set up correctly when:

← Editor setup guides