I was hoping that I could use code snippet for linear-gradient (bit.ly/PfGmKG) in "Microsoft Visual Studio Express 2012 for Web". But this extension will not install on express edition?
Note that we don't need -ms-linear-gradient because it was introduced in IE10 Developer preview. By the time RP was released, W3C candidate recommendation arrived and IE10 RP+ has standard linear-gradient: http://blogs.msdn.com/b/ie/archive/2012/06/25/unprefixed-css3-gradients-in-ie10.aspx IE team should drop the non-standard support for -ms-linear-gradient to remove the confusion.
Nearly flawless LESS highlighting. I like the color swatch previews as well. I've tried other add-ons for LESS highlighting. Thanks for raising the bar.
Wow, simply wow! Thank you for so many useful tools in one extension. The LESS support is top-notch, unlike Mindscape's Web Workbench, which I was previously using. And all the little useful CSS features make life so much easier. And to think this is only version 1.0...
Great LESS support; inclusion via Bundling & Minification is effective but not well-documented within the extension. Also, strong name validation of LanguagePackage fails on every creation of a .less file, but this does not prevent the LESS editor from working.
I've never seen the LanguagePackage failure you're experiencing. Could you perhaps take a screenshot and explain more detailed and send to madsk at microsoft com ?
I'm glad you like it even with the failure occuring :)
Is there some magic setting to get JSDoc comments to be parsed for IntelliSense? I can't seem to get this working in 1.7. I have a simple test file with the following:
/**
* Does something.
*
* @param {string} myParam
*/
function doSomething(myParam) {
}
Inside the function, myParam seems to have no type information. Outside, inline documentation just spits out the whole unformatted comment block for doSomething. Anyone have any ideas how to get this to work? Thanks!
I am having the exact same problem. JSDOC does *NOT* work as described. Am I missing something? I am using the exact same format as dornif:
/**
* Does something.
*
* @param {string} myParam
*/
function doSomething(myParam) {
}
But when attempting to use 'doSomething', Intellisense just dumps out the entire comment block (/* ... */) above the function instead of providing the intellisense I expect for each parameter.
Jade is a really nice alternative to typing Html manually. The best Jade engine is in node, but to get to use it for non-node apps aswell using it as a pre-processor would be a nice alternative. WebStorm already does this http://stackoverflow.com/questions/15492624/auto-compile-jade-in-webstorm-on-windows
Hi!
Just upgraded from 2.5.1 to 2.6, and all our cross-project imports stopped working. Like this:
@import "../../../../Themes/MiP.Theme/Styles/mip-mixins.less";
This worked before but now gives the following compiler error:
LESS: Couldn't load themes/MiP.Theme/Styles/mip-mixins.less (404)
Can you fix this please? :) Or tell us what we're doing wrong. Or provide some kind of workaround. We are not very keen on duplicating all our less files... :)
The interesting thing is that LESS is supposed to be handled by Web Tools now since 2.5. Reverting back to the 2.5.1 download from http://vswebessentials.com/changelog fixed my problem. I imagine both Web Tools and Web Essentials have some conflicting dependency for path resolution.
I am seeing this issue in 2.6 inside of the same project - rolling back to 2.5.1 has not resolved the issue. Think there may be a remnant lurking somewhere after the uninstall.
See this thread for the description of the issue and for a possible workaround: http://forums.asp.net/p/1900852/5371528.aspx/1?p=True&t=635022256782196589
Alternatively you can just downgrade the less compiler from v1.3.3 to v1.3.1 which fixes the issue. See here:
http://stackoverflow.com/questions/15691713/less-compiler-and-relative-import-references-not-working-in-web-essentials-2012
The "Replace with original 1.3.0" workaround here http://forums.asp.net/p/1900852/5371528.aspx/1?ASP+NET+and+Web+Tools+2012+2+bug+in+resolving+imports+in+LESS+files+workaround+included worked for me.
It looks like the problem is really with Web Tools. I imagine that Web Tools or Web Essentials or both fiddles with the scripts in that directory so reveting to 2.5 reverts the 1.3.3 script to 1.3.0
Hello ,
Do you plan on bringing a SCSS/SASS support any time soon ? there is another plugin for that , but it doesn't feel as polished as yours and it brings a ton of other features that i don't really need.
Thanks!
I would like to echo the sentiments of Aviatrix. I use the "other" plug-in and it doesn't feel as polished as this (and I pay for it). I don't like LESS as much as SCSS (a.k.a. SASS) and that other plug-in is the only one of it's kind to work with visual studio.
I have WE 2.6 installed on my work and home PC's, both with VS 2012.2. The css files show linked under the less file on my home PC, but not on my work PC. Both MVC 4.0 apps. Is there a setting I'm missing?
I have noticed that when I rename an aspx file, the code behind drops the .aspx part and visual studio does not nest the file. Through trial and error I managed to find out that it is Web Essentials 2012 that is causing the issue and with the Plugin disabled it doesn't occur.
Hi,
Making a CSS bundle crashes VS2012 if one of the CSS files do NOT belong to the project. On a whim, I added the CSS to the project and the error no longer occurred.
Trace...
System.NullReferenceException was unhandled
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=WebEssentials2012
StackTrace:
at MadsKristensen.EditorExtensions.FileHelpers.RelativePath(String absPath, String relTo)
at MadsKristensen.EditorExtensions.BundleFilesMenu.WriteFile(String filePath, IEnumerable`1 files, String extension, String output)
at MadsKristensen.EditorExtensions.BundleFilesMenu.<>c__DisplayClasse.<CreateBundlefile>b__a()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
Hi,
with build typescript on save checked, whenever I now build my project the output from web essentials (ver 2.6 vs2012) contains the following exceptions ;
15/04/2013 15:54:01: Object reference not set to an instance of an object.
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
15/04/2013 15:54:01: Object reference not set to an instance of an object.
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
15/04/2013 15:54:01: Object reference not set to an instance of an object.
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
Any ideas, I've uninstalled and reinstalled without any success.
Thanks,
This seems to be related to out web project, which contains the typescript files, being contained in a solution folder.
remove it from the solution folder and place at the root of the solution, and it works fine.
Hi,
we've just started using Web Essentials with VS2012 for a new project and thus also started building our CSS from the ground up using LESS.
Unfortunately, we've then been scratching our heads as to why rebuilding our solution didn't also recompile all the LESS files even though exactly that was configured in the LESS options page.
I then threw Reflector and another instance of VS2012 at it and found out that our web app being in a solution folder instead of the root of the solution was the culprit - could you perhaps add recursing into solution folders when looking for projects to compile?
Also, while doing that I found that VS crashes with a "file not found" exception at LessProjectCompiler.MinifyFile when compiling the LESS files during building when the associated minified file is missing and minification is activated. I assume if the file doesn't exist it should just be created... :)
(The reason for that was that we didn't want to check the generated files into our Subversion repository so after a fresh checkout those files will always be missing, and having to touch each of them once to have the minified files generated is iffy...)
Hope this helps.
Kind regards
If I have a "base.less" file that uses for example
@import-once "palette"
and I create a style bundle for "base.css", the css file only self-builds when I save base.less but not when I save palette.css.
This is a bit of a pain, as it means I have to remember to save all the files that include a dependency every time I change the dependency, so there's a good chance of error.
Is there a better way? I've tried using the LessBundle() instead but that doesn't appear to compile LESS files into CSS but bundle LESS files for the client instead.