Coder Social home page Coder Social logo

Comments (14)

dcblogdev avatar dcblogdev commented on June 15, 2024 3

for now for versions 7 & 8 the symfony update can be skipped by adding into composer.json

"conflict": {
    "symfony/console": "5.4.35"
  }

For version 8 set the version specifically

"nwidart/laravel-modules": "8.3"

https://stackoverflow.com/questions/77918736/laravel-composer-install-suddenly-returns-an-option-shortcut-cannot-be-empty/77920770#77920770

from laravel-modules.

dcblogdev avatar dcblogdev commented on June 15, 2024 2

this stems from an internal change in symfony/symfony#53516 will get the branches updated, looking at v7+

from laravel-modules.

dcblogdev avatar dcblogdev commented on June 15, 2024 2

I've released 2 new versions please update:

V7 use https://github.com/nWidart/laravel-modules/releases/tag/7.4.0
v8 use https://github.com/nWidart/laravel-modules/releases/tag/8.6.0

from laravel-modules.

dcblogdev avatar dcblogdev commented on June 15, 2024 1

okay, I'll need to figure out how to do a release for 2 versions back. Every time I've tried to do a release manually its included the recent changes.

I was hoping Symfony was going to do an immediate release but looks like that's not going to happen for a few weeks.

from laravel-modules.

sagar-patona avatar sagar-patona commented on June 15, 2024

i am also getting the same issue.

i am using I'm using "nwidart/laravel-modules": "8.2"

image

from laravel-modules.

emyu01 avatar emyu01 commented on June 15, 2024

I am also getting same issue

from laravel-modules.

dzung1nguyen avatar dzung1nguyen commented on June 15, 2024

Same error in v8.3.0 with laravel 8 and php 8.1
if v8.4.0, i got error:
image

from laravel-modules.

suryakaritva avatar suryakaritva commented on June 15, 2024

Same error for me all of a sudden in laravel 7.2
Illuminate\Foundation\ComposerScripts::postAutoloadDump

@php artisan package:discover --ansi

An option shortcut cannot be empty.

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

from laravel-modules.

dcblogdev avatar dcblogdev commented on June 15, 2024

waiting on symfony/symfony#53711 this should resolve the issue.

from laravel-modules.

jayminsilicon avatar jayminsilicon commented on June 15, 2024

@dcblogdev Symfony PR is merged now however release will happen in upcoming days as 5.4.35. Ref : symfony/symfony#53711 (comment)
Meanwhile can we make release of last pr #1730 ?

Thanks

from laravel-modules.

dcblogdev avatar dcblogdev commented on June 15, 2024

@jayminsilicon do you know how to issue a release for versions 7 & 8, I haven't as yet ever had to do a release for past versions.

from laravel-modules.

aghoshsuraj555 avatar aghoshsuraj555 commented on June 15, 2024

@dcblogdev is there any permanent solution for this.
I tried your above solution but it will not be help after deleting vendor file and composer.lock.
so is there permanent solution for this.

from laravel-modules.

azeiee1010 avatar azeiee1010 commented on June 15, 2024

I have tried a solution.

  1. Create a customTestMakeCommand and extend the TestMakeCommand.
  2. Override the getOptions function
<?php

namespace App\Console\Commands;

use Nwidart\Modules\Commands\TestMakeCommand as OriginalTestMakeCommand;
use Symfony\Component\Console\Input\InputOption;

class CustomTestMakeCommand extends OriginalTestMakeCommand
{
    protected function getOptions()
    {
        return [
            ['feature', null, InputOption::VALUE_NONE, 'Create a feature test.'],
        ];
    }
}

  1. Bind it in AppServiceProvider
    $this->app->bind(TestMakeCommand::class, CustomTestMakeCommand::class);

It worked locally for me. Now getting an issue on my deployment side. If that is fixed then it could be a temporary solution.

from laravel-modules.

opusaha avatar opusaha commented on June 15, 2024

I am also getting same issue

@php artisan package:discover --ansi

An option shortcut cannot be empty.

from laravel-modules.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.