{"action":"created","issue":{"url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/357","labels_url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/357/comments","events_url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/357/events","html_url":"https://github.com/Komodo/KomodoEdit/issues/357","id":89745475,"number":357,"title":"node.js: passing of interpreter arguments is not working when debugging node.js","user":{"login":"drmead","id":2454702,"avatar_url":"https://avatars.githubusercontent.com/u/2454702?v=3","gravatar_id":"","url":"https://api.github.com/users/drmead","html_url":"https://github.com/drmead","followers_url":"https://api.github.com/users/drmead/followers","following_url":"https://api.github.com/users/drmead/following{/other_user}","gists_url":"https://api.github.com/users/drmead/gists{/gist_id}","starred_url":"https://api.github.com/users/drmead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmead/subscriptions","organizations_url":"https://api.github.com/users/drmead/orgs","repos_url":"https://api.github.com/users/drmead/repos","events_url":"https://api.github.com/users/drmead/events{/privacy}","received_events_url":"https://api.github.com/users/drmead/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Komodo/KomodoEdit/labels/Pending%20Response","name":"Pending Response","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"mitchell-as","id":12902397,"avatar_url":"https://avatars.githubusercontent.com/u/12902397?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchell-as","html_url":"https://github.com/mitchell-as","followers_url":"https://api.github.com/users/mitchell-as/followers","following_url":"https://api.github.com/users/mitchell-as/following{/other_user}","gists_url":"https://api.github.com/users/mitchell-as/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchell-as/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchell-as/subscriptions","organizations_url":"https://api.github.com/users/mitchell-as/orgs","repos_url":"https://api.github.com/users/mitchell-as/repos","events_url":"https://api.github.com/users/mitchell-as/events{/privacy}","received_events_url":"https://api.github.com/users/mitchell-as/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-06-20T09:34:49Z","updated_at":"2015-06-23T23:49:03Z","closed_at":null,"body":"Komodo IDE, version 9.1.0, build 87337, platform win32-x86. Built on Fri May 29 18:45:28 2015.\r\n\r\nThe node.js source is:\r\n\r\n    let x = \"Success\";\r\n    console.log(x);\r\n\r\nWhen I run this program from the command line, with the `--harmony` and `--use-strict` flags, there are no errors and it runs as expected.\r\n\r\n    Y:\\Personal\\svm_task>node --harmony --use-strict let_test2.js\r\n    Success\r\n\r\nWhen I use \"Run Without Debugging\" within Komodo IDE I also get \"Success\"\r\n\r\nWhen I try to debug from within Komodo with \"interpreter arguments\" set to:\r\n\r\n    --harmony --use-strict\r\n\r\nI get this error:\r\n\r\n    Y:\\Personal\\svm_task\\let_test2.js:1\r\n    (function (exports, require, module, __filename, __dirname) { let x = \"Success\r\n                                                                  ^\r\n    SyntaxError: Unexpected identifier\r\n    at Module._compile (module.js:439:25)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Module.runMain [as _onTimeout] (module.js:497:10)\r\n    at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)\r\n\r\n\r\nIt is definitely getting the same version of node.js from inside and outside. From the command line:\r\n\r\n    node --harmony --use-strict --version let_test2.js \r\n    v0.10.33\r\n\r\nDebugging from within Komodo with \"interpreter arguments\" set to:\r\n\r\n    --harmony --use-strict --version\r\n\r\nproduces:\r\n\r\n    v0.10.33\r\n\r\nThe bug appears regardless of whether I use \"Debug in separate console\", but I have observed that sometimes the separate console message produces a different error message.\r\n\r\n====================================================================\r\nThis appears to be identical to a bug reported in Komodo IDE 8.5 and reputedly fixed in Komodo IDE 9\r\n\r\nActiveState Bugs » Bug #105067  2014-09-03 16:24:48 PDT\r\nFixed already in Komodo IDE 9 (with node,js debugger refactorings), but not in Komodo 8.5.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/comments/114676564","html_url":"https://github.com/Komodo/KomodoEdit/issues/357#issuecomment-114676564","issue_url":"https://api.github.com/repos/Komodo/KomodoEdit/issues/357","id":114676564,"user":{"login":"drmead","id":2454702,"avatar_url":"https://avatars.githubusercontent.com/u/2454702?v=3","gravatar_id":"","url":"https://api.github.com/users/drmead","html_url":"https://github.com/drmead","followers_url":"https://api.github.com/users/drmead/followers","following_url":"https://api.github.com/users/drmead/following{/other_user}","gists_url":"https://api.github.com/users/drmead/gists{/gist_id}","starred_url":"https://api.github.com/users/drmead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmead/subscriptions","organizations_url":"https://api.github.com/users/drmead/orgs","repos_url":"https://api.github.com/users/drmead/repos","events_url":"https://api.github.com/users/drmead/events{/privacy}","received_events_url":"https://api.github.com/users/drmead/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T23:49:03Z","updated_at":"2015-06-23T23:49:03Z","body":"When I run your test case with interpreter arguments:\r\n\r\n    --harmony --use-strict --no_such_node_option\r\n\r\nand script arguments:\r\n\r\n    --script_arg1\r\n\r\nthe output is:\r\n \r\n    0: c:\\program files\\node\\node.exe\r\n    1: Z:\\Derek\\Komodo_bugs\\Node-1.js\r\n    2: --script_arg1\r\n    Error: unrecognized flag --no_such_node_option\r\n    Try --help for options\r\n\r\nIt looks as though the interpreter arguments are being processed, so the issue is presumably in the interface to the debugger.\r\n"}}