Git Product home page Git Product logo

webessentials2012's Introduction

Web Essentials for Visual Studio 2012

Web Essentials extends Visual Studio with lots of new features that web developers have been missing for many years.

If you ever write CSS, HTML, JavaScript, TypeScript, CoffeeScript or LESS, then you will find many useful features that make your life as a developer easier.

This is for all Web developers using Visual Studio.

##Getting started To contribute to this project, you'll need to do a few things first:

  1. Fork the project on GitHub
  2. Clone it to your computer
  3. Install the Visual Studio 2012 SDK.
  4. Open the solution in VS2012.

To install your local fork into your main VS instance, you will first need to open Source.extension.vsixmanifest and bump the version number to make it overwrite the (presumably) already-installed production copy.

You can then build the project, then double-click the VSIX file from the bin folder to install it in Visual Studio.

webessentials2012's People

Contributors

boniestlawyer avatar edchapel avatar luggage66 avatar madskristensen avatar meixger avatar ramon18 avatar robert-hoffmann avatar tibold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webessentials2012's Issues

.LESS Validation Removed

There are a couple scenarios when writing .less that bring up validation errors in nested classes that are not necessary. The first is relatively small so it may not be necessary, but the second one is more of a hassle.

The first is the case of a nested class that is being attached with "&" and followed with a hyphen. An example :

.myclassname {
    &-addon{

    }
}

The second one is that .less files complain if you have nested media queries. This one is a little more of a sore because it throws an unexpected error and then every style rule that is placed within the media query also comes back with an error. An example :

.myclassname {
    @media(min-width: 1200px) {
        margin: 0 auto;
    }
}

I forgot to mention that both of these issues still compile correctly to .css files because they are fitting .less syntax. The issue would have to do more with less visual errors in the files themselves. Hope these make sense, you can let me know if something is confusing about them.

Object reference not set to an instance of an object at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()

Using Visual Studio 2012 Premuim

I have a solution with (too) many projects and many solution folders.

  1. Right-click the Solution root node
  2. Click Build

I receive the following in my build output:

========== Build: 9 succeeded, 0 failed, 23 up-to-date, 3 skipped ==========
10/6/2013 6:00:28 PM: Object reference not set to an instance of an object.
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
10/6/2013 6:00:28 PM: Object reference not set to an instance of an object.
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
10/6/2013 6:00:28 PM: Object reference not set to an instance of an object.
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
10/6/2013 6:00:28 PM: Object reference not set to an instance of an object.
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
10/6/2013 6:00:28 PM: Object reference not set to an instance of an object.
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
10/6/2013 6:00:28 PM: Object reference not set to an instance of an object.
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
10/6/2013 6:00:28 PM: Object reference not set to an instance of an object.
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()

I created a small solution to demonstrate the issue.

https://dl.dropboxusercontent.com/u/378540/WebEssentials2012Issue1.zip

Implicit tag names in an UL element

According to the Emmet docs at http://docs.emmet.io/cheat-sheet/ the code "ul>.class" should expand to:

<ul>
    <li class="class"></li>
</ul>

However with WebEssentials 2012 this expands to:

<ul>
    <div class="class"></div>
</ul>

Adding an DIV element to an UL element is invalid and doens't really make sense.

Designate a CSS Compilation folder

It would be nice to be able to specify the location of compiled .css files, rather than them having to be created in a 'css' directory within the 'less' directory.
I find I have to change the relative url's of images or fonts to account for the extra level where the css resides in relation to the 'images' directory.

For example:
images/
.. image1.jpg
less/
.. file1.less
.. file2.less
.. css/ <-- Current location for .css files is a level down in the 'less' directory
.. .. file1.css
.. .. file2.css
css/ <-- My prefered location for .css files would be a top level 'css' directory
.. file1.css
.. file2.css

Are there any issues as to why this shouldn't be done or is the suggestion problematic for any reason I'm missing?

Bundles not ordering correctly

In WebEssentials 3.3.5 when I create a bundle which also minifies creates two files, one minified and the other not. The one created without minifying takes the order of <file> elements in account when creating the pack. But the order in the minified file seem to be alphabetic.

In my scenario I have 3 files, jquery (A), jquery ui (B) and jquery ui timepicker (C). The order in the bundle is A B C. But alphabetically it ends up A C B. While the packed bundle is ok, the minified bundle isn't and uses A C B instead.

This ends up in errors because the Jquery timepicker is trying to extent jquery ui methods.

Filenames in alphabetical order:

  • jquery-1.10.2.min.js
  • jquery-ui-timepicker-addon.js
  • jquery-ui.min.js

The bundle config tells me this: The order of the elements determines the order of them when bundled.

VS2012 0x80070057 after each build

I saw that this issue was closed on VS 2013 on #226 ( madskristensen/WebEssentials2013#226 ).
I'm using VS 2012 though.
After each build I get the following output:

========== Rebuild All: 10 succeeded or up-to-date, 0 failed, 0 skipped, Completed at 07/03/2014 12:14:29 ==========
07/03/2014 12:14:29: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
07/03/2014 12:14:29: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()

I have the latest version of WE.2012

If you need any extra information just ask.

LESS recompile causes VS 2012 to crash

If the generated CSS file is under source control and marked Read-Only, then when the LESS file tries to recompile the CSS there is an error and VS 2012 crashes. This can be solved by marking the generated CSS file as DependentUpon the corresponding LESS file.

This behavior is occurring for me in a Windows Store (WindJS) project where I have taken existing CSS files and renamed them to LESS files so I can take advantage of Web Essentials LESS compiler in the project. The problem is that it does not generate the CSS files as nested files under the LESS file. Doing so would ensure that all of the files are checked out when I begin editing the LESS file.

VS2012 Crashes with JavaScript Language Service error (.coffee)

First Some relative(ish) Info: (From 'HELP' > 'About ...')
Microsoft Visual Studio Premium 2012 Version 11.0.60610.01 Update 3
(product installed) Web Developer Tools 1.2.40308.0

When viewing a .coffee file (after saving/compiling). I'm presented with 2 viewports, my coffee file source, and the output js (I suspect)..

image

VS crashes If and when I click on an empty line (or text line node) on the right viewport - the output view..

If I click on a line that contains text, the error does not occur.. (as demonstrated by the text selection)

image

error report...
image

Multiple errors during builds and unit tests when using Bundling

I think the culprits involved are a combination of:

  • Web Essentials 2012
  • Re-Sharper
  • xUnit for Resharper

I'm not sure which is at fault, but this issue only came to light when switching to Web Essentials 2012 bundling.

Reproduction

This is difficult to produce. Sometimes it happens when building, other times when running unit tests.

I'll see literally 17 errors like the following:

image

(The files do exist, by the way, and other times the builds & test runs complete without this message showing.)

This error will repeat itself about 17 times for various files within the bundle, and will open each bundle file in the IDE multiple times as it brings up each error:

image

Some of the file names are repeated, which is strange because I do not repeat any files in my bundles.

Some Potential Clues

  • If I close the solution and re-open it (without exiting visual studio), the problem seems to go away. Sometimes. Other times (as in just now), it persists.
  • If I close visual studio entirely, it usually resolves itself. I'm not sure if this is because when it opens there are no files open, or what.
    • Follow-up: When I opened the file again, it did indeed seem to be an issue.
  • I am trying to pin down whether or not the problem happens if I don't have the UI project (which contains the bundles) open.
  • Occasionally, I will see multiple MSBuild.exe processes running when no build should be running. I have killed those processes but that did not seem to be the cause of the issue.

I'd appreciate any help to get the reproduction steps down better. This adds 17 clicks and 40+ seconds to every build or test run, so you can understand why I'm eager to figure it out. :)

JSHint -- unable to ignore code

Firstly, this may go without saying, but thank you for one of the best productivity tools for Visual Studio ever.

Noticed a strange issue when trying to ignore a JSHint parsing for the following code:

/*jshint ignore:start */           

DetailsFileUploadDone(data); 

/*jshint ignore:end */

The issue is that I'm forced to begin that function with a capital letter (ugh) and so JSHint thinks it's a constructor.

But what I saw in the error list was a little strange:

image

The struck me as odd as the JSHint docs page seems to indicate that's exactly how it should be done:

image

I'm not yet sure if this is an issue with my specific configuration, Web Essentials 2012, or JSHint itself but I wanted to pass it along. It is not a showstopper but is something that I thought you'd be interested in seeing.

Visual Studio 2012 crashes during/after automatic LESS compilation when minified CSS files are missing

In our project we use LESS and CSS minification, but we don't want to check the minified CSS files into Subversion since they are easily rebuilt during the build - or so we thought.

The problem is that when Web Essentials is configured to automatically compile LESS files on build, it'll then produce an exception if the minified CSS file doesn't already exist (see below) and a second or two later VS2012 crashes...

The exception is as follows:

System.IO.FileNotFoundException: Could not find file 'C:\Lokale Dateien\eCS\GSIS\eCS.GSIS\Content\Content.min.css'.
File name: 'C:\Lokale Dateien\eCS\GSIS\eCS.GSIS\Content\Content.min.css'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
   at System.IO.File.ReadAllText(String path)
   at MadsKristensen.EditorExtensions.LessProjectCompiler.MinifyFile(String lessFileName, String source)
   at MadsKristensen.EditorExtensions.LessProjectCompiler.Completed(CompilerResult result)
   at MadsKristensen.EditorExtensions.LessCompiler.ProcessExited(Object sender, EventArgs e)
   at System.Diagnostics.Process.OnExited()
   at System.Diagnostics.Process.RaiseOnExited()
   at System.Diagnostics.Process.CompletionCallback(Object context, Boolean wasSignaled)
   at System.Threading._ThreadPoolWaitOrTimerCallback.WaitOrTimerCallback_Context(Object state, Boolean timedOut)
   at System.Threading._ThreadPoolWaitOrTimerCallback.WaitOrTimerCallback_Context_f(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._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(Object state, Boolean timedOut)

Why would the LESS compiler ever need to read the existing minified file?

If all .min.css files exist (i.e. by opening the LESS file by hand and saving it again) the build finishes without problems and Visual Studio doesn't crash.

Item has already been added. Key in dictionary error

Just downloaded version 3.6.5 of Web Essentials.
Getting this error sometimes when generating code from T4 templates.
Not sure if it is Web Essentials related, but it seems to be.
Not a big problem, Just passing on info...

System.ArgumentException: Item has already been added. Key in dictionary: 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Commands.CommandFilter' Key being added: 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Commands.CommandFilter' at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at System.Collections.Hashtable.Add(Object key, Object value) at System.Collections.Specialized.HybridDictionary.Add(Object key, Object value) at Microsoft.VisualStudio.Utilities.PropertyCollection.AddProperty(Object key, Object property) at Microsoft.VisualStudio.JavaScript.Web.Extensions.Commands.WpfTextViewConnectionListener.HookupCommandFilter(IWpfTextView textView, IVsTextView textViewAdapter, IJavaScriptServicesProvider javaScriptServicesProvider, ICompletionBroker completionBroker, IFeatureManager featureManager, ISPASupportedTagProvider spaSupportedTagProvider, IBufferFeatureManagerProvider bufferFeatureManagerProvider) at Microsoft.VisualStudio.JavaScript.Web.Extensions.Commands.WpfTextViewConnectionListener.SubjectBuffersConnected(IWpfTextView textView, ConnectionReason reason, Collection`1 subjectBuffers) at Microsoft.VisualStudio.Text.Editor.Implementation.ConnectionManager.<>c__DisplayClass19.b__14() at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)

The "More Information" link from "Extensions and Updates" in Visual Studio dose not point to release information.

When clicking the more information link in Visual Studio under Extensions and Updates the link takes the user to:
http://visualstudiogallery.msdn.microsoft.com/07d54d12-7133-4e15-becb-6f451ea3bea6?SRC=VSIDE
Which is the Web Essentials page in the Visual Studio Gallery and not a release information page that would show why a user should, or should not, update the extension they are looking at in Extensions and Updates.
Also the link to "Why is there no TypeScript support in Web Essentials 2013?" is broken.

LESS formatter corrupts nesting / hierarchichal structure

I've been running into this quite a bit lately and it's really starting to negatively impact my workflow. At least 15 times now, I've entered a closing brace "}" or cut / paste a snippet of LESS from one part of my document to another, and suddenly my entire file goes wonky, and I'm now either missing one or more closing braces, or its randomly inserted them at various locations in the file. If I don't catch this right away, I end up having to back-track / undo whatever work I've done until I can find the point that the formatting "broke".

I've noticed two scenarios where this seems to happen. 1. If an ending brace is "highlighted" when I enter another closing brace, and 2. if I have a line of commented "//" text directly after an opening bracket. This causes a bunch of "valid" LESS to randomly get moved up to the "commented" line and become a part of the commented text, thereby breaking the file.

Finally, the LESS formatter seems to be randomly "sorting" my styles. This is not a breaking bug, but it is annoying, as I like my styles to be sorted in a specific order, and this undoes that every time the file gets formatted.

Please take a look at this as soon as possible.

Errors on project build

When building my project, I'm seeing about 15 of these in the build output:

12/30/2013 10:34:31 AM: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()

CSS Newline Characters Changed

This may be a bug in whatever minimize engine you're using instead of in WebEssentials, but figured I'd report it anyways so you can check.

When using the "content" CSS property, if you specify the CSS new line character of "\a", when minimized, it gets changed to "\n", which breaks the CSS because "\n" is not recognized as a new line character by CSS (see http://www.w3.org/TR/CSS2/syndata.html#strings).

For example, the following CSS:
div:after { content: "\a"; white-space: pre; }

is minimized to this:
div:after{content:"\n";white-space:pre}

Typescript preview window

With the update 3.6 it now shows the preview window for typescript. There is no way to remove this though. I've looked through options->Web Essentials but typescript is not listed. How do I remove the Typescript preview window?

LESS compiler now runs in NodeJS for 2012?

I am suffering a bit with slow LESS compilation and came across issue #153 for 2013 where you implemented the use of NodeJS for LESS compilation. I saw this was now released (2013 version 1.3) and the issue closed. Is there any chance this will come to 2012 in a future release?

VS crashes during various interactions with TFS.

I believe I've traced most of the crashes down to when trying to track changes in TFS. A couple of issues:

  1. If you have the TS preview pane enabled, 'Compare with Latest Version' will crash VS.
  2. In general, doing file comparisons with source control will cause VS to crash, it's hard to determine the exact reason.

LESS document formatting does not respect CSS brace settings

Repro:

  1. Open VS2013 RTM with Web Essentials 2013 1.2 (11/12/2013) installed.
  2. Set CSS brace positions to "compact" (Tools > Options > Text Editor > CSS > Advanced > Brace Settings = "Compact")
  3. Open a LESS document
  4. Format the document (CTRL-K, CTRL-D)

Expected:
Settings should be respected.

Observed:
"Expanded" format is always used.

Automatic compilation LESS into CSS on save

Version 3.2

After changes into LESS file I can't get new CSS file on save, if in the start of .less file I entered not a valid CSS-selector (like, for example, "a {}" )

So, will be compile on save
a{}
@import "_colors.less";
....

will NOT be compile:
@import "_colors.less";
....
getting this error:

/*
Compile Error.
See error list for details
*/
and the error list shows:
Error 8 LESS: Unrecognised input

CSS Bundling broken with 3.3.x release

Since release 3.3 bundling has been broken. Update All Bundles, or changing any files included in a bundle does not cause a bundle to update.

Error thrown (and displayed in an error dialog)

The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Related to : #19

GetRootFolder problems after every build

Running WE 3.4, VS.NET 2012
========== Build: 23 succeeded, 0 failed, 55 up-to-date, 0 skipped ==========
1/6/2014 12:08:20 PM: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
1/6/2014 12:08:22 PM: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
1/6/2014 12:08:22 PM: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()

Please update to Less 1.5

Less 1.5 has a great feature, reference imports: that means the content of the file is not output, but the mixins and whatnot defined there can be used. This would be especially useful for the preview window.

http://lesscss.org/#changes

Selector Interpolation

When using variables within a selector in a less file, eg:

.@{prefix}list {
    display: block;
}

Invalid tag is reported, and when auto formatting the document the result is:

.@ {
    prefix;
}

list {
    display: block;
}

This should be valid, and should not be reformatted (http://lesscss.org/#-selector-interpolation)

Sourcemap error when viewing files in Chrome Dev Tools

We use an absolute path on the server to reference our scripts and use the Visual Studio Web Essentials plugin to bundle scripts.

Chrome Dev Tools looks for the bundle file location as specified in the .js.map 'sources' array.

There's a Chrome Dev Tools thread on the subject:
https://groups.google.com/forum/#!topic/google-chrome-developer-tools/gHiK0mPYBxA

Here's a snippet of our .bundle file inside of a stand alone assets project.
/v1/src/js/libs/jquery/jquery-1.9.1.js
/v1/src/js/libs/jquery/jquery.maskedinput-1.3.1.js

Chrome Dev Tools sees this source map file, but when I click to open in a new tab it uses this url
http://mywebserver/v1/src/js/libs/jquery/jquery-1.9.1.js

But the actual path of this file is
http://mywebserver/assets/v1/src/js/libs/jquery/jquery-1.9.1.js

The Web Essentials .js.map file shows sources as
"sources":["/v1/src/js/libs/jquery/jquery-1.9.1.js", ...

I can manually edit the .js.map file to include the /assets absolute path and I can then see the contents of the file.
"sources":["/assets/v1/src/js/libs/jquery/jquery-1.9.1.js", ...

I've attached a screenshot with the results of the manually edited .js.map file and one of the same file with the incorrect 'source' entry.

sourcemap
sourcemap-fail

How To: exclude less files?

I have a structure where 10 less files are imported into main.less

main.less
    ı-- main.css
modules [dir]
     mod-1.less
     mod-2.less
     ...

I'd like to auto-generate main.css from main.less every time a less file is saved, but not generate individual mod-x.css files for each less file. How do I do this?

JavaScript XMLDoc comment scaffolding no longer working

JavaScript XMLDoc comment scaffolding has stopped working for me
I am using VS 2012 and WE 2012 v3.3.5
I installed visual studio update 4 to see if that would fix it but no luck (Was previously on update 3)
I also tried VS 2013 with WE 2013 but it doesnt work there either

CSS Minification broken on Chrome 32

Hi there,
I'm compiling a set of less files in a single css file and minifying it, everything was working fine until Chrome was updated to version 32 last night. My media queries are no longer working with the minified css, but they work fine with the non minified one. That only happens on Chrome 32. Chrome 31, Firefox, Safari and IE all work fine.

Minifying my file through YUI compressor also works fine.

Thanks

JavaScript Bundling broken with 3.3.x release

Since release 3.3 bundling has been broken. Updated to 3.3.5 this morning and still broken. Using Visual Studio 2012 Update 4.

If you choose Update All Bundles form the Build menu, an error is display:

The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

3.2 Gzip generating in odd locations

I updated to 3.3 but had the bundle bug so reverted back to 3.2. The first time I same a js or css, even though the gzip already exists, web essentials will generate a new gzip file in another location. For one file it's deep in the obj folder, another is generated in another project attached. I delete those and then when I save them no file are recreated which is what it should do.

VS2012 crashes on less compiler (I think)

This is all the information I have from my eventlog:

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
at System.IO.__Error.WinIOError(Int32, System.String)
at System.IO.FileStream.Init(System.String, System.IO.FileMode, System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32, System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean, Boolean, Boolean)
at System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, Int32, System.IO.FileOptions, System.String, Boolean, Boolean, Boolean)
at System.IO.StreamReader..ctor(System.String, System.Text.Encoding, Boolean, Int32, Boolean)
at System.IO.File.InternalReadAllText(System.String, System.Text.Encoding, Boolean)
at System.IO.File.ReadAllText(System.String)
at MadsKristensen.EditorExtensions.LessProjectCompiler.MinifyFile(System.String, System.String)
at MadsKristensen.EditorExtensions.LessProjectCompiler.Completed(MadsKristensen.EditorExtensions.CompilerResult)
at MadsKristensen.EditorExtensions.LessCompiler.ProcessExited(System.Object, System.EventArgs)
at System.Diagnostics.Process.OnExited()
at System.Diagnostics.Process.RaiseOnExited()
at System.Diagnostics.Process.CompletionCallback(System.Object, Boolean)
at System.Threading.ThreadPoolWaitOrTimerCallback.WaitOrTimerCallbackContext(System.Object, Boolean)
at System.Threading.ThreadPoolWaitOrTimerCallback.WaitOrTimerCallbackContext_f(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(System.Object, Boolean)

Exception Entering function CVsPackageInfo::HrInstantiatePackage

The exception happens when VS loads.

The stack from the ActivityLog is:

System.ComponentModel.Composition.CompositionException: The composition produced a single composition error, with 2 root causes. The root causes are provided below. Review the CompositionException.Errors property for more detailed information. 1) The export 'Microsoft.VisualStudio.Shell.SVsServiceProvider' is not assignable to type 'System.Boolean'. Resulting in: Cannot set import 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.IRegistryManager.IsKnockoutEnabled (ContractName="Microsoft.VisualStudio.Shell.SVsServiceProvider")' on part 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.RegistryManager'. Element: Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.IRegistryManager.IsKnockoutEnabled (ContractName="Microsoft.VisualStudio.Shell.SVsServiceProvider") --> Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.RegistryManager Resulting in: Cannot get export 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.RegistryManager (ContractName="Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.IRegistryManager")' from part 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.RegistryManager'. Element: Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.RegistryManager (ContractName="Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.IRegistryManager") --> Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.RegistryManager Resulting in: Cannot set import 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.IBufferFeatureManagerProvider.teBufferFeatureManager (ContractName="Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.IRegistryManager")' on part 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.BufferFeatureManagerProvider'. Element: Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.IBufferFeatureManagerProvider.teBufferFeatureManager (ContractName="Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.IRegistryManager") --> Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.BufferFeatureManagerProvider Resulting in: Cannot get export 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.BufferFeatureManagerProvider (ContractName="Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.IBufferFeatureManagerProvider")' from part 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.BufferFeatureManagerProvider'. Element: Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.BufferFeatureManagerProvider (ContractName="Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.IBufferFeatureManagerProvider") --> Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.BufferFeatureManagerProvider Resulting in: Cannot set import 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider.BufferFeatureManagerProvider (ContractName="Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.IBufferFeatureManagerProvider")' on part 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider'. Element: Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider.BufferFeatureManagerProvider (ContractName="Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.IBufferFeatureManagerProvider") --> Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider Resulting in: Cannot get export 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider (ContractName="Microsoft.VisualStudio.Text.Tagging.IViewTaggerProvider")' from part 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider'. Element: Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider (ContractName="Microsoft.VisualStudio.Text.Tagging.IViewTaggerProvider") --> Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider 2) The export 'Microsoft.VisualStudio.Web.Extensions.HTML.TagNameProvider (ContractName="Microsoft.VisualStudio.Web.Extensions.HTML.ITagNameProvider")' is not assignable to type 'System.Collections.Generic.ISet1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'. Resulting in: Cannot set import 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.ISPASupportedTagProvider.SupportedTagNames (ContractName="Microsoft.VisualStudio.Web.Extensions.HTML.ITagNameProvider")' on part 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.SPASupportedTagSet'. Element: Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.ISPASupportedTagProvider.SupportedTagNames (ContractName="Microsoft.VisualStudio.Web.Extensions.HTML.ITagNameProvider") --> Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.SPASupportedTagSet Resulting in: Cannot get export 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.SPASupportedTagSet (ContractName="Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.ISPASupportedTagProvider")' from part 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.SPASupportedTagSet'. Element: Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.SPASupportedTagSet (ContractName="Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.ISPASupportedTagProvider") --> Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.SPASupportedTagSet Resulting in: Cannot set import 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider.TagNameProvider (ContractName="Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.ISPASupportedTagProvider")' on part 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider'. Element: Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider.TagNameProvider (ContractName="Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.ISPASupportedTagProvider") --> Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider Resulting in: Cannot get export 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider (ContractName="Microsoft.VisualStudio.Text.Tagging.IViewTaggerProvider")' from part 'Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider'. Element: Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider (ContractName="Microsoft.VisualStudio.Text.Tagging.IViewTaggerProvider") --> Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider at System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine engine, ComposablePart part, ExportDefinition definition) at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(CatalogPart part, ExportDefinition export, Boolean isSharedPart) at System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore() at System.ComponentModel.Composition.Primitives.Export.get_Value() at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export) at System.ComponentModel.Composition.ExportServices.<>c__DisplayClass42.b__1() at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at System.Lazy1.get_Value() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator1.GatherTaggers(ITextBuffer textBuffer)

GetRootfolder() logs to build output

Hiya,
The following is in my build window when I build my solution. Running WE 2012 v3.2

7/10/2013 10:06:24 AM: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
7/10/2013 10:06:24 AM: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at EnvDTE.Properties.Item(Object index)
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
...

Settings files pollute user's global namespace

Web Essentials creates a folder for its settings in %USERPROFILE%\Web Essentials. This is equivalent to a user's global namespace.

Since Web Essentials' settings are fit for sharing among roaming profiles, they should live in %APPDATA%\Web Essentials.

Output generation failed when incorrect typescript file in project.

Hi

I've got this issue where an invalid Typescript file is causing the typescript generation to fail.

I know why its failing (after much investigation) I just wonder if the error could be better.

If you have a file which is designed to be used under a module environment, such as below:

export class Test1 {
}

If this file is in a project which is not configured to use module generation (in my scenarios I was new to Typescript and didn't realise you didn't need to 'export' if you weren't inside a module) then you see the error "Output generation failed" in the visual studio status bar, but no other indication of the error or what is causing it. This happens when you try to save any file in the project, not just the one with the issue.

Let me know if you need any more details.

ERROR thrown when opening CoffeeScript file

I am unable to generate JS files from CoffeeScript upon create/update of a .coffee file. This issue just started happening yesterday for no apparent reason (I made to VS or extension updates). I observed the error below being thrown whenever I open a CoffeeScript file. Any ideas what could've caused this to start happening?

Microsoft.Internal.Assumes+InternalErrorException: Internal error occurred. Additional information: ''. at System.ComponentModel.Composition.Hosting.ImportEngine.InPrerequisiteLoop() at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportsStateMachine(PartManager partManager, ComposablePart part) at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImports(PartManager partManager, ComposablePart part, Boolean shouldTrackImports) at System.ComponentModel.Composition.Hosting.ImportEngine.SatisfyImports(ComposablePart part) at System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine engine, ComposablePart part, ExportDefinition definition) at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(CatalogPart part, ExportDefinition export, Boolean isSharedPart) at System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore() at System.ComponentModel.Composition.Primitives.Export.get_Value() at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export) at System.ComponentModel.Composition.ExportServices.<>c__DisplayClass42.<CreateStronglyTypedLazyOfTM>b__1() at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at System.Lazy1.get_Value() at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata](Object errorSource, Lazy`2 provider)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.