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

Terminus v2 installation and errors #26

Open
krigsstev opened this issue Feb 27, 2019 · 3 comments
Open

Terminus v2 installation and errors #26

krigsstev opened this issue Feb 27, 2019 · 3 comments

Comments

@krigsstev
Copy link

I've deleted my old pancakes plugin in ~/.terminus/plugins but run into the following issues:

  1. composer create-project --stability=beta -d ~/.terminus/plugins/ terminus-plugin-project/terminus-pancakes-plugin:~2

[InvalidArgumentException]
Could not find package terminus-plugin-project/terminus-pancakes-plugin with version ~2.

So I downloaded the zipped 2x branch and placed in plugins, and it works, but every use of terminus gives these warnings:

Warning: include(~/.terminus/plugins/terminus-pancakes-plugin/src/Commands/../../vendor/autoload.php): failed to open stream: No such file or directory in /Users/ransom/.terminus/plugins/terminus-pancakes-plugin/src/Commands/PancakesCommand.php on line 13

Warning: include(): Failed opening '~/.terminus/plugins/terminus-pancakes-plugin/src/Commands/../../vendor/autoload.php' for inclusion (include_path='.:') in ~/.terminus/plugins/terminus-pancakes-plugin/src/Commands/PancakesCommand.php on line 13

line 13 is the vendor/autoload.php include. I've commented that out or now with no ill effects to Pancakes that I can tell.

@bentekwork
Copy link

Since it wasn't installed via composer the autoloader wasn't generated on your local machine. You will need to delete the composer.lock (which exists in the 2.x branch) file and run composer install from the root of the plugin directory.

@acrosman
Copy link

I'm running into issues with Terminus rejecting pancakes as well. I removed the old copy and re-ran with the current setup instructions and got the following:

$ composer create-project --stability=beta -d ~/.terminus/plugins/ terminus-plugin-project/terminus-pancakes-plugin:~1
Installing terminus-plugin-project/terminus-pancakes-plugin (1.1.1)
  - Installing terminus-plugin-project/terminus-pancakes-plugin (1.1.1): Loading from cache
Created project in /Users/acrosman/.terminus/plugins/terminus-pancakes-plugin
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files

$ terminus
 [warning] Could not load plugin terminus-plugin-project/terminus-pancakes-plugin because it is not compatible with this version of Terminus.
Terminus 2.0.0
...

@annstringer
Copy link

As of today, I received the "Could not find package" error. (I was able to install it.) Just leaving an FYI.

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