Giter Club home page Giter Club logo

envy's People

Contributors

a-bashtannik avatar dependabot[bot] avatar kayw-geek avatar lukeraymonddowning avatar mdavis1982 avatar olivernybroe avatar owenvoke avatar skylerkatz avatar xico2k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

envy's Issues

RuntimeException: None has no value

Running php artisan envy:sync yields a weird error:


   RuntimeException 

  None has no value.

  at vendor/phpoption/phpoption/src/PhpOption/None.php:45
     41▕     }
     42▕
     43▕     public function get()
     44▕     {
  ➜  45▕         throw new \RuntimeException('None has no value.');
     46▕     }
     47▕
     48▕     public function getOrCall($callable)
     49▕     {

      +1 vendor frames 
  2   [internal]:0
      Worksome\Envy\Actions\ReadEnvironmentFile::Worksome\Envy\Actions\{closure}()

      +4 vendor frames 
  7   [internal]:0
      Worksome\Envy\Envy::Worksome\Envy\{closure}()

This is in laravel/framework v8.83.9 and worksome/envy v0.4.0

Call to undefined function Termwind\ValueObjects\mb_strimwidth()

I got error Call to undefined function mb_strimwidth() after command

 php artisan envy:sync ↙️

                                                        
  1 update for /.env.example                       1/1  
                                                        

 • CLOCKWORK_REQUESTS_SLOW_THRESHOLD 


 How would you like to handle these updates? [Add to environment file]:
  [0] Add to environment file
  [1] Add to exclusions
  [2] Cancel
 > 0


                              
 Environment variables added! 
                              


   **Error** 

  Call to undefined function Termwind\ValueObjects\mb_strimwidth()

  at vendor/nunomaduro/termwind/src/ValueObjects/Styles.php:933
    929▕      */
    930▕     private static function trimText(string $text, int $width): string
    931▕     {
    932▕         preg_match_all(self::STYLING_REGEX, $text, $matches, PREG_OFFSET_CAPTURE);
  ➜ 933▕         $text = rtrim(mb_strimwidth(preg_replace(self::STYLING_REGEX, '', $text) ?? '', 0, $width, '', 'UTF-8'));
    934▕ 
    935▕         foreach ($matches[0] ?? [] as [$part, $index]) {
    936▕             $text = substr($text, 0, $index).$part.substr($text, $index, null);
    937▕         }

      +21 vendor frames 
  22  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()

Enviroment: Ubuntu->WSL->Win10

PHP 8.1.2 (cli) (built: Jan 24 2022 10:42:33) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.2, Copyright (c), by Zend Technologies
    with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans

composer

    "require": {
        "php": "^8.0.2",
        "laravel/framework": "^9.9.0",
        "laravel/sanctum": "^2.11",
        "laravel/tinker": "^2.5",
        "worksome/envy": "^0.3.1"
    },
    "require-dev": {
        "nunomaduro/collision": "^6.1.0",

Fails if no .env.example exists to begin with

   ErrorException 

  file_get_contents(/Users/ajenbo/monorepo/projects/backoffice/backoffice-website/.env.example): Failed to open stream: No such file or directory

  at vendor/thecodingmachine/safe/generated/filesystem.php:319
    315▕         $result = \file_get_contents($filename, $use_include_path, $context, $offset);
    316▕     } elseif ($context !== null) {
    317▕         $result = \file_get_contents($filename, $use_include_path, $context);
    318▕     } else {
  ➜ 319▕         $result = \file_get_contents($filename, $use_include_path);
    320▕     }
    321▕     if ($result === false) {
    322▕         throw FilesystemException::createFromPhpError();
    323▕     }

      +4 vendor frames 
  5   [internal]:0
      Worksome\Envy\Envy::Worksome\Envy\{closure}("/Users/ajenbo/monorepo/projects/backoffice/backoffice-website/.env.example")

      +16 vendor frames 
  22  artisan:35
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

New Installation not working

Laravel new project

install package

modify .env - (add api configs, secrets, etc)

php artisan envy:install

php artisan envy:sync

"There are no variables to sync!"

Discussion Tab + Wildcard Support

Hey,

I wanted to add a suggestion, and in your git template, the feature suggestion opens a discussion chat, but since this repo doesn't have discussions enabled, it leads to a 404.

Instead of spamming you with another issue, how about I also add the feature request here :)

Would it be possible to include wildcard support for the exclusion list?
The clockwork library has a lot of keys in the env file which are generated, but in production, clockwork is not installed, so having them in the env file is useless.

I could manually add the 46 generated keys by this library in the exclusions config key, but how about having the option to instead add a 'CLOCKWORK_*'?

Scout vars are skipped

Hi guys,

I've just noticed that the SCOUT Env's are skipped, even though they are not in the exclusion list (envy.php).
So I'm believing this is a bug. I'm expecting to get at least SCOUT_QUEUE and SCOUT_DRIVER.
PS: config/scout.php is available. ;-)

Is it a Bug, or do I miss something?

Reproduce

Install Scout.
Remove SCOUT_QUEUE and SCOUT_DRIVER from env.example (if present)
Run php artisan envy:sync

Console-Output: There are no variables to sync!

Environment

Laravel Version ................................................................................................ 9.32.0
PHP Version .................................................................................................... 8.1.10
Composer Version ................................................................................................ 2.4.2
Environment ..................................................................................................... local
Debug Mode .................................................................................................... ENABLED

❯ composer show worksome/envy
versions : * v0.5.0

not compatible with php 7.4

[InvalidArgumentException]
Package worksome/envy has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version

image

Update nikic/php-parser to v5 to allow installation of PHPUnit 11

Is it possible to update the requirement of nikic/php-parser to ^5.0?

With

  • "worksome/envy": "^1.2"
  • "phpunit/phpunit": "^11.0.8",

Then composer update:

- Root composer.json requires phpunit/phpunit ^11.0.8 -> satisfiable by phpunit/phpunit[11.0.8, 11.0.x-dev, 11.1.x-dev].
- Root composer.json requires worksome/envy ^1.2 -> satisfiable by worksome/envy[v1.2.0].
- phpunit/php-code-coverage[11.0.0, ..., 11.0.x-dev] require sebastian/lines-of-code ^3.0 -> satisfiable by sebastian/lines-of-code[3.0.0, 3.0.x-dev].
- phpunit/phpunit[11.0.8, ..., 11.1.x-dev] require phpunit/php-code-coverage ^11.0 -> satisfiable by phpunit/php-code-coverage[11.0.0, ..., 11.0.x-dev].
- worksome/envy v1.2.0 requires nikic/php-parser ^4.15 -> satisfiable by nikic/php-parser[v4.15.0, ..., 4.x-dev].
- You can only install one version of a package, so only one of these can be installed: nikic/php-parser[v3.1.0, ..., 3.x-dev, v4.3.0, ..., 4.x-dev, v5.0.0alpha1, ..., 5.0.x-dev].
- sebastian/lines-of-code[3.0.0, ..., 3.0.x-dev] require nikic/php-parser ^5.0 -> satisfiable by nikic/php-parser[v5.0.0alpha1, ..., 5.0.x-dev].
- Conclusion: don't install nikic/php-parser v5.0.2 (conflict analysis result)

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.