flutter / flutter/flutter-intellij

Trying to create new project with hyphen in name results in empty directory added

Open
#5,984 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

Probably related to https://github.com/flutter/flutter-intellij/issues/5272

## Steps to Reproduce

1. File > New project > Select Flutter > Next
2. Enter `test-project` as Project name > Finish
3. Error appears with "invalid module name..."
4. Exit here or create project with valid name. There will be an empty directory named `test-project` wherever the default is.

## Version info

```
helinx-macbookpro2:IdeaProjects helinx$ flutter doctor -v
[✓] Flutter (Channel master, 2.11.0-0.0.pre.562, on macOS 12.2.1 21D62 darwin-arm,
locale en)
• Flutter version 2.11.0-0.0.pre.562 at /Users/helinx/Documents/flutter
• Upstream repository git@github.com:helin24/flutter.git
• Framework revision 2a2f973120 (3 days ago), 2022-02-15 07:33:57 -0800
• Engine revision e683e0cd3b
• Dart version 2.17.0 (build 2.17.0-105.0.dev)
• DevTools version 2.10.0

[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for
detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.

[!] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code
that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see
https://guides.cocoapods.org/using/getting-started.html#installation for
instructions.

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
• Android Studio not found; download from
https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for
detailed instructions).

[✓] IntelliJ IDEA Community Edition (version 2021.3.2)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 64.1.4
• Dart plugin version 213.5744.122

[✓] VS Code (version 1.64.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
• iPhone 13 (mobile) • 541428D4-C628-40A6-937C-73E007FA4E28 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
• Chrome (web) • chrome • web-javascript •
Google Chrome 98.0.4758.102

[✓] HTTP Host Availability
• All required HTTP hosts are available

! Doctor found issues in 3 categories.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.