Skip to content
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

ERROR Missing .dependencies file in user/ folder #1027

Closed
Sogl opened this issue Sep 6, 2016 · 12 comments
Closed

ERROR Missing .dependencies file in user/ folder #1027

Sogl opened this issue Sep 6, 2016 · 12 comments

Comments

@Sogl
Copy link
Contributor

Sogl commented Sep 6, 2016

Hello!

Got this error after bin/grav install:

"eval" ▒▒ ▒▒▒▒ ▒▒▒▒७▒▒▒ ▒▒▒ ▒▒▒譥▒
▒▒▒▒▒▒▒▒, ▒ᯮ▒▒塞▒▒ ▒ணࠬ▒▒▒ ▒▒▒ ▒▒▒▒▒▒ 䠩▒▒▒.
ERROR Missing .dependencies file in user/ folder
ERROR invalid YAML in .dependencies

Can't see any .dependencies file in user or root folder.
Tried to check grav+admin zip from offsite. The same. No .dependencies file.

What it wants from me?

Env:
Windows 7 x64 (hidden files enabled, also checked with Total Commander)
Grav 1.1.3
Git Bash console

@rhukster
Copy link
Member

rhukster commented Sep 6, 2016

it's only there if you clone from github. it's stripped out of the grav download package because it's only intended to be used by developers:

https://github.com/getgrav/grav/blob/develop/.dependencies

@rhukster rhukster closed this as completed Sep 6, 2016
@Sogl
Copy link
Contributor Author

Sogl commented Sep 7, 2016

I have more plugins. How to create this file for my situation?

Found something about .dependencies file only on this url:
https://learn.getgrav.org/advanced/grav-development

But nothing about how to build this file or use...

@flaviocopes
Copy link
Contributor

Just check how skeletons are implementing it, for example https://github.com/getgrav/grav-skeleton-agency-site/blob/develop/.dependencies

@Sogl
Copy link
Contributor Author

Sogl commented Sep 15, 2016

@flaviocopes I think grav docs needs tutorial how to create this file from scratch etc.

@flaviocopes
Copy link
Contributor

What's your issue with it? You need to change it to list your dependencies.

But this is needed to build skeletons. I don't know from what you are writing above if this is what you need. What do you need to do?

@rogerpfaff
Copy link

rogerpfaff commented Mar 30, 2017

I just installed grav from different approaches (zip base + admin, skeleton with theme, composer) and for the exception of the base + admin install no installation was able to download admin panel because of dependencies.

So I think here lies the unintuitive part about .dependencies, it's just not there and blocks the try-out phase by just not working as you would expect.

Edit: By just creating the file it works.

@rhukster
Copy link
Member

.dependencies is primarily use by skeleton packages to include REQUIRED plugins and themes. Core grav skeleton don't include the admin on this file because it's not required to run and not all people want it

You can install admin anywhere by just typing bin/gpm install admin.

@rogerpfaff
Copy link

you are right. I just tested this again with a clone from github and it works.

@flaviocopes
Copy link
Contributor

@rogerpfaff what can we do to avoid confusion in the first place, in your opinion? Adding a more verbose error message explaining that Grav is already installed, instead of complaining that .dependencies is not found maybe makes the process smoother

@rogerpfaff
Copy link

@flaviocopes the only thing I can right now imagine is that I might have tried multiple times to bin/grav install admin because this is the only way I can reproduce the error.

I have tested it now with the zip from the website, the clean blog skeleton, a composer install and a git clone. May be this is that one thing you need to do wrong in the beginning? Or it might have been a wrong tutorial somewhere on the web.

For my part this could be closed.

@flaviocopes
Copy link
Contributor

Ok, I'll try to make sure this does not confuse other people as well. Thanks

flaviocopes added a commit that referenced this issue Jun 6, 2017
…n/gpm install`, and also when running on a non-skeleton site #1027

```
$ bin/grav install
HINT Are you trying to install Grav? Grav is already installed. You
need to run this command only if you download a skeleton from GitHub
directly.

$ bin/grav install admin
HINT Are you trying to install a plugin or a theme? Make sure you use
bin/gpm install <something>, not bin/grav install. This command is only
used to install Grav skeletons.
```
@flaviocopes
Copy link
Contributor

This should work

$ bin/grav install
HINT Are you trying to install Grav? Grav is already installed. You
need to run this command only if you download a skeleton from GitHub
directly.

$ bin/grav install admin
HINT Are you trying to install a plugin or a theme? Make sure you use
bin/gpm install <something>, not bin/grav install. This command is only
used to install Grav skeletons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants