jquery + intellisense + vs2008 pro fails to load

浪尽此生 提交于 2019-12-08 02:34:03

问题


i use win7 + VS2008 PRO to edit my blog (php) and i can't seem to get this work.

i tried installing the patch (inteli hot fix) but it says no need to install (i have pro sp1) this is the folder structure:

js common.js jquery-1.3.2-vsdoc.js jquery-1.3.2.js

i working on a blog (not asp or html) so i created a common.js file that i want to work on. i tried to referencing (no spaces): /// reference path="jquery-1.3.2-vsdoc.js" (openning and closing bracket were removed by stackoverflow code manager)

but i get this error:

Error updating JScript IntelliSense: Client-side script IntelliSense information was not generated due to an error in an external script reference. C:\xampp\htdocs\wordpress\wp-content\themes\mytheme\includes\js\common.js

i have the official jquery-1.3.2.js jquery-1.3.2.min.js and jquery-1.3.2-vsdoc2.js and yes i removed the 2 at the end of vsdoc file name and tried both mini and normal js files and both failed to load.

i just want to see some intellisense within my js file - a blog doesn't have a masterpage or anthing. why can't i make this work.

also updated windows services including vs2008

also reseted all setting in vs2008

also disabled all plugins in vs2008


回答1:


First, check the correct patch (redownload/execute to be 100% sure).
I have the pro version with SP1 too, and it worked.

Second, double check the closing bracket with "/", and be sure to put it inside the .js in which you are interested to have the documentation in (in your case, if i am not mistaken, it is common.js).

Very important: if the doc file is in another directory, you have to point it correctly, relatively to where the common.js file is.

/// <reference path="jquery-1.3.2-vsdoc.js" />


来源:https://stackoverflow.com/questions/1505705/jquery-intellisense-vs2008-pro-fails-to-load

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!