{"action":"created","issue":{"url":"https://api.github.com/repos/dkandalov/live-plugin/issues/52","labels_url":"https://api.github.com/repos/dkandalov/live-plugin/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/dkandalov/live-plugin/issues/52/comments","events_url":"https://api.github.com/repos/dkandalov/live-plugin/issues/52/events","html_url":"https://github.com/dkandalov/live-plugin/issues/52","id":105721380,"number":52,"title":"Cannot inspect Scala files ","user":{"login":"jpsacha","id":1205408,"avatar_url":"https://avatars.githubusercontent.com/u/1205408?v=3","gravatar_id":"","url":"https://api.github.com/users/jpsacha","html_url":"https://github.com/jpsacha","followers_url":"https://api.github.com/users/jpsacha/followers","following_url":"https://api.github.com/users/jpsacha/following{/other_user}","gists_url":"https://api.github.com/users/jpsacha/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsacha/subscriptions","organizations_url":"https://api.github.com/users/jpsacha/orgs","repos_url":"https://api.github.com/users/jpsacha/repos","events_url":"https://api.github.com/users/jpsacha/events{/privacy}","received_events_url":"https://api.github.com/users/jpsacha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"dkandalov","id":28375,"avatar_url":"https://avatars.githubusercontent.com/u/28375?v=3","gravatar_id":"","url":"https://api.github.com/users/dkandalov","html_url":"https://github.com/dkandalov","followers_url":"https://api.github.com/users/dkandalov/followers","following_url":"https://api.github.com/users/dkandalov/following{/other_user}","gists_url":"https://api.github.com/users/dkandalov/gists{/gist_id}","starred_url":"https://api.github.com/users/dkandalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkandalov/subscriptions","organizations_url":"https://api.github.com/users/dkandalov/orgs","repos_url":"https://api.github.com/users/dkandalov/repos","events_url":"https://api.github.com/users/dkandalov/events{/privacy}","received_events_url":"https://api.github.com/users/dkandalov/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-09-10T02:37:55Z","updated_at":"2015-09-16T01:11:49Z","closed_at":"2015-09-16T01:11:49Z","body":"I was attempting to create a simple plugin that will find recursive calls in Scala code. Based on example for Java files:\r\nhttps://gist.github.com/dkandalov/7248184\r\n\r\nIn live-plugin Scala psiItems cannot be cast to `ScalaFile` etc. For instance:\r\n\r\n```\r\npsiItem instanceof org.jetbrains.plugins.scala.lang.psi.api.ScalaFile\r\n```\r\nalways returns `false` even when a psiItem is an instance of `ScalaFile` (possibly because they are loaded by a different class loaders).\r\n\r\nPlease fix this so live-plugin could be used in Scala projects."},"comment":{"url":"https://api.github.com/repos/dkandalov/live-plugin/issues/comments/140591800","html_url":"https://github.com/dkandalov/live-plugin/issues/52#issuecomment-140591800","issue_url":"https://api.github.com/repos/dkandalov/live-plugin/issues/52","id":140591800,"user":{"login":"jpsacha","id":1205408,"avatar_url":"https://avatars.githubusercontent.com/u/1205408?v=3","gravatar_id":"","url":"https://api.github.com/users/jpsacha","html_url":"https://github.com/jpsacha","followers_url":"https://api.github.com/users/jpsacha/followers","following_url":"https://api.github.com/users/jpsacha/following{/other_user}","gists_url":"https://api.github.com/users/jpsacha/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsacha/subscriptions","organizations_url":"https://api.github.com/users/jpsacha/orgs","repos_url":"https://api.github.com/users/jpsacha/repos","events_url":"https://api.github.com/users/jpsacha/events{/privacy}","received_events_url":"https://api.github.com/users/jpsacha/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T01:11:49Z","updated_at":"2015-09-16T01:11:49Z","body":"Adding `depends-on-plugin` made it work.\r\nI created a Scala version of the plugin, with some fixes:\r\nhttps://gist.github.com/jpsacha/9864e30dc884683bee18"}}