-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"play new" does not run #1493
Comments
Hi @jacol84 - thx for the response… I did another test, in my home directory… see the permissions, the same result.
Any idea, where I can start to have a look why this does not work? |
@phaus |
To me it looks like something is just not created: (base) philipp@Imotep play-test % play new foo1
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.8.0, https://www.playframework.com
~
~ The new application will be created in /private/tmp/play-test/foo1
~ What is the application name? [foo1]
Traceback (most recent call last):
File "/Users/philipp/.bin/play/play", line 168, in <module>
status = cmdloader.commands[play_command].execute(command=play_command, app=play_app, args=remaining_args, env=play_env, cmdloader=cmdloader)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/philipp/.bin/play/framework/pym/play/commands/base.py", line 38, in execute
new(app, args, env, cmdloader)
File "/Users/philipp/.bin/play/framework/pym/play/commands/base.py", line 95, in new
os.mkdir(os.path.join(app.path, 'app/models'))
FileNotFoundError: [Errno 2] No such file or directory: '/private/tmp/play-test/foo1/app/models'
(base) philipp@Imotep play-test % ls -al -R
total 0
drwxr-xr-x 3 philipp wheel 96 19 Aug 08:24 .
drwxrwxrwt 10 root wheel 320 19 Aug 08:24 ..
drwxr-xr-x 2 philipp wheel 64 19 Aug 08:24 foo1
./foo1:
total 0
drwxr-xr-x 2 philipp wheel 64 19 Aug 08:24 .
drwxr-xr-x 3 philipp wheel 96 19 Aug 08:24 ..
|
Thx. So I did not got the error. However, the generated app does not seem to be complete: (base) philipp@Imotep /tmp % play new foo
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.8.0, https://www.playframework.com
~
~ The new application will be created in /private/tmp/foo
~ What is the application name? [foo]
~ Oops. conf/routes or conf/application.conf missing.
~ /private/tmp/foo does not seem to host a valid application.
~
(base) philipp@Imotep /tmp % tree -L 4 foo
foo
├── app
│ └── models
└── lib
4 directories, 0 files |
maybe you need to create all folders ├───app
|
@phaus it is working? |
Hi @jacol84 I don't really get it. With your changes, the folder structure is there, but now config files (aka |
there have been changes system python is used and not the version of play that was provided as before update your python version to the latest one, maybe that will help |
the |
Sure… philipp@MacLab resources % tree -L 3
.
├── _nbproject
│ └── project.xml
├── application-build.xml
├── application-skel
│ ├── app
│ │ ├── controllers
│ │ └── views
│ ├── conf
│ │ ├── application.conf
│ │ ├── dependencies.yml
│ │ ├── messages
│ │ └── routes
│ ├── documentation
│ │ ├── files
│ │ ├── images
│ │ ├── template.html
│ │ └── welcome.textile
│ ├── public
│ │ ├── images
│ │ ├── javascripts
│ │ └── stylesheets
│ └── test
│ ├── Application.test.html
│ ├── ApplicationTest.java
│ ├── BasicTest.java
│ └── data.yml
├── build.xml
├── eclipse
│ ├── connect.launch
│ ├── debug.launch
│ └── test.launch
├── idea
│ ├── imlTemplate.xml
│ └── iprTemplate.xml
├── messages
├── module-skel
│ ├── build.xml
│ ├── commands.py
│ ├── conf
│ │ ├── dependencies.yml
│ │ ├── messages
│ │ └── routes
│ ├── documentation
│ │ └── manual
│ └── src
│ └── play.plugins
└── war
└── web.xml |
I am using a link to the recent play version (what worked in the past) philipp@MacLab ~ % ls -al ~/.bin |grep play
lrwxr-xr-x@ 1 philipp staff 10 21 Aug 14:26 play -> play-1.8.0
drwxr-xr-x@ 14 philipp staff 448 1 Mär 2024 play-1.8.0 Maybe that is causing some issues?
|
Play Version
1.7.1
1.8.0
Describe the bug
play new should create a new application.
Instead the following error is displayed:
To Reproduce
Steps to reproduce the behavior:
or
Please provide a PR with a failing test.
If the issue is more complex or requires configuration, please provide a link to a project on Github that reproduces the issue.
Expected behavior
The app is created
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: