{"id":2228,"date":"2022-08-30T15:23:07","date_gmt":"2022-08-30T15:23:07","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/05\/problem-about-intellisense-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:23:07","modified_gmt":"2022-08-30T15:23:07","slug":"problem-about-intellisense-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-intellisense-collection-of-common-programming-errors\/","title":{"rendered":"problem about intellisense-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/625642719449cabc1d84b5e05918325a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nArnold Zokas<br \/>\nc# .net documentation intellisense<br \/>\nI am currently writing a small framework that will be used internally by other developers within the company.I want to provide good Intellisense information, but I am not sure how to document thrown exceptions.In the following example:public void MyMethod1() {MyMethod2();\/\/ also may throw InvalidOperationException }public void MyMethod2() {System.IO.File.Open(somepath&#8230;); \/\/ this may throw FileNotFoundException\/\/ also may throw DivideByZeroException }I know the markup for documenting exceptions<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/767934a648524da57388558217ad9c2d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDenaliHardtail<br \/>\nvisual-studio-2010 intellisense<br \/>\nI installed the RC of VS2010 side-by-side with VS2008 SP1. VS2010 Intellisense appears to be broken, or at least not functioning as expected. I can only get intellisense if I hit CTRL + spacebar. Then after selecting the memebr from the intellisense list, hit the period again, and then CTRL + space again.If intellisense broken or just turned off? How do I fix it?Update #1 &#8211; I do have Resharper 4.5 installed on VS2008.UPDATE #2 &#8211; I installed the hot fix. No go. Then, I looked at the options under<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ffcb44a3e8c3a2f91ba016a1c9267a17?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\niBiryukov<br \/>\nintellisense zend-studio<br \/>\nThe intellisense feature in zend studio 7 just stopped working.I do as usual -&gt; Start typing, hit ctrl+space and the suggestions pop up is empty. It just happened out of blue. No hard eclipse restarts, no crashes!Anyone got any thoughts? Thanks<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/15b767a2c3503f273e9ad5270e4efdc1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSchiavini<br \/>\nasp.net visual-studio-2010 .net-4.0 intellisense globalization<br \/>\nSince we implemented globalization in our ASP.net website, we are getting some intellisense problems.When the resource is added to an asp.net control, we receive errors. Even though the error is shown in visual studio, the application works!For example, the following button&lt;asp:Button runat=&#8221;server&#8221; ID=&#8221;BtnSave&#8221; Text=&#8221;&lt;%$ Resources:ResourceName, Save %&gt;&#8221; OnClick=&#8221;BtnSave_Click&#8221; \/&gt;Is not recognized in the code behind:The error is only shown when the code behind is open. But in the bro<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/nyzNK.png?s=32&amp;g=1\" \/><br \/>\nPaul<br \/>\nc# visual-studio-2010 intellisense<br \/>\nI installed VS2010 on my Windows 7 x64&#8230; The patch to fix Intellisense as well (http:\/\/connect.microsoft.com\/VisualStudio\/Downloads\/DownloadDetails.aspx?DownloadID=26662)&#8230;But my C# Intellisense doesn\u00b4t work&#8230; It doesn\u00b4t crash, but nothing happens when I typing&#8230; Just if I press a Ctrl+Backspace it appears&#8230;In my Javascript file the Intellisense is working fine&#8230;Any idea?Thanks<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/MbIFT.jpg?s=32&amp;g=1\" \/><br \/>\ndevoured elysium<br \/>\nc# visual-studio visual-studio-2010 intellisense<br \/>\nEvery time I try to write something, IntelliSense freezes Visual Studio and I have to wait like 2 minutes for it to show code completion list. The only way I can work with is turning it completly off. **`I&#8217;ve already installed the last IntelliSense patch from Microsoft but the problem doesn&#8217;t seem to have gotten any better.Anyone had the same issue or knows what might be the problem? I&#8217;m using C#. I have a freshly installed version of Visual Studio 2010 RC, with no ReSharper, on a clean formated<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7993bfc44f2372777651b3da035c0c77?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJustin<br \/>\nc++ visual-studio visual-studio-2005 intellisense<br \/>\nUPDATE1: I have reinstalled Visual Studio and I am still having this problem. My guess is there is a problem with my environment.Update2: Diving in. I attached windbg to devenv and set a breakpoint in windbg for msenv!_tailMerge_WINMM_dll and traced through. This is trying to load winmm.dll using the LoadLibrary API. I can see that LoadLibrary is failing and GetLastError is returning 5 which is &#8220;access denied&#8221;.now, why would vs be denied access to winmm.dll?&#8212;Begin Original&#8212;I am currently ha<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8e5445b5f26ee4a1e64b2b9fca536a52?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSteven V<br \/>\nvisual-studio-2012 text intellisense copy-paste hang<br \/>\nI&#8217;m trying to paste a large text file that is pre-parsed to fit in an array declarationpublic static void Items[] test = new Items[] {\/\/Large text goes herenew Items(&#8220;Text&#8221;, &#8220;Text&#8221;) };When I paste this text, which is about 70K lines, VS2012 just crashes. It&#8217;s probably still working in the background, but I&#8217;d rather not wait.I think the best solution would be to temporarily disable Intellisense before pasting, but then what happens when it&#8217;s turned back on? And how do I disable it in the first pl<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/37582ec82863a9bf9483f6dd8ef70fe8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTWith2Sugars<br \/>\nvisual-studio-2008 linq intellisense<br \/>\nCurrently I&#8217;m using Visual Studio 2008 (SP1) and developing some code that uses nested LINQ statements. How ever with every level of nesting the intellisense performance drops considerably to the point where it become unusable.Has anyone else experienced something similar or found a solution to this problem?Cheers for any help TonyUpdate We use resharper, I&#8217;ve change the intellisense back to visual studio and the same thing happens.I don&#8217;t have the exact code with me but its something along the<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a20bc5be8f315fd183b66a5ff7e96d24?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJekke<br \/>\nvisual-studio crash intellisense<br \/>\nIn my work environment, Visual Studio currently crashes every time I start our main project unless I delete the .suo (solution options) and .ncb (C++ Intellisense symbols) files.Obviously, I&#8217;ve found a workaround. Is there a more permanent solution than this?<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8328fd788e45abbde53191c2c6630a3c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEdd<br \/>\nvisual-studio-2010 crash intellisense<br \/>\nI try to write something in the .cs file, or in the .aspx file at a moment when the intellisesnse comes in, the environment freezes, not responding for a while, 30 to 60 sec.. witch is very annoying because i can&#8217;t write my code.This is happening when i write C# code, when i write html tags, when i write JQuery code.. I did the latest updates to VS &#8230; SP1, i disabled advanced features for intellisense.. but still i can&#8217;t fight this one :)My configuration: Intel Dual Core, 4GB RAM, 1GB HD Video<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/24b9311c7c4d8e6c603b2c588f60d13c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMichael Itzoe<br \/>\nvisual-studio-2010 crash intellisense<br \/>\nMany times when I&#8217;m editing a .aspx file and type CssClass=, the Visual Studio IDE hangs then crashes with option to restart. Clearly this is happening while VS is trying to populate the Intellisense with available classes. Nine times out of ten I already know what class I want. Is there a way to disable Intellisense just on CSS classes? Or is there something else going on?Specs: Windows 7 (basic theme, no Aero), Visual Studio 2010 Professional, Pentium 4 2.4 GHz, 2GB RAM<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d422ad4b8d53dc86a64d5a3e62ba15a7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nYan Sklyarenko<br \/>\nvisual-studio-2010 editor crash intellisense<br \/>\nI have been using VS2010 for a few weeks but for the past few days it has been totally unusable, when i type anything into the editor Visual Studio throws an exception, then I get lots of intellisence errors (the code is fine, I can compile it if I run before trying to use the editor) &#8211; here is the log message:&lt;entry&gt;&lt;record&gt;241&lt;\/record&gt;&lt;time&gt;2011\/01\/25 08:30:34.109&lt;\/time&gt;&lt;type&gt;Error&lt;\/type&gt;&lt;source&gt;Editor or Editor Extension&lt;\/source&gt;&lt;descri<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a768f2f5352be2432c177b22df98f56c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndawoodman71<br \/>\nandroid eclipse listview intellisense<br \/>\nThe intellisense does not show smoothScrollToPosition and when I put it in I get an error stating that &#8220;The method smoothScrollToPosition(int) is undefined for the type ListView&#8221;.Here is my implementation:public void onItemClick(AdapterView&lt;?&gt; adapterView, View view, int index, long id) {debug(&#8220;item &#8220;+index+&#8221; clicked&#8221;);listView.smoothScrollToPosition(index); }I have API 8 and 16 installed via SDK Manager in Eclipse and I am targeting APIs 8-16.In an attempt to work around this issue I crea<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f289b432eed00f9384564679bbd632dd?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nThe Communist Duck<br \/>\nvisual-studio visual-studio-2010 intellisense performance lag<br \/>\nI have the issue with Visual Studio 2010, after a while, running exceptionally slowly and slowing everything else down with it. I&#8217;m meaning:Most other open windows become unresponsive Typing is delayed Build times increase 10-fold Saving takes foreverI am sure this is an Intellisense issue; disabling it solves everything, and when this happens in Task Manager I find a couple of vcpkgsrv.exe (the Intellisense thing) running at about 160,000K memory (This is about the same as an older, less graphi<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/108d2a6f7ef9c5b23c82d4210d32c7bf?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGetOutOfBox<br \/>\nc++ visual-studio-2010 parsing intellisense<br \/>\nSo I&#8217;m using Visual Studio 2010, specifically the C++ packages. Everything&#8217;s been great, with the exception of Intellisense. It is a wonderfully useful tool, when it works properly (which it usually does). However, it has this annoying quirk where every now and then, after editing a file, it completely craps out and flags random things as errors, when I&#8217;m sure they, and the rest of the file are 100% valid, no nonsense code.The problem seems to lie with Intellisense&#8217;s parser, as most of the error<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/618a5078721cbfeb92fcd6393c8126f5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDavid Boike<br \/>\njavascript visual-studio intellisense<br \/>\nRight off the bat, this is not your standard &#8220;I can&#8217;t get javascript IntelliSense to work in Visual Studio.&#8221; For the record:I&#8217;m using Visual Studio 2008 I have installed SP 1 I have installed the hotfix for -vsdoc.js documentation files KB958502I am developing a suite of interrelated jQuery plugins to be packaged as resources in a class library. So within a directory, I have (as an example):jquery-vsdoc.js core.js plug1.js plug2.jsIn core.js, I have the following at the top of the file:\/\/\/ &lt;<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/194f9c87188a68caf3b81f70188f5d83?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nsepideh<br \/>\nc++ visual-studio-2010 system intellisense identifier<br \/>\nCan anyone help me what is the problem? I&#8217;m really confused. I just started a new win32 console application in VS2010 and and set the Additional options property to precompiled headerin the upcoming wizard. based on one of my previous questions at first I desided to change the main function to this form: int main(int argc, char* argv[]) and also I changed the Character Set property of the project to Use Multi-Byte Character Set but writing the code: system(&#8220;pause&#8221;); will produce these two e<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/752394accd0332bef3228799404610fc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nScottie<br \/>\njquery razor intellisense<br \/>\nIt seems as though there is a bug either in Razor or in MVC. Given the following code:@* This is necessary to get the jQuery intellisense. It won&#8217;t be rendered to the HTML *@ @if (false) { &lt;script src=&#8221;..\/..\/Scripts\/jquery-1.7.1-vsdoc.js&#8221; type=&#8221;text\/javascript&#8221;&gt;&lt;\/script&gt; }&lt;script&gt; $(). &lt;- This has intellisense@* Comment *@ $(). &lt;- This does not have intellisense &lt;\/script&gt;As you can see, anything after a Razor comment does not have the jQuery intellisense. In<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6669b854b99be3c90dc21907d74cbd86?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMehrdad<br \/>\nvisual-studio visual-studio-2008 visual-c++ intellisense<br \/>\nDoes anyone know why Visual Studio 2008&#8217;s Intellisense is acting funny?If I say BEGIN_MSG_MAP, I get this: If I say BEGIN_MSG_MAP_FOO, I get this: Either way, the macros are all undefined, so what&#8217;s the deal?And nope, I am not using Force Include anywhere, so this is the actual entire source file &#8212; there&#8217;s virtually nothing defined, as shown below:<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8d40b5645fbd3fe79d10eb68dd7cd6ec?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1334896<br \/>\nc++ visual-studio visual-c++ intellisense<br \/>\nIntellisense is broken with this code, everything is undefined to Intellisense from tree header:#include &#8220;tree.h&#8221; #include &lt;iostream&gt; #include &lt;ctime&gt; #include &lt;string&gt; #include &lt;list&gt;But when I move my own bst implementation header file down a bit, Intellisense starts working again.#include &lt;iostream&gt; #include &lt;ctime&gt; #include &lt;string&gt; #include &lt;list&gt; #include &#8220;tree.h&#8221;Why is this?<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/47bef36c0ac00df73c1dd48a7de8bec4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nrakkarage<br \/>\nc++ visual-studio visual-c++ intellisense<br \/>\ntemplate &lt;typename T&gt; class Test {friend Test&lt;T&gt; &amp; operator * (T lhs, const Test&lt;T&gt; &amp; rhs) {Test&lt;T&gt; r(rhs); \/\/ return r *= lhs;} }4 IntelliSense: identifier &#8220;T&#8221; is undefinedwhy is T defined on line 3 but not line 4? i mean i guess its not a real error just an intellisense error&#8230; it works anyway but is there something wrong? can i fix it? or remove the red squiggles somehow?thanksi am using visual studio 2010&#8230; i wonder if this happens in other versions<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/78a0a4bb106d07b6c6f33a51988155e3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPeter Mortensen<br \/>\nintellisense visual-studio-2008-sp1 jquery vsdoc<br \/>\n\/\/\/ &amp;lt;reference path=&#8221;jquery-1.5.vsdoc.js&#8221; \/&gt; \/\/ IntelliSense works here.function ($, window, document, undefined) { \/\/\/ &amp;lt;param name=&#8221;$&#8221; type=&#8221;jQuery&#8221; \/&gt;\/\/ IntelliSense does not work here.}(jQuery, this, document);Is there a workaround for Visual Studio 2008? The SP1 hotfix has been applied and is the reason the IntelliSense works outside of the no-conflict wrapper but, inside, no bueno. Some have said to add the param annotation but, alas, that doesn&#8217;t work either for me.<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/29c8143c0fed1a8f7aba688250cfffb5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nScott????<br \/>\nvisual-studio-2010 visual-c++ intellisense makefile-project<br \/>\ni have a makefile project which can build successfully, but i got a lot of IntelliSense errors like:117 IntelliSense: identifier &#8220;iInt32&#8221; is undefined d:\\project\\tjlpad\\cpptest\\lxn\\xmlxn.h 242how to config VS2010 to make it can find the code???&#8211;i&#8217;m working on a super old (and not very good) program, which is using VIM&amp;VC++6, i&#8217;m trying to use VS2010 to do my development work.<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3b2cd9c4e2c6255ffc5d9bd43eeb476c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDanny<br \/>\nvisual-studio-2008 sharepoint intellisense<br \/>\nI am working with a project generated by the VS2008 Sharepoint template (VSeWSS). Currently, when working in the ASCX files that I have, IntelliSense does not recognize the imported namespaces. I&#8217;m uncertain what to do to address this. Note: Per edit below, importing SharePoint.WebPartPages works fine, it&#8217;s just SharePoint.WebControls that doesn&#8217;t.The project does build without error and deploys correctly. Removing the &lt;%@Register Tagprefix=&#8221;SharePoint&#8221;&#8230; line results in the expected &#8220;Unknow<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7601316edef7bcf3be9e1e6a25c5c88c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTodd Stout<br \/>\nvb.net visual-studio intellisense<br \/>\nFor me, developing for the Java ecosystem payed the bills for many years. However, for several years now, I have been working primarily in the .Net space. Initially, my transition into the .Net world consisted of writing and maintaining VB.Net code. VS provided almost all of the nice intellisense support I came to expect after years of working with the Eclipse\/Java combo. Eventually my employer decided to do new development in C#. My initial impression of the intellisense support for C# was<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d7967014c01f0179a1c80bd4b488725b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMZB<br \/>\nvisual-studio-2008 unit-testing intellisense<br \/>\nI have a Visual Studio 2008 solution which builds a C# class library (Project X) and C# Windows Application (Project Y). In the unit test project for the C# class library (XTEST) , Intellisense works as expected and auto-completes the names of classes etc.In the unit test project for the windows application (YTEST), Intellisense has stopped working and only auto-completes with the names of accessor classes, not the names of actual classes. Intellisense also reports lots of class names as being u<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2014-01-05 09:08:34. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Arnold Zokas c# .net documentation intellisense I am currently writing a small framework that will be used internally by other developers within the company.I want to provide good Intellisense information, but I am not sure how to document thrown exceptions.In the following example:public void MyMethod1() {MyMethod2();\/\/ also may throw InvalidOperationException }public void MyMethod2() {System.IO.File.Open(somepath&#8230;); \/\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,8],"tags":[],"class_list":["post-2228","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-zend-framework"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2228"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2228\/revisions"}],"predecessor-version":[{"id":8971,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2228\/revisions\/8971"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}