SassyStudio2013 icon indicating copy to clipboard operation
SassyStudio2013 copied to clipboard

Ignoring compile due to stale document

Open tihomir-kit opened this issue 9 years ago • 7 comments

Hi,

I just moved to vs2015 (from vs2012) and I'm getting this message in the output.. It never appeared before this. How can I go around this or turn this feature off as I am currently unable to compile my sass?

Thanks :)

tihomir-kit avatar Aug 06 '15 13:08 tihomir-kit

Same problem here. Saving a .scss file gives this:

09:04:59.135 AM: Compiling: site.scss 09:04:59.139 AM: Beginning compile: C:\Project\Content\site.scss 09:04:59.139 AM: Ignoring compile due to stale document.

No .css file is created.

SassyStudio version 0.2.0.0 6/17/2015.

richard-browne avatar Aug 18 '15 00:08 richard-browne

I am facing the same issue

Compiling: site.scss
Beginning compile: C:\Project\Content\site.scss
Ignoring compile due to stale document.

To make the extension working i did a dirty fix by replacing

            // file is stale, likely another request coming in
            if (time < source.LastWriteTime)
            {
                if (Options.IsDebugLoggingEnabled)
                    Logger.Log("Ignoring compile due to stale document.");

                return;
            }

with

Logger.Log(String.Format("File Time, time = {0}, LWT = {1}", time, source.LastWriteTime));

which gave output something like this

12:06:11.171 AM: File Time, time = 23-10-2015 06:36:11 PM, LWT = 24-10-2015 12:06:11 AM

As per my observation

time = It Is GMT or UTC source.LastWriteTime = System Time

0xApp avatar Oct 23 '15 18:10 0xApp

0xApp thanks. This is a UTC vs local time issue I'm pretty sure. Both DateTimes need to be converted to UTC before comparison.

I don't have the VSIX SDK installed. Does someone want to patch and do a pull request?

richard-browne avatar Oct 28 '15 22:10 richard-browne

@richard-browne https://github.com/darrenkopp/SassyStudio2013/pull/13

0xApp avatar Oct 29 '15 18:10 0xApp

unofficial build : https://drive.google.com/file/d/0B2fvTU0SZRQsTkZZWUtkanFKS1U/view?usp=sharing just a temporary solution until new extension is released.

0xApp avatar Nov 12 '15 12:11 0xApp

@0xApp Thanks for build :)

alikadir avatar Mar 11 '16 08:03 alikadir

Thanks, this build worked for me in VS 2015 too.

mossybreen avatar Aug 02 '16 15:08 mossybreen