2011-12-06 1 views
0

私はsassプラグインを使用してintellijで自分のプロジェクトにsassを使用しています。Intellij外部ツールはSassからstdoutログを出力しません

私はintelij内からsass -watchを起動して、コンソールのフィードバックを得ることができるように、クリック可能な行を入れたいと思っています。

私はIntelliJの中に外部ツールの設定をしました:--watch $/FileRelativeDir $

  • 作業ディレクトリ:
  • パラメータsass.bat \ルビー\ビン\:

    • プログラム:D :$ ProjectFileDir $

    私のscssを問題なくコンパイルしますが、sassのstdoutはintellijコンソールには報告されません。私は標準偏差だけを取得します。 私はしばらくすると、一度にたくさんの行が表示されます。

    だから私は何らかの種類のバッファリングが起こっていると推測しています。 1> & 2をリダイレクトしても問題は解決しません。ここで

    は、私は、ログ

    Sass::Compiler#on_updating_stylesheet callback is deprecated and will be removed in a future release. Use Sass::Compiler#on_updated_stylesheet instead, which is run after stylesheet compilation. 
    d:/ruby/lib/ruby/gems/1.9.1/gems/sass-3.1.11/vendor/fssm/lib/fssm/support.rb:40: Use RbConfig instead of obsolete and deprecated Config. 
    

    に得るものだとここで私は、コンソールで同じコマンドを使用して得るものです:(はい私が生産する私のSCSSファイルで意図したエラーを持っている

    Sass::Compiler#on_updating_stylesheet callback is deprecated and will be removed in a future release. Use Sass::Compiler#on_updated_stylesheet instead, which is 
    run after stylesheet compilation. 
    >>> Sass is watching for changes. Press Ctrl-C to stop. 
         error src/main/www/css/test.scss (Line 3690: Invalid CSS after "...'); IE6 & IE7*": expected "{", was "/") 
         error src/main/www/css/test.scss (Line 80: Invalid CSS after "...unimplemented *": expected "{", was "/") 
    d:/ruby/lib/ruby/gems/1.9.1/gems/sass-3.1.11/vendor/fssm/lib/fssm/support.rb:40: Use RbConfig instead of obsolete and deprecated Config. 
    

    をログ)

  • 答えて

    3

    intellijルビープロジェクトのデフォルトのルビー引数のおかげです。

    あなたはルビーには、次のオプション渡す必要があります。

    -e $ stdout.sync =真; $ stderr.sync =真;負荷($ = 0 ARGV.shift)

    をし、それがトリックをした

    • プログラム:D:¥ruby¥bin¥ruby.exe
    • パラメータ:-e $ stdout.sync = true; $ stderr.sync = true; load($ 0 = ARGV.shift)d:/ ruby​​/bin/sass -g --watch $/FileRelativeDir $
    • 作業ディレクトリ:$ ProjectFileDir $
    関連する問題