Skip to content

bug: Plan scaffold generates nonsensical file paths (.txt extension, Python naming for Java) #140

@mmorris35

Description

@mmorris35

Description

The generated plan scaffold creates file paths that don't match the detected language conventions.

Reproduction

Generate a plan for a Java 21 + Spring Boot 3 project.

Expected

Java-style paths:

  • `src/main/java/com/example/buzzwordbingo/BuzzwordBingoApplication.java`
  • `src/test/java/com/example/buzzwordbingo/BuzzwordBingoApplicationTest.java`

Actual

  • `corporate_buzzword_bingo/main.txt` — `.txt` extension, Python snake_case naming
  • `tests/test_main.txt` — `.txt` extension, Python test naming convention
  • `corporate_buzzword_bingo/routes.txt`
  • `corporate_buzzword_bingo/handlers/`
  • `tests/test_api.txt`

Root Cause

The scaffold file path generation uses a generic template that doesn't adapt to the detected language. The `.txt` extension suggests a fallback when the language mapping returns nothing useful.

Test Project

`test-projects/corporate-buzzword-bingo/`

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions