Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message does not say much (and how to enable stack trace?) #95

Open
binarykitchen opened this issue Mar 11, 2015 · 1 comment
Open

Comments

@binarykitchen
Copy link

A recent run of our gulp-compass task failed on our CentOS build server:

{ [Error: Compass failed]
  message: 'Compass failed',
  fileName: '/home/buildagent/workspace/xxx/assets/theming/yyy.scss',
  showStack: false,
  showProperties: true,
  plugin: 'gulp-compass',
  __safety: { toString: [Function] } }

It doesn't say much, why, what and where the error is coming from. How can we set showStack to true?

We are using gulp-compass v2.0.3 here and on the build server we have these gems installed:

compass (1.0.1, 0.12.1)
compass-core (1.0.1)
compass-import-once (1.0.5)

our gulp task is:

gulp.task('theming', ['theming:static'], ->
  gulp.src("assets/theming/**/brands/#{config.brand}/*.scss")
    .pipe(compass(
      debug:       config.debug
      logging:     config.debug
      comments:    not config.sass.compress
      sourcemap:   config.sass.sourcemaps
      style:       config.sass.style
      sass:        'assets/theming/brands'
      css:         "#{paths.public}/brands"
      image:       "#{paths.public}/images"
      font:        "#{paths.public}/fonts"
      import_path: path.resolve('assets/theming')
      config_file: compassConfig(
        """
        generated_images_dir = "#{paths.public}/images"
        asset_cache_buster { "v=#{version}" }
        """
      )
    ))
    .on('error', console.error.bind(console))
    .pipe(tap(logFile))
)

any clues?

@appleboy
Copy link
Owner

Config debug mode and then you can find the compss command. Copy command and paste to your terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants