# Saving Issues with Sass - rules deleted unexpectedly

**URL:** <https://forum.pinegrow.com/t/saving-issues-with-sass-rules-deleted-unexpectedly/4981>\
**Category:** Bug Reports\
**Tags:** bug\
**Created:** [February 18, 2021, 11:37am UTC](https://forum.pinegrow.com/t/saving-issues-with-sass-rules-deleted-unexpectedly/4981 "2021-02-18T11:37:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![timbowerbank](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@timbowerbank](https://forum.pinegrow.com/u/timbowerbank)\
**Post date:** [February 18, 2021, 11:37am UTC](https://forum.pinegrow.com/t/saving-issues-with-sass-rules-deleted-unexpectedly/4981/1 "2021-02-18T11:37:29Z")

</div>

Hi,

I’m having issues with saving. On multiple occasions, I have lost rules from the custom.scss.

I cannot think of the steps to reproduce this. However, in this recent loss, there was an error from one of the components - so this may have had an impact?

- The error was about a deleted field in an unrelated component - a side banner…
- The sass rules that were lost were being created for a non-component
- The Pinegrow backups also have the new rules missing
- I was editing a component definition, in another file when the rules went
- I had the code view window of the custom.scss file open throughout
- I was not using master pages, simply a page constructed with components… and a new section in it where I was working

I was saving regularly throughout the session and seeing notifications that the work had been saved. Due to earlier saving issues, I was committing to my git repo regularly, and so was able to discard the sudden loss of Sass rules from custom.scss, so I only lost a small amount of work. The html is fine, it still has the missing classes assigned to the elements.

**See below image of the rules discard**

 ![Screenshot 2021-02-18 at 11.08.09](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/9/9899ef1e468ce9d57033502f3661f78f263df9dc.png)

With thanks,

Tim

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [February 18, 2021, 12:16pm UTC](https://forum.pinegrow.com/t/saving-issues-with-sass-rules-deleted-unexpectedly/4981/2 "2021-02-18T12:16:46Z")

</div>

Hey @timbowerbank,  
Sorry for your problems.

> [@timbowerbank](#):
>
> I had the code view window of the custom.scss file open throughout

Do you mean in the Pinegrow code window, or an external code editor like VSC?  
Second, is the compare above showing the old undeleted .scss file on the left vs the new .scss file, or the generated .css file? Seems like the rules are not only deleted, but changes are being made to the existing? Is the right-hand rule an older version - like PG reverted back to an earlier copy?  
Thanks,  
Bob

---

<div class="post-metadata">

**Author:** ![timbowerbank](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@timbowerbank](https://forum.pinegrow.com/u/timbowerbank)\
**Post date:** [February 18, 2021, 12:21pm UTC](https://forum.pinegrow.com/t/saving-issues-with-sass-rules-deleted-unexpectedly/4981/3 "2021-02-18T12:21:59Z")

</div>

Hi Bob,

Thanks for the note back.

The code view was only open in Pinegrow. The project was open in VS Code but no pages open.

The screen shot is from VS Code and is looking at the version history (via Git), so it’s the same file but at different commit points… the lefthand view is the last commit and the righthand view are the changes that Pinegrow made (i.e. the deletions of rules etc.).

Hope that helps.

Thanks, Tim

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [February 18, 2021, 2:43pm UTC](https://forum.pinegrow.com/t/saving-issues-with-sass-rules-deleted-unexpectedly/4981/4 "2021-02-18T14:43:42Z")

</div>

Thanks,  
So I guess the rule on the right is from farther up the style sheet, or…?  
Bob

---

<div class="post-metadata">

**Author:** ![timbowerbank](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@timbowerbank](https://forum.pinegrow.com/u/timbowerbank)\
**Post date:** [February 19, 2021, 7:34am UTC](https://forum.pinegrow.com/t/saving-issues-with-sass-rules-deleted-unexpectedly/4981/5 "2021-02-19T07:34:23Z")

</div>

Hi Bob,

On the right-hand side, you can see the class .pd-listing-banner-wrap… this is the latest update done by Pinegrow… on the left you can see that all the media queries for .pd-listing-banner-wrap which were there… but then disappeared by Pinegrow removing them.

So left-hand side, is how it was and how it needs to be. The right-hand side is the file after Pinegrow has unexpectedly removed those media queries.

Many thanks,

Tim

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [February 19, 2021, 12:00pm UTC](https://forum.pinegrow.com/t/saving-issues-with-sass-rules-deleted-unexpectedly/4981/6 "2021-02-19T12:00:48Z")

</div>

Hi Tim,  
But at some point did you enter the rule on the right, or is it totally fabricated by Pinegrow? Right now I’m having a hard time replicating your error. I’m using the Master pages project that you sent and adding rules. So far no pattern to reproduce the problem you are having. Have you changed any setting for the compiler from the settings menu?  
Cheers,  
Bob

---

<div class="post-metadata">

**Author:** ![timbowerbank](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@timbowerbank](https://forum.pinegrow.com/u/timbowerbank)\
**Post date:** [February 19, 2021, 12:59pm UTC](https://forum.pinegrow.com/t/saving-issues-with-sass-rules-deleted-unexpectedly/4981/7 "2021-02-19T12:59:57Z")

</div>

Hi Bob,

I had created the class on the right at some previous point… perhaps this was the last PG backup that it rolled back to?

In the session that was lost, the media queries were added.

Perhaps its the component setup - try adding some mods to the Sass file for listing.html, save, close the html, then open up standard-all-options.html and modify the sidebar component definition and then do a site-wide component update. I think that is where I was when it was lost.

I might add, that this is the third time this has happened.

Thanks for your help and attention.

Tim

Tim Bowerbank  
**Pendigital Limited**  
M: 07976 361908  
E: [tim@pendigital.co.uk](mailto:tim@pendigital.co.uk)  
[www.pendigital.co.uk](http://www.pendigital.co.uk)

---

<div class="post-metadata">

**Author:** ![timbowerbank](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@timbowerbank](https://forum.pinegrow.com/u/timbowerbank)\
**Post date:** [February 19, 2021, 5:13pm UTC](https://forum.pinegrow.com/t/saving-issues-with-sass-rules-deleted-unexpectedly/4981/8 "2021-02-19T17:13:56Z")

</div>

Sorry, I didn’t answer your question about settings… no, I haven’t touched them… they’re as they were - the default.

With thanks Tim

---

<div class="post-metadata">

**Author:** ![timbowerbank](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@timbowerbank](https://forum.pinegrow.com/u/timbowerbank)\
**Post date:** [March 19, 2021, 12:29pm UTC](https://forum.pinegrow.com/t/saving-issues-with-sass-rules-deleted-unexpectedly/4981/9 "2021-03-19T12:29:11Z")

</div>

Reference this update: **Pinegrow Web Editor 5.992 – March 18, 2021**

 ![Screenshot 2021-03-19 at 12.27.54](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/f/f0080faa54bfa81daa0e46fb98644f6d2d691e9e.png)

Does this fix the above? Or is it related to something else?
