infinitered / infinitered/firebird

Creating a project with kabob-case causes errors

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Elixir
Stars
66
Forks
2
PR merge metrics
No merged PRs in 30d

Description

When using `mix phoenix.new some-kabob-case`, you'll get this error:

```
** (Mix) Application name must start with a letter and have only lowercase letters, numbers and underscore, got: "some-kabob-case". The application name is inferred from the path, if you'd like to explicitly name the application then use the `--app APP` option.
```

With Firebird, it creates the project anyway, which then screws up the project.

![image](https://cloud.githubusercontent.com/assets/1479215/25589771/bebce174-2e62-11e7-861a-204d28f61499.png)

We should implement the same protections as Phoenix's generator (or push this upstream if it's an upstream problem).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the `mix phoenix.new some-kabob-case` command and compare its behavior with Phoenix's generator protections. Identify the Firebird generator entry point from that command, then confirm that invalid project names are rejected before a broken project is created.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.