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

Bug 501611

Summary: get is undefined for nconf
Product: [ECD] Orion Reporter: Paul Webster <pwebster>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, Michael_Rennie
Version: unspecified   
Target Milestone: 13.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Paul Webster CLA 2016-09-16 11:42:26 EDT
I'm using the electron app, Orion-0.1.37.  The only build ID I can find:
orion.buildId=2016-06-29_22-22-36


I've added the node plugin to the .tern-project file and added nconf to the eslint-env directive:
/*eslint-env node, nconf*/

I'm still getting a warning for this line:
var pop_timeout = nconf.get("POPULATE_TIMEOUT") || 20;

warning: 'get' is undefined for 'nconf' in nconf.js

But if I go the the declaration nconf.js (0.8.4) in node_modules:
var nconf = module.exports = new Provider();

Where Provider has:
Provider.prototype.get = ...
Comment 1 Michael Rennie CLA 2016-10-05 15:28:52 EDT
Bug 503122 was causing files to no be found correctly, and on top of that, the search in the app is slow, so the bulk of the look-ups are timing out, which has the net effect that we cannot compute the type graph correctly, which means we cannot find definitions for types correctly.

I have a fix for the path problem in 503122, and am still working on speeding up the search to avoid this problem.
Comment 2 Michael Rennie CLA 2016-10-17 14:50:25 EDT
Tested this in 0.1.52-alpha of the app, and it is working as expected now that the search has been fixed.

Closing this as fixed (via bug 505411)