{"id":5134,"date":"2007-03-07T18:32:00","date_gmt":"2007-03-07T18:32:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2007\/03\/07\/jscript-intellisense-march-ctp-gotchas-workarounds\/"},"modified":"2007-03-07T18:32:00","modified_gmt":"2007-03-07T18:32:00","slug":"jscript-intellisense-march-ctp-gotchas-workarounds","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/jscript-intellisense-march-ctp-gotchas-workarounds\/","title":{"rendered":"JScript IntelliSense March CTP Gotchas + Workarounds"},"content":{"rendered":"<p><P>The March CTP is of course a &#8220;Preview&#8221; and does have some bugs.&nbsp;&nbsp;I thought we&#8217;d share&nbsp;the top issues seen and offer some workarounds.<\/P>\n<P><STRONG>1. TypeLibBuilder.exe &#8220;has encountered a problem&#8230;&#8221;<\/STRONG><\/P>\n<P>If you&#8217;re&nbsp;seeing this:<\/P>\n<P><IMG border=\"1\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/tlb-error.png\" width=\"500\" height=\"163\"><\/P>\n<P>This a bug where&nbsp;that particular assembly has not&nbsp;been given a Strong Name.&nbsp; The solution is to turn verification off for this one assembly.&nbsp; To do so, place the following text in a text file, rename the extension from &#8220;txt&#8221; to &#8220;reg&#8221;, then run (double-click) the file.<\/P><PRE>Windows Registry Editor Version 5.00<\/p>\n<p>[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\StrongName\\Verification\\TypeLibBuilder,b03f5f7f11d50a3a]<\/PRE>\n<P>Alternatively, you could manually input this if you&#8217;re handy with the Registry Editor.&nbsp; If you&#8217;re familar with SN.exe, the -Vr option should do the same.&nbsp; Note: for security reasons, we don&#8217;t normally recommend disabling Strong Name verification unless you know what you&#8217;re doing. =)<\/P>\n<P><STRONG>2. Functions and Objects declared in external files aren&#8217;t showing up<\/STRONG><\/P>\n<P>In the CTP, IntelliSense for the active document is not aware of changes made in other documents (external scripts).&nbsp; Thus, if you add a function in document B, you won&#8217;t see it show up in document A.&nbsp; The workaround is to close and reopen the document.&nbsp; This forces the editor to look for any changes.&nbsp; Note: this issue is fixed internally, but it might&nbsp;be&nbsp;a while&nbsp;before it is publicly available.<\/P>\n<P><STRONG>3. Functions and Objects declared in external files aren&#8217;t showing up (still!)<\/STRONG><\/P>\n<P>Errors in an external script can cause certain members not to show up in IntelliSense.&nbsp; If this is the case, we&#8217;ll give you the error and the line number in the status bar:<\/P>\n<P><IMG border=\"1\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/tlb-error2.png\" width=\"600\" height=\"100\"><\/P>\n<P>For reasons outside the scope of this post, the external script is actually executed in a sandboxed script engine.&nbsp; There are actually a few instances where script may fail due to the fact that it&#8217;s not in an actual browser.&nbsp; I would love to hear about any of these cases so we can better adjust our design.<\/P>\n<P><STRONG>4. XML Doc Comments not showing up<\/STRONG><\/P>\n<P>Per our current design, we are only able to process XML Doc Comments in external files (that you&#8217;re referencing from the current file).&nbsp; In short, external files are processed in a separate engine than the current file.&nbsp; That engine understands XML Doc Comments.&nbsp; The engine running the current document does not.&nbsp; There were limited resources and the rationalization was that external files (often written by someone else) are where comments count the most.&nbsp; Let us know if you don&#8217;t agree with this. =)<\/P>\n<P><STRONG>5. Common XML Doc Comment misspellings<\/STRONG><\/P>\n<P>I often find myself not mindful of the spelling of two tags.&nbsp; It might be worthwhile to reiterate that &lt;reference \/&gt; lacks an &#8220;s&#8221; and &lt;returns \/&gt; has one.<\/P>\n<P>I hope&nbsp;this information&nbsp;makes your &#8220;previewing&#8221; experience a better one!<\/P>\n<P><STRONG>Jeff King<\/STRONG><BR>Program Manager<BR>Visual Studio Web Tools<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The March CTP is of course a &#8220;Preview&#8221; and does have some bugs.&nbsp;&nbsp;I thought we&#8217;d share&nbsp;the top issues seen and offer some workarounds. 1. TypeLibBuilder.exe &#8220;has encountered a problem&#8230;&#8221; If you&#8217;re&nbsp;seeing this: This a bug where&nbsp;that particular assembly has not&nbsp;been given a Strong Name.&nbsp; The solution is to turn verification off for this one assembly.&nbsp; [&hellip;]<\/p>\n","protected":false},"author":404,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[4,31,7276,7277,7274,7273,147,7267,7268,7269],"class_list":["post-5134","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-net","tag-asp-net","tag-intellisense","tag-jeff-king","tag-jscript","tag-orcas","tag-visual-studio","tag-vwd","tag-web","tag-web-2-0"],"acf":[],"blog_post_summary":"<p>The March CTP is of course a &#8220;Preview&#8221; and does have some bugs.&nbsp;&nbsp;I thought we&#8217;d share&nbsp;the top issues seen and offer some workarounds. 1. TypeLibBuilder.exe &#8220;has encountered a problem&#8230;&#8221; If you&#8217;re&nbsp;seeing this: This a bug where&nbsp;that particular assembly has not&nbsp;been given a Strong Name.&nbsp; The solution is to turn verification off for this one assembly.&nbsp; [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/5134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/404"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=5134"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/5134\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=5134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=5134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=5134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}