Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 461756

Summary: [inferecing] typeUtils does not check is a JSDoc tag has a name before trying to use it
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Michael Rennie CLA 2015-03-09 16:15:26 EDT
Steps:
1. grab http://requirejs.org/docs/release/2.1.16/r.js and add it to your workspace
2. try to open content assist
3. get the following error:

Error retrieving content assist proposals
contentAssist.js:302 TypeError: Cannot read property 'split' of undefined
    at Object.PluginRegistry.internalRegistry.handleServiceError (http://mrennie-new-target.orion.eclipse.org:9000/orion/pluginregistry.js:1071:29)
    at Object._messageHandler [as handler] (http://mrennie-new-target.orion.eclipse.org:9000/orion/pluginregistry.js:392:55)
    at http://mrennie-new-target.orion.eclipse.org:9000/orion/pluginregistry.js:1117:33
    at Array.some (native)
    at _messageHandler (http://mrennie-new-target.orion.eclipse.org:9000/orion/pluginregistry.js:1106:23)

The problem is in typeUtils.js line 397. we don't check if the param tag name actually exists before trying to reference it.
Comment 1 Curtis Windatt CLA 2015-05-08 10:34:18 EDT
Works with the Tern based content assist, closing as WORKSFORME.