Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
Qt Creator 10.0.2
-
None
Description
If dashes used in the project name, then the created project cannot be compiled because the same project name is used as module uri and used as ```import project-name``` which is not parsed correctly and leads to error.
Reproducing steps:
- Create qtquick application
- Use a project name that includes dashes, i.e test-me-project
- Check "Creates a project that you can use in design studio" on
- ...next till the end
- In the created project, the project name is used as ``` import test-me-project``` which errors out
Expected:
The user should either not be allowed to give project name with dashes or that name should be preprocessed before used as module uri, like ``` import testMeProject ```
Attachments
Issue Links
- duplicates
-
QTBUG-101072 Choosing a project name with a dash inside creates a broken cmake configuration
-
- Open
-
- relates to
-
QTCREATORBUG-29570 Creator project wizard allows dash in the name which breaks QML
-
- Closed
-