{"action":"opened","issue":{"url":"https://api.github.com/repos/eclipse/n4js/issues/1055","repository_url":"https://api.github.com/repos/eclipse/n4js","labels_url":"https://api.github.com/repos/eclipse/n4js/issues/1055/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/n4js/issues/1055/comments","events_url":"https://api.github.com/repos/eclipse/n4js/issues/1055/events","html_url":"https://github.com/eclipse/n4js/issues/1055","id":350057014,"node_id":"MDU6SXNzdWUzNTAwNTcwMTQ=","number":1055,"title":"IDE fails to setup type definitions for external dependencies","user":{"login":"yoosiba","id":944287,"node_id":"MDQ6VXNlcjk0NDI4Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/944287?v=4","gravatar_id":"","url":"https://api.github.com/users/yoosiba","html_url":"https://github.com/yoosiba","followers_url":"https://api.github.com/users/yoosiba/followers","following_url":"https://api.github.com/users/yoosiba/following{/other_user}","gists_url":"https://api.github.com/users/yoosiba/gists{/gist_id}","starred_url":"https://api.github.com/users/yoosiba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoosiba/subscriptions","organizations_url":"https://api.github.com/users/yoosiba/orgs","repos_url":"https://api.github.com/users/yoosiba/repos","events_url":"https://api.github.com/users/yoosiba/events{/privacy}","received_events_url":"https://api.github.com/users/yoosiba/received_events","type":"User","site_admin":false},"labels":[{"id":580893938,"node_id":"MDU6TGFiZWw1ODA4OTM5Mzg=","url":"https://api.github.com/repos/eclipse/n4js/labels/bug","name":"bug","color":"e99695","default":true},{"id":644626478,"node_id":"MDU6TGFiZWw2NDQ2MjY0Nzg=","url":"https://api.github.com/repos/eclipse/n4js/labels/prio-high","name":"prio-high","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-13T14:35:35Z","updated_at":"2018-08-13T14:35:35Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Setting up project with transitive dependency on `bignumber.js` fails\r\n\r\nRunning \"big button\" on the workspace yields\r\n```\r\nnpm ERR! code E404\r\nnpm ERR! 404 Not Found: bignumber.js-n4jsd@<=2.4.0\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /Users/me/.npm/_logs/2018-08-13T14_10_24_981Z-debug.log\r\n```\r\nand leaves whole workspace broken.\r\n\r\nThis happens when workspace has (transitive) dependency on `bignumber.js`:\r\n\r\n```json\r\n  \"dependencies\": {\r\n    \"bignumber.js\": \"~2.4.0\"\r\n  },\r\n \"n4js\": {\r\n    \"typeDependencies\": {\r\n      \"bignumber.js-n4jsd\": \"<=2.4.0\"\r\n    }\r\n  },\r\n```\r\n\r\n\r\nnpm log shows that library manager tries to fetch type definitions from npm registry (in my case from my custom registry **http://my.custom.registry/repository/npm-public/bignumber.js-n4jsd**):\r\n```\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ '/usr/local/bin/node',\r\n1 verbose cli   '/usr/local/bin/npm',\r\n1 verbose cli   'install',\r\n1 verbose cli   'bignumber.js-n4jsd@<=2.4.0',\r\n1 verbose cli   '--save' ]\r\n2 info using npm@5.6.0\r\n3 info using node@v8.11.1\r\n4 verbose npm-session 31257c7af3d8d62a\r\n5 silly install loadCurrentTree\r\n6 silly install readLocalPackageData\r\n7 http fetch GET 404 http://my.custom.registry/repository/npm-public/bignumber.js-n4jsd 974ms\r\n8 silly fetchPackageMetaData error for bignumber.js-n4jsd@<=2.4.0 404 Not Found: bignumber.js-n4jsd@<=2.4.0\r\n9 verbose stack Error: 404 Not Found: bignumber.js-n4jsd@<=2.4.0\r\n9 verbose stack     at fetch.then.res (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/fetch.js:42:19)\r\n9 verbose stack     at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)\r\n9 verbose stack     at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)\r\n9 verbose stack     at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)\r\n9 verbose stack     at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)\r\n9 verbose stack     at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)\r\n9 verbose stack     at Async._drainQueue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)\r\n9 verbose stack     at Async._drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)\r\n9 verbose stack     at Immediate.Async.drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)\r\n9 verbose stack     at runCallback (timers.js:794:20)\r\n9 verbose stack     at tryOnImmediate (timers.js:752:5)\r\n9 verbose stack     at processImmediate [as _immediateCallback] (timers.js:729:5)\r\n10 verbose cwd /Users/jakub.siberski/n4p/lekkerland_tmp/ws/.metadata/.plugins/org.eclipse.n4js.external.libraries/.n4npm\r\n11 verbose Darwin 17.7.0\r\n12 verbose argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"bignumber.js-n4jsd@<=2.4.0\" \"--save\"\r\n13 verbose node v8.11.1\r\n14 verbose npm  v5.6.0\r\n15 error code E404\r\n16 error 404 Not Found: bignumber.js-n4jsd@<=2.4.0\r\n17 verbose exit [ 1, true ]\r\n```"}}
{"actor":{"display_login":"yoosiba"}}