Code Monkey home page Code Monkey logo

Comments (5)

mrnugget avatar mrnugget commented on May 31, 2024

I have the same problem, but with rspec too. :Dispatch works inside a rails project, when running the specs with Zeus (e.g. :Dispatch zeus rspec --color spec/models/user_spec.rb) or with bundle exec (e.g. :Dispatch bundle exec rspec --color spec/models/user_spec.rb).

With rspec globally installed and a simple _spec.rb-file, :Dispatch shows the behaviour described above when used in combination with tmux:

  • :make % - works, runs the test
  • :Make % - opens a split pane, closes it and doesn't show anything in the quickfix window
  • :!rspec % - works, runs the test
  • :Dispatch rspec % - opens a split pane, closes it and doesn't show anything in the quickfix window

I made a simple ascii.io recording to show what's happening. The recording doesn't show that all of this is happening in a tmux session, but it actually is.

Do you need any more information?

Edit:

I just tried this out with a simple minitest file and got the same results.

from vim-dispatch.

tpope avatar tpope commented on May 31, 2024

Check :Copen afterwards for errors.

from vim-dispatch.

mrnugget avatar mrnugget commented on May 31, 2024

Check :Copen afterwards for errors.

I just did that and it's empty. But I now changed that spec so that it fails and well, now the quickfix window stays open and does contain the error. So I guess that's the desired behaviour: do not show anything if there are no errors but open the quickfix window if there are any.

Thanks for clearing that up! So it's just a different behaviour from using bundle exec rspec, which keeps X examples, 0 failures in the quickfix window.

from vim-dispatch.

dhruvasagar avatar dhruvasagar commented on May 31, 2024

I think this is what's happening: when Dispatch recognizes the filetype it uses a compiler with make, so in case there are no errors, the quickfix is empty.

from vim-dispatch.

tpope avatar tpope commented on May 31, 2024

Yeah, sounds like this is the desired behavior. One could debate whether the ruby compiler should capture more informative output rather than just errors.

from vim-dispatch.

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.