CSS change notifier crashed

AI-generated summary

Overgrow reports an issue where the “CSS change notifier crashed” error occurs when updating a .scss file on a development server, requiring manual page reloads to see changes. The error indicates a No such file or directory issue for discourse-custom-plugin.scss, which is registered via register_asset in plugin.rb. Overgrow notes this is their only stylesheet and hasn’t occurred with other plugins using the same method. j.jaffeux requests a repository to help troubleshoot. Since Overgrow states it is a local custom testing plugin without a repo, j.jaffeux advises creating a minimal repository by copying the plugin and removing unnecessary code until the error is reproduced. Overgrow agrees to attempt replication in a fresh repo.

Can you help me troubleshoot this error?

When updating my .scss file on a development server, I’m getting following error and I need to reload the page manually to see the changes.

CSS change notifier crashed
No such file or directory @ rb_sysopen - /home/overgrow/discourse/app/assets/stylesheets/discourse-custom-plugin.scss

It’s a .scss file registered in plugin.rb

register_asset "stylesheets/custom-style.scss", :desktop

It’s the only stylesheet in the project.

I haven’t got a similar problem with any other plugin using the same method.

Can you share the repo please?

2 Likes

It’s my custom testing plugin on the local development server, there is no repo. Sorry.

How to track the source of the problem?

I’ve already tried to restart the Unicorn.

It can be a lot of things, even your path seems unexpected to me here, but honestly if you want us to dig this, build us a simple repository demonstrating the issue.

Make a copy of your plugin, and remove stuff till there’s the minimum needed for the error.

3 Likes

Sounds good, I’ll try if I can replicate it in a fresh repo. Thank you.

2 Likes