SassyStudio
SassyStudio copied to clipboard
NullReferenceException
11:56:49.217 AM: Failed to compile css. [NullReferenceException]Object reference not set to an instance of an object. at SassyStudio.InteropHelper.AddNestedFile(DTE2 dte, String parent, String child, BuildActionType type) at SassyStudio.Editor.GenerateCssOnSave.AddFileToProject(FileInfo source, FileInfo target, ScssOptions options) at SassyStudio.Editor.GenerateCssOnSave.GenerateCss(DateTime time, String path)
Visual Studio interop... :disappointed:
I'll see what can cause NRE, thanks for reporting this.
Not sure if there's anything I can add to this, but I'm getting the same error on 1 specific Solution. The text of the error is exactly the same as above and this only happens if I have the option selected for Sassy Studio to nest files within the project. It works as intended on other Solutions, but throws up this exception on this specific one.
Probably related, so I think it's worth mentioning, but the NestIn extension for VS no longer displays after saved my .scss file the first time. VS crashed and now I can no longer nest/unnest files on this Solution using that extension either. I could previously until that first save with Sassy Studio.
12:19:43.083 PM: Unhandled exception. [NullReferenceException]Object reference not set to an instance of an object. at SassyStudio.Editor.GenerateCssOnSave.IsReferenced(FileInfo source, ISassDocument document, HashSet`1 visited) at SassyStudio.Editor.GenerateCssOnSave.GenerateAllReferencing(DateTime time, String path)
Got this on a different project. CSS file was not built for this one.
12:26:15.669 PM: ProjectItems is null. Bad news is about to happen. 12:26:15.691 PM: Failed to include derek-styles.css in project under derek-styles.scss [NullReferenceException]Object reference not set to an instance of an object. at SassyStudio.InteropHelper.AddNestedFile(DTE2 dte, String parent, String child, BuildActionType type) at SassyStudio.Editor.GenerateCssOnSave.AddFileToProject(FileInfo source, FileInfo target, ScssOptions options)
11:53:48.997 AM: Detected file saved: C:\inetpub\wwwroot\UhaulCom\uhaul_com\Styles\derek-styles.scss 11:53:49.001 AM: Compiling: derek-styles.scss 11:53:49.126 AM: Beginning compile: C:\inetpub\wwwroot\UhaulCom\uhaul_com\Styles\derek-styles.scss 11:53:49.142 AM: Nesting derek-styles.css under derek-styles.scss 11:53:49.357 AM: ProjectItems is null. Bad news is about to happen. 11:53:49.372 AM: Failed to include derek-styles.css in project under derek-styles.scss [NullReferenceException]Object reference not set to an instance of an object. at SassyStudio.InteropHelper.AddNestedFile(DTE2 dte, String parent, String child, BuildActionType type) at SassyStudio.Editor.GenerateCssOnSave.AddFileToProject(FileInfo source, FileInfo target, ScssOptions options)
11:53:49.373 AM: Compile complete.