Rename the source extension, grammars and editor names (rename stage 3)

Open
#368 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
36/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
rust, vscode
Domain
tooling

Research direction

Read docs/design/ambyte-name.md and verify prerequisite #367 is complete. Start with the extension, grammar, editor package, fixtures, and paths named in the scope; write the CLI test that rejects .amblicit first, then run it and the grammar tests. Done means the acceptance checks pass, golden digests stay unchanged, and CHANGELOG is updated.

Written by the indexing model from the issue text.

Description

enhancement
.dag: issue-dag/2
.id: ambyte-lang/ambyte#368
.kind: task
.type: task
.blocked_by: [ambyte-lang/ambyte#367]
.size_hours: 4

Task

You are the engineer for this issue. Read all sections of this issue.
Write tests from section 2c (Test Plan) first. Make sure that they fail before you write the code.
Do the work in section 2b. Make sure that all tests pass.
Make sure that each item under Acceptance is true.
Do not change anything that Out of scope names.
Read AGENTS.md and the project's code conventions before you change code.
Run the project's checks as AGENTS.md or the README gives them. Do not use --no-verify.
Open a draft pull request. Link this issue. Write progress comments on the pull request.
Make the pull request ready only when every item under Acceptance and in the Definition of Done is true and CI passes.

Outcome

Source files end in .ambyte and the grammars and editor names say ambyte.

Scope

  • Stage 3 of docs/design/ambyte-name.md: the .ambyte extension, scope source.ambyte, grammars/tree-sitter-ambyte, grammars/textmate/ambyte.tmLanguage.json, the editor extension ambyte-vscode and language id ambyte.
  • Every fixture and example file renamed, and every path that names one.
  • The compiler accepts .ambyte only.

Out of scope

  • Wire identifiers: flyingrobots/amblicit#369.
  • Jedit's rope sources, which Jedit renames.

Prerequisites

  • flyingrobots/amblicit#367: the grammar and editor packages follow the crate names.

Safe intermediate state

main reads .ambyte sources only. No canonical byte changes, because a file name is not part of an artifact's bytes.

Acceptance

  • git ls-files '*.amblicit' is empty.
  • Every golden artifact digest is unchanged.
  • The grammar tests pass under the new names.

1. Background Context

Stage 3 of the rename plan. It renames files and editor names only.

2. Problem Description

The extension carries an old name.

2b. Proposed Solution

git mv and path updates. Rejected: accepting both extensions.

2c. Test Plan

Golden: a CLI test that refuses the old extension, written first.
Edges: a source path recorded inside a diagnostic golden.
Known failure modes: a digest that covers a source path.
Fuzz and stress: not applicable.

3. Why now

Follows stage 2.

4. Risks

A source path inside canonical bytes would change a digest; the acceptance check finds it, and it then belongs to flyingrobots/amblicit#369.

5. Definition of Done

Acceptance true; CHANGELOG updated.

6. Stakeholders

flyingrobots (owner); Ambyte and Jedit maintainers.

7. Related Issues

flyingrobots/amblicit#370.

Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flyingrobots/edict

All issues in flyingrobots/edict

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.