none
Visual Studio 2015 Professional, Intellisense in bower.json and package.json is not working. RRS feed

  • Question

  • I installed VS-2015 professional from MSDN subscription site. When I tried to create an empty ASP.NET 5 website, bower and NPM did not work. On probing I found out that there was no NodeJS installed on my system in 'C:\Program Files (x86)\nodejs' (even though I did select Joyent NodeJS feature while installing, but node, NPM and all was installed on C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External). So I installed NodeJS from the NodeJS site and NPM started working.

    But intellisense in bower.json and package.json is not working.

    In package.json, intellisense for package name is still not working but for release version it is working now. i.e. to say I have to type the name of package and there is no intellisense while typing the name of package, though for release version inteliisense do suggest the latest stable release.

    In bower.json neither package name intellisense nor release version intellisense is available. I have to type the package name and for version it shows '*' only.

    Others in my team also facing the same issue. Would anyone please be able to help me in resolving this issue of intellisense for package name as well as for release version?

    ------------------------------------------------------------------------------------------------------------------------------------------------------

    N.B. : after the install of NodeJS from NodeJS site, Package restore has started working; only intellisense in json file is not working.

    I tried installing Git for windows as well (from bower site for troubleshooting they say to install mysysgit and add it to path variable) so I did install the Git and added the location in path variable. But intellisense still not worked.

    So I did the following:

    1. Configured Git to use http instead of git:// with Git Bash

    git config --global url."http://".insteadOf git://

    Configured VS to use the new installed Git over VS Git

    Right click on Bower folder (under Dependencies), then select "Configure external tools" , Unchecked "$(DevEnvDir)\Extensions\Microsoft\Web Tools\External\git" and added a new node with "C:\Program Files (x86)\Git\bin".

    Restarted the VS and intellisense still not worked.

    Update 1: I installed Bower again using NPM and after restarting VS multiple times, release version intellisense started working for bower.json!!! Then I uninstalled the bower (which I installed via NPM) and release version intellisese is still working... It is a strange scenario cause now one cannot say for certainty that Bower install via NPM resolved the issue as after un-installing intellisense is still working. Though I still not getting the package names by Intellisense.!!!! 

    ------------------------------------------------------------------------------------------------------------------------------------------------------

    This has become a real nightmare working with bower and NPM in Visual Studio 2015. Please help !!

    Thanks and regards

    Arun Kumar Dubey
    Sunday, October 25, 2015 4:30 PM

Answers

All replies

  • I am also facing the same issue.
    Monday, October 26, 2015 4:37 AM
  • I am also facing the same issue
    Monday, October 26, 2015 4:57 AM
  • Hello,

    The TechNet Wiki Discussion Forum is a place for the TechNet Wiki Community to engage, question, organize, debate, help, influence and foster the TechNet Wiki content, platform and Community.

    Please note that this forum exists to discuss TechNet Wiki as a technology/application.

    As it's off-topic here, I am moving the question to the Where is the forum for... forum.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Monday, October 26, 2015 2:20 PM
    Moderator
  • Hello,

    This should be asked in Microsoft's ASP.Net forums:

    http://forums.asp.net/

    As Microsoft's ASP.Net forums are on a different platform, we cannot move the question for you.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Monday, October 26, 2015 2:24 PM
    Moderator