{"action":"created","issue":{"url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/434","repository_url":"https://api.github.com/repos/lihaoyi/Ammonite","labels_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/434/labels{/name}","comments_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/434/comments","events_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/434/events","html_url":"https://github.com/lihaoyi/Ammonite/issues/434","id":170485492,"number":434,"title":"IntelliJ support for Ammonite scripts","user":{"login":"lihaoyi","id":934140,"avatar_url":"https://avatars.githubusercontent.com/u/934140?v=3","gravatar_id":"","url":"https://api.github.com/users/lihaoyi","html_url":"https://github.com/lihaoyi","followers_url":"https://api.github.com/users/lihaoyi/followers","following_url":"https://api.github.com/users/lihaoyi/following{/other_user}","gists_url":"https://api.github.com/users/lihaoyi/gists{/gist_id}","starred_url":"https://api.github.com/users/lihaoyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lihaoyi/subscriptions","organizations_url":"https://api.github.com/users/lihaoyi/orgs","repos_url":"https://api.github.com/users/lihaoyi/repos","events_url":"https://api.github.com/users/lihaoyi/events{/privacy}","received_events_url":"https://api.github.com/users/lihaoyi/received_events","type":"User","site_admin":false},"labels":[{"id":165699523,"url":"https://api.github.com/repos/lihaoyi/Ammonite/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-08-10T18:27:12Z","updated_at":"2017-01-11T15:03:59Z","closed_at":null,"body":"IntelliJ supports `.sc` files, kinda-sorta: it treats them as worksheets. This means that it provides that annoying interactive/right-hand-pane, as well as not supporting `import  $ivy` and `import $file` syntax.\n\nWe should teach IntelliJ how to understand our `.sc` scripts, including imports. Whether as a separate plugin or as patches to the main IntelliJ-Scala plugin\n\n@coderabhishek took a look at this over the summer for GSOC, but will not have time to do it this summer.\n\n@Alefas who works on the IntelliJ-Scala had the following advice, for anyone who wants to take up this cup:\n\n> Any changes are welcome. And we always open to help to anybody, who wants to contribute.\n> \n> You need to implement two things:\n> 1. Runtime, so worksheet should be compiled with additional imports.\n> 2. IDE resolve to see additional imports.\n> \n> For the first one take a look for `org.jetbrains.plugins.scala.worksheet.processor.WorksheetSourceProcessor`\n> It's class, which generates code for the following compilation. So you will need just to add few more imports to the header.\n> \n> For the second one take a look for `org.jetbrains.plugins.scala.lang.psi.api.FileDeclarationsHolder#processDeclarations`\n> I think you should do the following:\n> After ImportHolder processing you should add processing for the synthetic imports, which you can generate with `org.jetbrains.plugins.scala.lang.psi.impl.ScalaPsiElementFactory`\n> \n> Please ask me, if you need any help with your task.\n"},"comment":{"url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/comments/271891452","html_url":"https://github.com/lihaoyi/Ammonite/issues/434#issuecomment-271891452","issue_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/434","id":271891452,"user":{"login":"ysusuk","id":1115934,"avatar_url":"https://avatars.githubusercontent.com/u/1115934?v=3","gravatar_id":"","url":"https://api.github.com/users/ysusuk","html_url":"https://github.com/ysusuk","followers_url":"https://api.github.com/users/ysusuk/followers","following_url":"https://api.github.com/users/ysusuk/following{/other_user}","gists_url":"https://api.github.com/users/ysusuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ysusuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysusuk/subscriptions","organizations_url":"https://api.github.com/users/ysusuk/orgs","repos_url":"https://api.github.com/users/ysusuk/repos","events_url":"https://api.github.com/users/ysusuk/events{/privacy}","received_events_url":"https://api.github.com/users/ysusuk/received_events","type":"User","site_admin":false},"created_at":"2017-01-11T15:03:59Z","updated_at":"2017-01-11T15:03:59Z","body":"@lihaoyi i must agree. i always running them from terminal"}}
{"actor":{"display_login":"ysusuk"}}