Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LESS compiling throwing NullReferenceException #868

Closed
willemtoerien opened this issue Apr 7, 2014 · 1 comment
Closed

LESS compiling throwing NullReferenceException #868

willemtoerien opened this issue Apr 7, 2014 · 1 comment

Comments

@willemtoerien
Copy link

Hi, I do not know if this is a known issue.
When opening the bootstrap.less file that contains all the @imports, I get a System.NullReferenceException and then the right pane is empty. A CSS is produced but not part of the solution.
Below is the stack strace:
2014-04-07 04:55:09 PM: An exception was thrown when compiling C:\Dev\EmployeeManager\Source\EmployeeManager.Web\Content\bootstrap\bootstrap.less: System.NullReferenceException: Object reference not set to an instance of an object. at MadsKristensen.EditorExtensions.CssSourceMap.ProcessSourceMaps() at MadsKristensen.EditorExtensions.CssSourceMap.CollectRules(String targetFileName) at MadsKristensen.EditorExtensions.CssSourceMap.PopulateMap(String targetFileName, String mapFileName) at MadsKristensen.EditorExtensions.CssSourceMap.Initialize(String targetFileName, String mapFileName, IContentType contentType) at MadsKristensen.EditorExtensions.CssCompilerResult..ctor(String sourceFileName, String targetFileName, String mapFileName, Boolean isSuccess, String result, IEnumerable1 errors)
at MadsKristensen.EditorExtensions.CompilerResultFactory.GenerateResult(String sourceFileName, String targetFileName, String mapFileName, Boolean isSuccess, String result, IEnumerable1 errors) at MadsKristensen.EditorExtensions.NodeExecutorBase.ProcessResult(Process process, String errorText, String sourceFileName, String targetFileName, String mapFileName) at MadsKristensen.EditorExtensions.NodeExecutorBase.<CompileAsync>d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Compilers.NodeCompilerRunner.<RunCompilerAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Compilers.CompilerRunnerBase.<CompileAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Compilers.EditorCompilerInvoker.<InitiateCompilationAsync>d__0.MoveNext() 2014-04-07 04:55:09 PM: An exception was thrown when compiling C:\Dev\EmployeeManager\Source\EmployeeManager.Web\Content\bootstrap\bootstrap.less: System.NullReferenceException: Object reference not set to an instance of an object. at MadsKristensen.EditorExtensions.CssSourceMap.ProcessSourceMaps() at MadsKristensen.EditorExtensions.CssSourceMap.CollectRules(String targetFileName) at MadsKristensen.EditorExtensions.CssSourceMap.PopulateMap(String targetFileName, String mapFileName) at MadsKristensen.EditorExtensions.CssSourceMap.Initialize(String targetFileName, String mapFileName, IContentType contentType) at MadsKristensen.EditorExtensions.CssCompilerResult..ctor(String sourceFileName, String targetFileName, String mapFileName, Boolean isSuccess, String result, IEnumerable1 errors)
at MadsKristensen.EditorExtensions.CompilerResultFactory.GenerateResult(String sourceFileName, String targetFileName, String mapFileName, Boolean isSuccess, String result, IEnumerable1 errors) at MadsKristensen.EditorExtensions.NodeExecutorBase.ProcessResult(Process process, String errorText, String sourceFileName, String targetFileName, String mapFileName) at MadsKristensen.EditorExtensions.NodeExecutorBase.<CompileAsync>d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Compilers.NodeCompilerRunner.<RunCompilerAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Compilers.CompilerRunnerBase.<CompileAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Compilers.EditorCompilerInvoker.<InitiateCompilationAsync>d__0.MoveNext()

@am11
Copy link
Contributor

am11 commented Apr 7, 2014

Duplicate of #866.

Fixed by #841, try nightly build.

am11 added a commit to am11/WebEssentials2013 that referenced this issue Apr 14, 2014
* Uses Enterprise Library for "retry policy".
* Routes all File IO read/write calls to helper.
* Fixes CoffeeScript, SCSS and LESS compilation-
  related issues.
* Fixes TypeScript crashing issues.
* Fixes tests.
* Other minor fixes.
* Targeting madskristensen#871, madskristensen#887, madskristensen#890, madskristensen#897, madskristensen#868 & madskristensen#904.
SLaks pushed a commit to SLaks/WebEssentials2013 that referenced this issue May 13, 2014
* Uses Enterprise Library for "retry policy".
* Routes all File IO read/write calls to helper.
* Fixes CoffeeScript, SCSS and LESS compilation-
  related issues.
* Fixes TypeScript crashing issues.
* Fixes tests.
* Other minor fixes.
* Targeting madskristensen#871, madskristensen#887, madskristensen#890, madskristensen#897, madskristensen#868 & madskristensen#904.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants