Crashed when watching file with subdirectory imports and a file changes #20

Closed
agileapricot opened this Issue Mar 16, 2011 · 5 comments

Comments

Projects
None yet
3 participants

I got this error and it crashed. The file was importing four other less files from a sub directory.

Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given
key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at dotless.Compiler.Watcher.FileChangedHandler(Object sender, FileSystemEvent
Args e)
at System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt
32 numBytes, NativeOverlapped* overlappedPointer)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

Owner

Tigraine commented Mar 16, 2011

Thanks for reporting that bug.
Could you maybe post information about your folder structure and your imports?

Here is the import code...


@import url("stylesheets/global.reset.css"); 
@import 'stylesheets/global.classes.less';

// Theme specific
@import 'stylesheets/theme.varibles.less';
@import 'stylesheets/theme.layout.less'; 

The file I'm watching is just outside the stylesheet folder.

Owner

Tigraine commented Mar 17, 2011

Are you intentionally using @import url() and @import "" ?
Because dotless executes both as dotless imports (not the CSS3 import statement)

In my limited testing everything worked out, but maybe the stylesheetsglobal.reset.css is not present?

Note: dotless does not parse css files when they are imported. It only inlines them into the target css file

Tigraine reopened this Mar 17, 2011

Member

lukeapage commented Dec 10, 2011

Can anyone reproduce this error consistently? I just tried and I can't reproduce it...

Member

lukeapage commented Apr 18, 2012

with the changes in import and lack of response, I'm assuming this isn't an issue any more.

lukeapage closed this Apr 18, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment