This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Say we have log output generated by some application: Here's the require error(s): Error: Cannot find module 'coffee-script/register' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Module.require (module.js:365:17) at require (module.js:384:17) at Hook.defaults (D:\****\node_modules\sails\lib\hooks\moduleloader\index.js:44:9) at Hook.bound [as defaults] (D:\****\node_modules\sails\node_modules\lodash\dist\lodash.js:729:21) at applyDefaults (D:\****\node_modules\sails\lib\app\private\loadHooks.js:70:36) It is in a well recognizable and parsable format: Why don't generate a link to be able to move to a file:line:col?
Parsing of output data is handled by relevant project-support module. If the output is generated by some action invoked in the IDE, it could be parsed (because the project knows what is format of stack-traces, for example). Otherwise, it would be difficult and expensive to parse a generic output. Do you use some coffeescript plugin? (The output parsing should be implemented there.)
No. It's pure node.js Sails application.
> No. It's pure node.js Sails application. In that case, output parsing could be implemented in Node.js project support. Reassigning to javascript/Node.js. Thank you.
Tome, probably you could look at this, if it belongs to the project support.
I can send an example app, if needed.
If you can attach, it will be helpful. Thanks
Created attachment 156387 [details] example application Attached. 1) Unzip 2) Go to properties and choose to run it as Node Application 4) Run npm install on project 5) Run project 6) In the log you will see (screenshot attached).
Created attachment 156388 [details] screenshot
This is a bug, thanks for catching it.
Fixed, please verify. Thanks. http://hg.netbeans.org/web-main/rev/a642d58748b8
wow, thanks, that's great! How can I verify? will it land in the nightly?
(In reply to elennaro from comment #11) > wow, thanks, that's great! > How can I verify? will it land in the nightly? Yes, just a wait for a message which will appear here saying in which daily build the fix will be available. Thanks.
Integrated into 'main-silver', will be available in build *201509250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a642d58748b8 User: Tomas Mysik <tmysik@netbeans.org> Log: #253600 - recognize path in log output and generate link to a file:line:col