Problem with File Watcher

Hey Community,

 

I'm using phpstorm for a while now. But on my iMac I always get this info after I click {CMD} + {S} to save my project. It seems like File Watcher takes too much time, to complie my scss file in a css file / map. How can I fix that?

Here are my file watcher seetings:

 

And I have actived this in my deployment settings:

 

I hope you guys can help me, solving this problem. Thank you!

0
Avatar
Permanently deleted user

Hello,

Are you able to reproduce this with other projects? How many of CSS-related file watchers do you have?

What PhpStorm version do you use? When you reproduce the error, what is coming up in Help > Show Log in ... > idea.log file?

0
Avatar
Permanently deleted user

Hey Vladimir,

I'm using version 2017.2.4.

I can reproduce it with other projects. Sometimes the scss file isnt that big, so the error wont show up only twice per upload, but it is.

The curious part is, on my macbook pro (late 2014), everything works fine. It has a SSD too and same RAM etc. Almost identical to the important hardware facts.

Here is the logfile part:

2017-10-02 23:48:11,404 [257436905]  ERROR - jediterm.terminal.TerminalMode - Mode EightBitInput is not implemented, setting to true 
2017-10-02 23:51:42,222 [257647723]   WARN - nnections.PatchedFtpFileSystem - Failed to send keep-alive message.
org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received.  Server closed connection.

And how it happend:

I changed something in my _site.scss file. PHPStorm shows "Executing 'SCSS Task...". When this is active and I am saving the file, while this task is running, the error comes up like shown before. If I wait until the task is done and save, everything works fine (not always, but more ofter). If I do the same procedure on my Macbook, everything works fine.

Sure I could wait until the task is ready, but holy cow, this takes me hours for coding a project. I save every ten or twenty seconds and phpstorm is compiling the file almost every 2 seconds. You can imagine how long it takes and how much time I waste for that.

0

Does this

2017-10-02 23:51:42,222 [257647723]   WARN - nnections.PatchedFtpFileSystem - Failed to send keep-alive message. 
org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received.  Server closed connection.

happen on every upload failure? If it does, please set the keep-alive sending interval to 30 seconds in Advanced Options of the FTP deployment configuration.

0
Avatar
Permanently deleted user

Hey Eugene,

I have set the time to 30 seconds

 

But the error is still there. It only happens if I save the file during the "Executing SCSS Task" action.

0
Avatar
Permanently deleted user

Any thougths someone? :(

0

It's complicated. There was a similar request once, but it's fixed already: https://youtrack.jetbrains.com/issue/WEB-20970
I think we have to troubleshoot that deeply, in a support ticket, so your private data won't be shared on the forum.

Could you please submit one, attaching the logs (Help | Collect and Show Logs in Finder) after reproduction and also a project that will most likely reproduce that?

Thank you!

https://intellij-support.jetbrains.com/hc/

0
Avatar
Permanently deleted user
Building native extensions.  This could take a while...
ERROR:  Error installing sass:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.18 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.18/ext/ffi_c/gem_make.out
Nothing to update

A friend of mine said it could be a problem with sass. I've tried to update sass (current version is 3.4.24) and this error occurs. Could this be possible?

If not, I will give you the files asap.

 

 

0

Partially offtopic ... but have you tried/considered to try node-sass (you will need Node.js) instead of Ruby powered one?

0

请先登录再写评论。