Jetbrains Rider FileWatcher is not working...

I am not sure if this is the right place to ask but whatever I do I cannot make the filewatcher to change the css file from the rider. It however works when I run from the command prompt.

cmd.exe /D /C call C:\Users\skd\AppData\Roaming\npm\sass.cmd style.scss:style.css

My settings in the FileWatcher is:

 

0

The watcher settings look fine; what problems have you faced namely? a screen recording of the issue would be helpful

0

okay here it is...

https://www.dropbox.com/s/vl924tf8zmvov2d/2022-05-27_12-59-03.mp4?dl=0

Note that when the command is run from a command prompt it works

 

0

very strange.. Did you try refreshing the VFS once the compilation completes (File > Reload all from disk)?

0

Just tried and it won't budge.

Noticed another thing, if I make a change in the scss, the css file does not change. However, if I make another change in css (like a blank space) the css change is immediately shown.

Is it possible the css file is not updating on the rider? unless I make another change?

 

0

ok leaving the "output path to refresh" to empty did the trick. ref: https://rider-support.jetbrains.com/hc/en-us/community/posts/4414606654098-File-watcher-for-sass-not-updating-the-css-file-after-the-first-time.

I wasted a lot of time sifting through many posts. Hopefully this will help someone else.

0

It's strange. Emptying this field may help only in case if you have some other file watcher configured that, once the css file is updated, overwrites it. If you leave the field empty, the IDE won't see that the CSS file is changed until you move the focus from/to the IDE (so that the VFS is refreshed), so the other watcher won't be triggered immediately

1

I am also using the visual studio 2019 and have visual studio extension to automatically compile these files when the scss file changes. This however works when inside the visual studio. Does this have anything to do with it?

0

>Does this have anything to do with it?

Not sure... It must be a tool that is running in background and watching SCSS/CSS files for changes. Not necessary a compiler/beautifier, can be a sort of backup utility.

0

请先登录再写评论。