Skip to content

On compilation error, screen does not clear, requires force exit / close tab #6

@andrewmartin

Description

@andrewmartin

This is definitely related to #4. When using the watch there is a LESS or CoffeeScript compilation error, the Terminal window freezes, causing some yucky output and preventing any readable characters.

Multiple attempts to press ctrl-c do nothing. Typing exit works, but obviously closes the Terminal tab. I've had this issue on multiple projects.

Screen Shot 2013-01-06 at 6 57 13 PM

Banshee rakefile:

def banshee input, output, options={}
  options = options.map { |k,v| "--#{k}" if v }.compact.join(' ')
  sh "banshee #{input}:#{output} #{options}"
end

task :build => ['js:build', 'css:build']
task :compress => ['js:compress', 'css:compress']
multitask :watch => ['js:watch', 'css:watch']

namespace :js do
  input = "assets/js/application.coffee"
  output = "assets/js/application.js"
  task :build do
    banshee input, output
  end
  task :compress do
    banshee input, output, compress: true
  end
  task :watch do
    banshee input, output, watch: true
  end
end

namespace :css do
  input = "assets/css/less/application.less"
  output = "assets/css/application.css"
  task :build do
    banshee input, output
  end
  task :compress do
    banshee input, output, compress: true
  end
  task :watch do
    banshee input, output, watch: true
  end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions