{"action":"created","issue":{"url":"https://api.github.com/repos/theia-ide/theia/issues/3461","repository_url":"https://api.github.com/repos/theia-ide/theia","labels_url":"https://api.github.com/repos/theia-ide/theia/issues/3461/labels{/name}","comments_url":"https://api.github.com/repos/theia-ide/theia/issues/3461/comments","events_url":"https://api.github.com/repos/theia-ide/theia/issues/3461/events","html_url":"https://github.com/theia-ide/theia/issues/3461","id":379634783,"node_id":"MDU6SXNzdWUzNzk2MzQ3ODM=","number":3461,"title":"Problems installing hello-world-extension","user":{"login":"s3dse","id":11731912,"node_id":"MDQ6VXNlcjExNzMxOTEy","avatar_url":"https://avatars3.githubusercontent.com/u/11731912?v=4","gravatar_id":"","url":"https://api.github.com/users/s3dse","html_url":"https://github.com/s3dse","followers_url":"https://api.github.com/users/s3dse/followers","following_url":"https://api.github.com/users/s3dse/following{/other_user}","gists_url":"https://api.github.com/users/s3dse/gists{/gist_id}","starred_url":"https://api.github.com/users/s3dse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s3dse/subscriptions","organizations_url":"https://api.github.com/users/s3dse/orgs","repos_url":"https://api.github.com/users/s3dse/repos","events_url":"https://api.github.com/users/s3dse/events{/privacy}","received_events_url":"https://api.github.com/users/s3dse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-11-12T06:10:43Z","updated_at":"2018-12-07T20:14:55Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nprobably a newbie question: I followed the \"Authoring an extension\" example in the Theia gitbook and ran the yeoman generator. Further, I did the \"Build your own IDE\" steps in a separate project. Combining the two, as plugging the hello-world-extension into the custom IDE fails for me. I chose electron as target and while the shell does start up, it hangs displaying the busy-indicator.\r\n\r\nCustom Theia package.json:\r\n\r\n```Json\r\n{\r\n  \"private\": true,\r\n  \"dependencies\": {\r\n    \"typescript\": \"latest\",\r\n    \"@theia/typescript\": \"next\",\r\n    \"@theia/navigator\": \"next\",\r\n    \"@theia/terminal\": \"next\",\r\n    \"@theia/outline-view\": \"next\",\r\n    \"@theia/preferences\": \"next\",\r\n    \"@theia/messages\": \"next\",\r\n    \"@theia/git\": \"next\",\r\n    \"@theia/file-search\": \"next\",\r\n    \"@theia/markers\": \"next\",\r\n    \"@theia/preview\": \"next\",\r\n    \"@theia/callhierarchy\": \"next\",\r\n    \"@theia/merge-conflicts\": \"next\",\r\n    \"@theia/search-in-workspace\": \"next\",\r\n    \"@theia/json\": \"next\",\r\n    \"@theia/textmate-grammars\": \"next\",\r\n    \"@theia/mini-browser\": \"next\",\r\n    \"@theia/java\": \"next\",\r\n    \"@theia/keymaps\": \"next\",\r\n    \"hello-world-extension\": \"../theia-hello-world/hello-world-extension\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@theia/cli\": \"next\"\r\n  },\r\n  \"theia\" : {\r\n    \"target\":\"electron\"\r\n  }\r\n}\r\n```\r\n\r\n`yarn`\r\n`yarn theia build`\r\nApart from some keybinding collisions no further errors are shown.\r\n`yarn theia rebuild:electron`\r\n`yarn theia start`\r\n When I issue the `--inspect` flag, with custom or default port, the application stops as the given port is already in use (this seems to be a node issue).\r\n\r\n[Edit] I also tried to install the extension from a local registry ([Verdaccio](https://verdaccio.org)) with no success. \r\n\r\nAm I missing something? \r\nThanks in advance.\r\n"},"comment":{"url":"https://api.github.com/repos/theia-ide/theia/issues/comments/445352385","html_url":"https://github.com/theia-ide/theia/issues/3461#issuecomment-445352385","issue_url":"https://api.github.com/repos/theia-ide/theia/issues/3461","id":445352385,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTM1MjM4NQ==","user":{"login":"vince-fugnitto","id":40359487,"node_id":"MDQ6VXNlcjQwMzU5NDg3","avatar_url":"https://avatars2.githubusercontent.com/u/40359487?v=4","gravatar_id":"","url":"https://api.github.com/users/vince-fugnitto","html_url":"https://github.com/vince-fugnitto","followers_url":"https://api.github.com/users/vince-fugnitto/followers","following_url":"https://api.github.com/users/vince-fugnitto/following{/other_user}","gists_url":"https://api.github.com/users/vince-fugnitto/gists{/gist_id}","starred_url":"https://api.github.com/users/vince-fugnitto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vince-fugnitto/subscriptions","organizations_url":"https://api.github.com/users/vince-fugnitto/orgs","repos_url":"https://api.github.com/users/vince-fugnitto/repos","events_url":"https://api.github.com/users/vince-fugnitto/events{/privacy}","received_events_url":"https://api.github.com/users/vince-fugnitto/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T20:14:55Z","updated_at":"2018-12-07T20:14:55Z","author_association":"COLLABORATOR","body":"> Sure, https://github.com/s3dse/custom-theia\r\n> Thanks!\r\n\r\nI was able to find the [issue](https://github.com/s3dse/custom-theia/blob/6b27cd1dd4cbcb30570382fb320cac4538bdcbd7/theia-hello-world-extension/hello-world-extension/package.json#L12) :) your custom extension that you are referencing has `@theia/core: latest` while the theia version you are building is using `next` everywhere.\r\n\r\n If you upgrade your extension `@theia/core` to next, you won't be pulling in two different versions of the same dependency which causes the error. I was able to make the change, and it worked for me afterwards.\r\n\r\nJust to be sure when rebuilding, you can delete your `yarn.lock` file just to be safe and truly pull the updated dependencies. Remember when building your extension again with next, to also update the dependencies in both the [browser](https://github.com/s3dse/custom-theia/blob/6b27cd1dd4cbcb30570382fb320cac4538bdcbd7/theia-hello-world-extension/browser-app/package.json#L1-L32) and [electron](https://github.com/s3dse/custom-theia/blob/6b27cd1dd4cbcb30570382fb320cac4538bdcbd7/theia-hello-world-extension/electron-app/package.json#L1-L32)\r\n\r\nLet me know if you have additional issues :)"}}
{"actor":{"display_login":"vince-fugnitto"}}