GithubHelp home page GithubHelp logo

Comments (10)

qbarbosa avatar qbarbosa commented on August 18, 2024 1

In the file lib/capistrano/tasks/symfony.rake line 53

Shouldn't we replace this

if test "[ -d #{symfony_cache_path} ]"
          execute :rm, "-rf", symfony_cache_path

with this

if test "[ -d #{symfony_cache_path} ]"
          execute :rm, "-rf", fetch(:symfony_cache_path)

?

from symfony.

folliked avatar folliked commented on August 18, 2024 1

i think, it doesn't load DSL libs of capistrano/symfony

from symfony.

arjanvdbos avatar arjanvdbos commented on August 18, 2024 1

We managed to 'solve' the issue. While we were changing stuff, we continuously tested with the --dry-run option. An that's exactly the issue; it looks like that this module breaks in dry-run-mode, the normal run-mode is working like a charm!

from symfony.

qbarbosa avatar qbarbosa commented on August 18, 2024

I have exactly the same problem here!

Capistrano v3.4, capistrano/symfony v1.0.0.rc2

** Execute symfony:create_cache_dir
cap aborted!
NameError: undefined local variable or method `symfony_cache_path' for #<SSHKit::Backend::Printer:0x007fb6a54d93e8>
/Library/Ruby/Gems/2.0.0/gems/capistrano-symfony-1.0.0.rc2/lib/capistrano/tasks/symfony.rake:52:in `block (4 levels) in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/sshkit-1.11.1/lib/sshkit/backends/abstract.rb:85:in `within'
/Library/Ruby/Gems/2.0.0/gems/capistrano-symfony-1.0.0.rc2/lib/capistrano/tasks/symfony.rake:51:in `block (3 levels) in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/sshkit-1.11.1/lib/sshkit/backends/abstract.rb:29:in `instance_exec'
/Library/Ruby/Gems/2.0.0/gems/sshkit-1.11.1/lib/sshkit/backends/abstract.rb:29:in `run'
/Library/Ruby/Gems/2.0.0/gems/sshkit-1.11.1/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
Tasks: TOP => symfony:create_cache_dir
The deploy has failed with an error: undefined local variable or method `symfony_cache_path' for #<SSHKit::Backend::Printer:0x007fb6a54d93e8>
** Invoke deploy:failed (first_time)
** Execute deploy:failed

@folliked have you found how to fix this?

from symfony.

nescim avatar nescim commented on August 18, 2024

Did anybody find a workaround? @folliked seems to be right since the offending variable is defined in the DSL folder but I don't have enough experience with Capistrano to figure out how to include it manually and even google does not yield anythiong useful.

from symfony.

jbgomond avatar jbgomond commented on August 18, 2024

Same problem for me and "symfony_console" is not defined too ...

Ruby 2.3.3, Capistrano 3.7.1 and capistrano/symfony 1.0.0-rc2

Could you look @peterjmit ? I don't have enough experience with Ruby and Capistrano ...

from symfony.

pbowyer avatar pbowyer commented on August 18, 2024

Having recreated my Vagrant box after running for a year, I now have this error too.

(Backtrace restricted to imported tasks)
cap aborted!
NameError: undefined local variable or method `symfony_cache_path' for #<SSHKit::Backend::Printer:0x000000015ad308>

Tasks: TOP => symfony:create_cache_dir
(See full trace by running task with --trace)
The deploy has failed with an error: undefined local variable or method `symfony_cache_path' for #<SSHKit::Backend::Printer:0x000000015ad308>

from symfony.

arjanvdbos avatar arjanvdbos commented on August 18, 2024

Same issue here, both undefined local variable or method `symfony_cache_path' and 'symfony_console'. It seems that the DSL file is parsed (putting gibberish in it results in an parse error), but not actually used/available.

  • Ruby 2.5.1
  • Capistrano 3.10.2
  • capistrano/symfony 1.0.0-rc3

Nobody found a workaround yet? I don't have a lot of experience with Ruby in order to do proper debugging.

from symfony.

Nyholm avatar Nyholm commented on August 18, 2024

Closing this due inactivity. Feel free to ping me if this is still an issue.

from symfony.

HeahDude avatar HeahDude commented on August 18, 2024

I ran into this issue today. Trying to use --dry-run seems broken, which is sad as it prevents proper debugging.

from symfony.

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.