Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Weird / incorrect content assist suggestions #256

Closed
kdvolder opened this issue Mar 7, 2013 · 1 comment
Closed

Weird / incorrect content assist suggestions #256

kdvolder opened this issue Mar 7, 2013 · 1 comment
Assignees
Milestone

Comments

@kdvolder
Copy link
Contributor

kdvolder commented Mar 7, 2013

Sometimes content assist suggestion are simply suggesting wrong things while missing the things that I'd expect even in cases where you would probably expect it to work based on code-structure.

For example in the current dev branch if I go to 'start-cloudfoundry.js.
On line 72.

 var server=require('../server/scriptedServer.js').start(filesystem, {

Place cursor after the '.' before 'start' and press ctrl-space.

I get suggestions like 'compose' and 'configure', 'readFileSync'.

These functions are in fact NOT defined or exported by the scriptedServer module.
Why am I seeing them?

The only function scripted server exports is called 'start'.

Why am I not seeing that one?

I am seeing this error message in error log:
Uncaught TypeError: Cannot read property 'kind' of undefined esprimaJsContentAssist.js:2392

This is in Chrome.

Now in Firefox...

There I don't get any specific suggestions... only the generic Object ones like 'hasOwnProperty' and friends.

And I'm seeing this error in the error log:

 type is undefined
 var res = type[name];
 esprimaJsContentAssist.js (line 1765)
@ghost ghost assigned aeisenberg Mar 12, 2013
@aeisenberg
Copy link
Contributor

Appears fixed along with my fix for issue #258.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants