why i cant publish package in laravel - laravel

When I Use php artisan vendor:publish This Code Ask To me for chose Pack for publish and When i type package Number Like (10) and Press Enter I Have This Error
E:\laravel\okdd>11
'11' is not recognized as an internal or external command,
operable program or batch file.
This is My Package's List When i type php artisan vendor:publish
E:\laravel\okdd>php artisan vendor:publish
Which provider or tag's files would you like to publish?:
[0 ] Publish files from all providers and tags listed below
[1 ] Provider: Anhskohbo\NoCaptcha\NoCaptchaServiceProvider
[2 ] Provider: Cviebrock\EloquentSluggable\ServiceProvider
[3 ] Provider: Facade\Ignition\IgnitionServiceProvider
[4 ] Provider: Fideloper\Proxy\TrustedProxyServiceProvider
[5 ] Provider: Fruitcake\Cors\CorsServiceProvider
[6 ] Provider: Illuminate\Foundation\Providers\FoundationServiceProvider
[7 ] Provider: Illuminate\Mail\MailServiceProvider
[8 ] Provider: Illuminate\Notifications\NotificationServiceProvider
[9 ] Provider: Illuminate\Pagination\PaginationServiceProvider
[10] Provider: Laravel\Tinker\TinkerServiceProvider
[11] Provider: Shetabit\Payment\Provider\PaymentServiceProvider
[12] Provider: anlutro\LaravelSettings\ServiceProvider
[13] Tag: config
[14] Tag: cors
[15] Tag: flare-config
[16] Tag: ignition-config
[17] Tag: laravel-errors
[18] Tag: laravel-mail
[19] Tag: laravel-notifications
[20] Tag: laravel-pagination
[21] Tag: migrations
[22] Tag: views
>
Aborted.

I have had the same issue and I found that u could type this:
php artisan vendor:publish --provider="Shetabit\Payment\Provider\PaymentServiceProvider"
So you just write the provider name/path that you want to be published inside
--provider="Here".
Unfortunately, I couldn't find the reason why this error happens.

Related

Cypress intercept not finding fixture file

cy.intercept('POST', '/api/create_payment_intent', {
fixture: 'payment_intent.json', // fixture file with mocked response
}).as('createPaymentIntent');
payment_intent.json file exists at cypress/fixtures/ directory filled with valid json.
Error:
[1] [1] Error: An error was thrown while processing a network event: A fixture file could not be found at any of the following paths:
[1] [1]
[1] [1] > cypress/fixtures/payment_intent.json
[1] [1] > cypress/fixtures/payment_intent.json{{extension}}
[1] [1]
[1] [1] Cypress looked for these file extensions at the provided path:
[1] [1]
[1] [1] > .json, .js, .coffee, .html, .txt, .csv, .png, .jpg, .jpeg, .gif, .tif, .tiff, .zip
[1] [1]
[1] [1] Provide a path to an existing fixture file.
[1] [1]
[1] [1] Because this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `Neo4j Aura Console - Common`
[1] [1] Error: A fixture file could not be found at any of the following paths:
[1] [1]
[1] [1] > cypress/fixtures/payment_intent.json
[1] [1] > cypress/fixtures/payment_intent.json{{extension}}
[1] [1]
[1] [1] Cypress looked for these file extensions at the provided path:
Hoe does one debug this when I have done exactly what the documentation has stated?

unable to parse queue in pm2

I want to add these jobs in server but have error(pm2) :
apps:
- name: laravel-queue-worker
script:php /var/www/html/backendcodes/artisan
exec_mode: fork
interpreter: php
instances: 1
args:
- queue:work
- --queue=sendSms,sendNotification,sendEmail
- --tries=3
- --sleep=3
when I run
pm2 start laravel-queue-worker.yml
it returns :
[PM2][ERROR] File laravel-queue-worker.yml malformated
{ [Error: Unable to parse.]
message: 'Unable to parse.',
parsedLine: 3,
snippet: 'script:php /var/www/html/raffle-backend-master/artisan' }
Try with this .yaml, you can use a lint online for check the syntax, like this.
The problem was here -> script:php/var/www/html/backendcodes/artisan
You need to insert a space after script:.
apps:
-
args:
- "queue:work"
- "--queue=sendSms,sendNotification,sendEmail"
- "--tries=3"
- "--sleep=3"
exec_mode: fork
instances: 1
interpreter: php
name: laravel-queue-worker
script: "php /var/www/html/backendcodes/artisan"

Error when trying to render animation with julialang

I am trying to get into animations using the Plots package. I am following this tutorial: https://docs.juliaplots.org/latest/animations/
However when trying to execute the program I get the following error:
ERROR: LoadError: failed process: Process(`/home/olep/.julia/artifacts/7f40eeb66d90d3026ae5fb68761c263b57adb840/bin/ffmpeg -v 16 -framerate 3 -i /tmp/jl_h1sGUw/%06d.png -i /tmp/jl_h1sGUw/palette.bmp -lavfi paletteuse=dither=sierra2_4a -loop 0 -y /home/olep/Documents/Studium/Semester2/tutorial_anim_fps30.gif`, ProcessSignaled(11)) [0]
Stacktrace:
[1] run
# ./process.jl:438 [inlined]
[2] (::FFMPEG.var"#4#6"{Cmd})(command_path::String)
# FFMPEG ~/.julia/packages/FFMPEG/aazvf/src/FFMPEG.jl:114
[3] (::JLLWrappers.var"#2#3"{FFMPEG.var"#4#6"{Cmd}, String})()
# JLLWrappers ~/.julia/packages/JLLWrappers/bkwIo/src/runtime.jl:49
[4] withenv(::JLLWrappers.var"#2#3"{FFMPEG.var"#4#6"{Cmd}, String}, ::Pair{String, String}, ::Vararg{Pair{String, String}, N} where N)
# Base ./env.jl:161
[5] withenv_executable_wrapper(f::Function, executable_path::String, PATH::String, LIBPATH::String, adjust_PATH::Bool, adjust_LIBPATH::Bool)
# JLLWrappers ~/.julia/packages/JLLWrappers/bkwIo/src/runtime.jl:48
[6] #invokelatest#2
# ./essentials.jl:708 [inlined]
[7] invokelatest
# ./essentials.jl:706 [inlined]
[8] #ffmpeg#7
# ~/.julia/packages/JLLWrappers/bkwIo/src/products/executable_generators.jl:7 [inlined]
[9] ffmpeg
# ~/.julia/packages/JLLWrappers/bkwIo/src/products/executable_generators.jl:7 [inlined]
[10] #exe#2
# ~/.julia/packages/FFMPEG/aazvf/src/FFMPEG.jl:113 [inlined]
[11] ffmpeg_exe
# ~/.julia/packages/FFMPEG/aazvf/src/FFMPEG.jl:125 [inlined]
[12] buildanimation(anim::Animation, fn::String, is_animated_gif::Bool; fps::Int64, loop::Int64, variable_palette::Bool, verbose::Bool, show_msg::Bool)
# Plots ~/.julia/packages/Plots/vVVub/src/animation.jl:98
[13] #gif#232
# ~/.julia/packages/Plots/vVVub/src/animation.jl:64 [inlined]
[14] top-level scope
# ~/Documents/Studium/Semester2/EM2/HW/01/animTest.jl:11
in expression starting at /home/olep/Documents/Studium/Semester2/EM2/HW/01/animTest.jl:11
I am on manjaro (Arch linux).
Any ideas what’s going wrong?
Manjaro:
Reinstall julia -> julia-bin
sudo pamac install julia-bin

jekyll not updating static CSS, HTML files in docker development container

I am debugging an issue where I am doing my development inside of a Docker container, but Jekyll is not properly updating static HTML or CSS files after the first time it has been written. I have added the following code to static_file.rb after line 83:
sha256_src = Digest::SHA256.file path
sha256_dst = Digest::SHA256.file dest_path
fail "invalid file copy: #{path} / #{dest_path}" unless sha256_src == sha256_dst
And I see that the fail triggered because the hash does not match. Instead, an older version of the static file at path has been copied to dest_path. I thought I was losing my mind, but I know that Docker uses layered file systems and so I wonder if I am hitting some kind of bug or known issue.
Are there any known issues with using the following technologies in tandem with each other:
Jekyll
Docker containers
Linux containers
FileUtils cp method
Ruby 2.2.3p173
I have had to work around it by running the following command:
cp s5/*.css _site/s5/
cp s5/*.html _site/s5/
Instead of having it work automatically for me with jekyll build.
Here is how I am linking my files to the docker image:
export ABSPATH=$(cd "$(dirname "$0")"; cd ../; pwd)
docker run -d --name static -t -i -p 4000:4000 -p 2422:22 --link static-db:db -v "$ABSPATH:/mnt/app" me/static:0.0.2 /sbin/my_init --enable-insecure-key
Docker version:
Client:
Version: 1.8.3
API version: 1.20
Go version: go1.4.2
Git commit: f4bf5c7
Built: Mon Oct 12 18:01:15 UTC 2015
OS/Arch: darwin/amd64
Server:
Version: 1.8.3
API version: 1.20
Go version: go1.4.2
Git commit: f4bf5c7
Built: Mon Oct 12 18:01:15 UTC 2015
OS/Arch: linux/amd64
Docker info:
Containers: 10
Images: 265
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 285
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.10-boot2docker
Operating System: Boot2Docker 1.8.3 (TCL 6.4); master : af8b089 - Mon Oct 12 18:56:54 UTC 2015
CPUs: 1
Total Memory: 3.859 GiB
Name: dev
ID: ZY6F:2VSO:EDRL:TWYE:JAS6:5GC3:PPAO:TNA6:KCCB:HFLC:4IQB:5BYE
Debug mode (server): true
File Descriptors: 21
Goroutines: 33
System Time: 2015-10-18T18:36:20.08630971Z
EventsListeners: 0
Init SHA1:
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Username: me
Registry: https://index.docker.io/v1/
Labels:
provider=virtualbox
I am running this linked to a volume on OSX.
Here is an interactive session using binding.pry inside of static_file.rb. You can see that FileUtils.cp is not working properly.
In step 9-10 one can see I am manually invoking the FileUtils::cp command, and the resulting file hash is aa75cd.... I even try using FileUtils.cp to copy my original file to a different file path without success. However, in step 20-21, when I invoke the shell cp command directly using cp, it works and the resulting file has the proper hash of 724707....
Parsing Haml layouts...done.
Parsing Scss layouts...done.
Configuration file: /mnt/app/_config.yml
Source: /mnt/app
Destination: /mnt/app/_site
Generating...
From: /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/static_file.rb # line 92 Jekyll::StaticFile#write:
77: def write(dest)
78: dest_path = destination(dest)
79:
80: return false if File.exist?(dest_path) and !modified?
81: ##mtimes[path] = mtime
82:
83: FileUtils.mkdir_p(File.dirname(dest_path))
84: FileUtils.rm(dest_path) if File.exist?(dest_path)
85:
86: FileUtils.cp(path, dest_path)
87:
88: sha256_src = Digest::SHA256.file path
89: sha256_dst = Digest::SHA256.file dest_path
90:
91: if sha256_src != sha256_dst
=> 92: binding.pry
93: end
94: puts "invalid file copy: #{path} / #{dest_path}" unless sha256_src == sha256_dst
95:
96: true
97: end
[1] pry(#<Jekyll::StaticFile>)> path
=> "/mnt/app/styles/scruff5.css"
[2] pry(#<Jekyll::StaticFile>)> dest_path
=> "/mnt/app/_site/styles/scruff5.css"
[3] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file path
=> #<Digest::SHA256: 72470716291c6fef0c8c2151a0d0997f0991396cda964ba48e3cbb65cc7f7908>
[4] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file dest_path
=> #<Digest::SHA256: aa75cd20ddf51b86ec2344002532f08891e05eb1a0a9f7e5f99d8fda05c5c920>
[5] pry(#<Jekyll::StaticFile>)> dest_path
=> "/mnt/app/_site/styles/scruff5.css"
[6] pry(#<Jekyll::StaticFile>)> FileUtils.rm(dest_path)
=> ["/mnt/app/_site/styles/scruff5.css"]
[7] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file dest_path
Errno::ENOENT: No such file or directory # rb_sysopen - /mnt/app/_site/styles/scruff5.css
from /usr/local/lib/ruby/2.2.0/digest.rb:49:in `initialize'
[8] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file path
=> #<Digest::SHA256: 72470716291c6fef0c8c2151a0d0997f0991396cda964ba48e3cbb65cc7f7908>
[9] pry(#<Jekyll::StaticFile>)> FileUtils.cp(path, dest_path)
=> nil
[10] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file dest_path
=> #<Digest::SHA256: aa75cd20ddf51b86ec2344002532f08891e05eb1a0a9f7e5f99d8fda05c5c920>
[11] pry(#<Jekyll::StaticFile>)> dest_path
=> "/mnt/app/_site/styles/scruff5.css"
[12] pry(#<Jekyll::StaticFile>)> dest_path = dest_path + '-2'
=> "/mnt/app/_site/styles/scruff5.css-2"
[13] pry(#<Jekyll::StaticFile>)> FileUtils.cp(path, dest_path)
=> nil
[14] pry(#<Jekyll::StaticFile>)> FileUtils.cp(path, dest_path)
=> nil
[15] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file dest_path
=> #<Digest::SHA256: aa75cd20ddf51b86ec2344002532f08891e05eb1a0a9f7e5f99d8fda05c5c920>
[16] pry(#<Jekyll::StaticFile>)> (Digest::SHA256.file dest_path).hexdigest
=> "aa75cd20ddf51b86ec2344002532f08891e05eb1a0a9f7e5f99d8fda05c5c920"
[17] pry(#<Jekyll::StaticFile>)> (Digest::SHA256.file path).hexdigest
=> "72470716291c6fef0c8c2151a0d0997f0991396cda964ba48e3cbb65cc7f7908"
[18] pry(#<Jekyll::StaticFile>)> FileUtils.rm dest_path
=> ["/mnt/app/_site/styles/scruff5.css-2"]
[19] pry(#<Jekyll::StaticFile>)> dest_path = '/mnt/app/_site/styles/scruff5.css'
=> "/mnt/app/_site/styles/scruff5.css"
[20] pry(#<Jekyll::StaticFile>)> `cp #{path} #{dest_path}`
=> ""
[21] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file dest_path
=> #<Digest::SHA256: 72470716291c6fef0c8c2151a0d0997f0991396cda964ba48e3cbb65cc7f7908>
[22] pry(#<Jekyll::StaticFile>)>
After doing the above analysis and determining that [FileUtils.cp][1] seemed to be at the root of this issue, I downgraded from Ruby 2.2.1 to Ruby 2.1.7p400, and this issue now appears to be corrected. It would appear that Ruby 2.2.1 has a potentially version serious regression in FileUtils.

FatalErrorException in PropelBundle.php line 29: Compile Error: Propel\PropelBundle\PropelBundle::boot(): Failed opening required

Im trying to use propel ORM with sympfony v-2.7
In my composer I've added this line
"propel/propel-bundle": "^1.4",
and installed this package successfully.
Then I load the Bundle into my karnel using this
$bundles = array(
new Propel\PropelBundle\PropelBundle(),
);
My config.yml settings
propel:
path: "%kernel.root_dir%/../vendor/propel"
phing_path: "%kernel.root_dir%/../vendor/phing"
logging: %kernel.debug%
dbal:
driver: %database_driver%
user: %database_user%
password: %database_password%
dsn: %database_driver%:host=%database_host%;dbname=%database_name%;charset=UTF8
options: {}
attributes: {}
But when I try to access- http://localhost/my-serp/web/
I got this Error
FatalErrorException in PropelBundle.php line 29:
Compile Error: Propel\PropelBundle\PropelBundle::boot(): Failed opening required 'D:\wamp\www\my-serp
\app/../vendor/propel/runtime/lib/Propel.php' (include_path='D:\wamp\www\my- serp\vendor/phing/phing/classes;D:\wamp
\www\my-serp\vendor/propel/propel1/runtime/lib;D:\wamp\www\my- serp\vendor/propel/propel1/generator/lib;.;C:\php\pear')
in PropelBundle.php line 29
at PropelBundle->boot() in bootstrap.php.cache line 2414
at Kernel->boot() in bootstrap.php.cache line 2442
at Kernel->handle() in app_dev.php line 28
at {main}() in app_dev.php line 0
I follow the documentation from github, can anybody say me what i've missed ??
Check/change your propel path to:
path: "%kernel.root_dir%/../vendor/propel/propel1"

Resources