VS2013 - Web Essentials - "Update All Bundles" does not work - javascript

In visual studio 2013 (update 2 or 3) there is a web essentials menu option.
When choosing "update all bundles" from this menu, nothing happens.
Current work around, when i want my javascript to re-bundle i have to edit/save one of the js files.
Anyone know if there's a fix for this, or something i'm just not thinking of?

Just went through a similar problem and found that a developer had checked in an updated .bundle file with the XML formatted differently (they were using 2013). The new structure didn't have an output attribute and I had the same problem as the one you describe.
I put the xml back to how it was and it now builds with 2012 again, I'll try 2013 next.

I had a problem under Visual Studio 2012. The command was there, but Update all bundles wouldn't work, same on build.
Got the source code, debugged and found out that at least for the version I have (3.8) anything under ~/App_Data folder is skipped.
So I moved my bundles and files and it works like a charm now.

Related

How to fix error: Intellisense is unable to determine the accuracy of this completion item

I'm using D3.js in an asp.net core application using Visual Studio 2019.
D3 itself works, I can create SVG charts that work as expected.
However, the intellisense for D3 when using Razor does not work.
I get the following error message,
Intellisense is unable to determine the accuracy of this completion
item
I made sure intellisese is enabled.
I have tried using referencing the D3 library locally or using a link to the CDN.
I have seen some things on this topic on previous version of Visual studio regarding a _reference.js file but that doesn't apply in vs2019.
thx in advance
Even though I am running Visual Studio 2019 v16.3.2, my D3 project was created when v16.3.0 was latest.
The intellisense in fresh projects created in v16.3.2 works perfectly even though there was nothing in the release notes that indicated any intellisense fix in Javascript.
In the end, I created a fresh new Visual Studio solution and imported my old project file by file.
I did not change a line of code or change any setting. The only difference between the two solutions is that the old one was created when v16.3.0 was latest (and upgraded to v16.3.2) and the new one when v16.3.2 is latest.
This is more of a workaround than an answer but I wasted too many hours on this and had to move on.

JavaScript Intellisense is not working in Visual Studio 2015

I know there are ALLOT of duplicates to this problem on SO as well as all over the web. Unfortunately, nothing that was suggested is working. I've done everything with the exception of reinstalling VS'15 (Id rather not if I can help it).
One site I went to: The story behind _references.js and an interesting thing appeared (or rather it didn't) in the JavaScript Intellisense section of the Text Editor in options. The reference to the _references.js file was not there. However after adding this reference, there is still not intellisense.
Is there anything I can do to get my intellisense back?
After many hours of banging my head against my desk, I found the answer to this weird issue. Turns out that the bootstrap.min.js script was interfering with the JavaScript intellisense. So I just commented out the script in my _references.js file. Also, I changed the autosync to false and instantly the intellisense came back.
Try changing the order of plugin references in your _references.js file.
In my case it was the JQuery-UI which I needed to move above the main JQuery reference, as explained in this post: jQuery UI breaks Visual Studio 2015 Intellisense

Visual Studio 2015 Very Slow File Opening?

I just downloaded VS15 2015 Community on my Windows 10 machine, and just installed all of the default packages.
For whatever reason, if I try to open a javascript file, or nearly any other extension, it takes about a full 15-20 seconds for it to load. This code says nothing but the word test in text.
Now for whatever reason, if I decide to right click the javascript file and select
Open With > "Microsoft Visual Studio Version Selector"
instead of with plain Microsoft Visual Studio 2015, it opens instantly, in like 2-3 seconds tops...
What is going on? This is so irritating! I've already reinstalled VS 3 times, cleaning out all old junk files, and even tried running it without a single tool or extension installed, and it still behaves this way unless I open it with Visual Studio Version Selector, which happens to not be listed in my list of default programs in the control panel, just the original Microsoft VS 15, so I can't even set it to that as a workaround.
If anyone know what could be wrong or a possible fix, please let me know!
Thank You!
I appreciate this is an old post but I had the same problem and was looking everywhere for a solution.
What worked for me and the rest of my team was to delete the contents of the '_references.js' file that's in the 'Scripts' folder in the project. It has something to do with intellisense which doesn't seem to work anyway which makes the file completely useless. Our project is very large with a lot of js files so I don't know if that was the problem but when it was refreshing the intellisense it took ages and this seems to stop that happening.
Hope this helps someone! :)
Reference: http://madskristensen.net/post/the-story-behind-_referencesjs

Visual Studio prompts me to check out javascript files

So today Visual Studio (2013/Update1) thought it would be amusing to do a checkout every time I open a Javascript file. It only happens with javascript files -- .css and .cs files in the same project work just fine.
I've tried diffing my project file in source control, and I don't see anything that would cause it (there are a lot of changes, because I just updated some nuget packages, but the changes all seemed to just be file includes for the swapped out .js libraries).
I've tried the obvious stuff, like rebooting and deleting my .suo file. For now, I guess it's just a nuisance, but I would like to fix it.
I am running Resharper 8.1, if that could have anything to do with it.
It appears that the latest Web Essentials update, 1.8, has fixed this issue.
This seems to be the bug we were experiencing: https://github.com/madskristensen/WebEssentials2013/issues/596

Visual Studio 2010-intellisense and highlighting in javascript doesn't work

In one of my solutions in javascripts files the intellisense suddenly stopped working.
All of the features are disabled - ctrl+space doesn't bring the list - like this
I took the print screen from another solution
and also the file looks like it was plain text -keywords has no colors.
I tried to open new solution and move the files there - still the same.
Files has intellisense only when I am debugging.
It feels like VS2010 see that those files are text files instead of js files.
It has something to do with tfs because it first happened to another member of the team and as soon as I took latest version of the solution - it happened to me.
When I create new js file - it looks fine , BUT after saving
the file , closing and reopen - again it is not colored
I found out that the problem is in one specific project - if I add js files to another project in the same solution it seems to be ok.
After some research and tests. This problem could be a couple of things:
Your file's extension is not .JS.
You are using an express edition.
You have not installed the Web Developer component on your installation (or removed it).
Let me know if this help you, If not I will look forward something else.
The complete reference about the JScript Intellisense on msdn:
http://msdn.microsoft.com/en-us/library/vstudio/bb385682(v=vs.100).aspx
As you can see in the image below, I just created a single javascript file in my Visual Studio 2010 with Web developers components and it is working:
So I solved this problem ....
I wanted to watch some value with QuickWatch (Shift+F9)
I got the message "Unable to evaluate the expression. The object invoked has disconnected from its clients." I pressed the green icon to refresh the values. After I closed the QuickWatch window I realized that I got the intellisense and highlighting back.
After a checkin to TFS, my colleague pulled the solution and got the intellisense and highlighting back as well.
Probably some weird bug in VS2010.

Categories