Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

TypeError: Cannot read property 'node' of null at findTypeAt #35

Closed
despairblue opened this issue Feb 22, 2015 · 0 comments
Closed

TypeError: Cannot read property 'node' of null at findTypeAt #35

despairblue opened this issue Feb 22, 2015 · 0 comments

Comments

@despairblue
Copy link
Contributor

TypeError: Cannot read property 'node' of null at findTypeAt (/home/despairblue/.atom/packages/atom-ternjs/node_modules/tern/plugin/node.js:142:31) at /home/despairblue/.atom/packages/atom-ternjs/node_modules/tern/lib/tern.js:765:16 at Array.forEach (native) at findExprType (/home/despairblue/.atom/packages/atom-ternjs/node_modules/tern/lib/tern.js:764:28) at Object.findTypeAt [as run] (/home/despairblue/.atom/packages/atom-ternjs/node_modules/tern/lib/tern.js:788:16) at run (/home/despairblue/.atom/packages/atom-ternjs/node_modules/tern/lib/tern.js:212:30) at Object.exports.withContext (/home/despairblue/.atom/packages/atom-ternjs/node_modules/tern/lib/infer.js:732:18) at /home/despairblue/.atom/packages/atom-ternjs/node_modules/tern/lib/tern.js:219:13 at analyzeAll (/home/despairblue/.atom/packages/atom-ternjs/node_modules/tern/lib/tern.js:333:15) at doRequest (/home/despairblue/.atom/packages/atom-ternjs/node_modules/tern/lib/tern.js:203:5)

Seems to be a tern error, I think.

Happens with a file containing:

'use strict';

require('crypto');
  1. place your cursor into crypto so that it shows the parameter documentation
  2. press ctrl+/ (or cmd in your case ;) ) to comment the line

By the way it does not happen with tern@0.8, so using the stable versions would fix that, though I'm not sure you want that, since that version is missing the ecma6.json again.

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

1 participant