Closed Yip-Yip closed 9 years ago
Getting a copy of Win 10 VHD and will install fresh vs2015 RTM and then pull my git repo's to confirm it is not an upgrade problem
Error & _reference file
I haven't actually tested the VS Intellisense much in Visual Studio 2015. If you can create a minimal project that demonstrates the problem, I could pull it down and take a look.
You can verify that VS is finding your _references.js file in the VS options:
That would be awesome :dancers:
https://github.com/Yip-Yip/angular-intellesense
SportsStore (not SSportsSTore) and the sportsStore.js controller to be specific of where as an example $http (gives the above error)
Also all of my custom objects and apart from angular are not working throughout app from a intellisense perspective
Thanks In Advance
(FYI my d/l failed overnight so I am pulling the vhd image again.. and will let you know if it is a upgrade bug)
I ran a fresh WIn 10 & VS 2015 up and no joy using the sample project I have linked to :(
I was reading ur stack discussion http://stackoverflow.com/questions/19522970/is-there-anyway-to-define-an-undefined-object-in-visual-studio-intellisense/22256208#22256208
And is there some extra metadata/process that i can add to my files to get it to work ???
I tested a single page html (hello world ) and its works but really whats the point .. i would have assumed that your previous add-in (Angular.Intellisense) working should be able to handle the complexity of at least a simple test SporsSTore (Adam Freeman Pro Angular) layout/structure .. If it cant can you direct me to what/how/type of layout/structure it will support so it works :S
Can you give me any guidence on what may help ..i.e multiple reference links in the headers ???
This is actually a straightforward issue to solve. The Intellisense engine never sees your module named "sportsStore" being created, since it is created in the app.html file in a script block:
<script>
angular.module("sportsStore", ["customFilters","cart"]);
</script>
The VS Intellisense engine is "executing" the code in your project in order to discover how to do code completion. It's using the _references.js file as its starting point and executing each reference from that file, in order. Since VS Intellisense never executes a line of code that creates the AngularJS module named "sportsStore", it doesn't know how to do code completion.
Move the JavaScript code above into its own JS file (let's call it "app.js") and include a reference to it in _references.js. Make sure the "app.js" reference is immediately after the "angular.js" reference, since you need it to create the module before the other script files configure it. That should resolve your issue.
Thank you SO much :dancers:
As per the previous post $http and all my custom objects dont have inttelisense :(
I have added a ASP.NET 5 web project and added angular and other packages via bower
Also added and confirmed the _references in root wwwroot folder
Only have the angular object
I have run this up on both of my dev box's WIN 10 RC & Win 7 (vs2015)
Just thinking about it I did upgrade both box's from RC to RTM if that may have a bearing on the problem