{"action":"created","issue":{"url":"https://api.github.com/repos/scalacenter/bloop/issues/774","repository_url":"https://api.github.com/repos/scalacenter/bloop","labels_url":"https://api.github.com/repos/scalacenter/bloop/issues/774/labels{/name}","comments_url":"https://api.github.com/repos/scalacenter/bloop/issues/774/comments","events_url":"https://api.github.com/repos/scalacenter/bloop/issues/774/events","html_url":"https://github.com/scalacenter/bloop/pull/774","id":394749894,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxNDE3Nzk4","number":774,"title":"Fix `scalaInstanceFromBloop` in boostrapped server","user":{"login":"jvican","id":2462974,"node_id":"MDQ6VXNlcjI0NjI5NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2462974?v=4","gravatar_id":"","url":"https://api.github.com/users/jvican","html_url":"https://github.com/jvican","followers_url":"https://api.github.com/users/jvican/followers","following_url":"https://api.github.com/users/jvican/following{/other_user}","gists_url":"https://api.github.com/users/jvican/gists{/gist_id}","starred_url":"https://api.github.com/users/jvican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvican/subscriptions","organizations_url":"https://api.github.com/users/jvican/orgs","repos_url":"https://api.github.com/users/jvican/repos","events_url":"https://api.github.com/users/jvican/events{/privacy}","received_events_url":"https://api.github.com/users/jvican/received_events","type":"User","site_admin":false},"labels":[{"id":747209079,"node_id":"MDU6TGFiZWw3NDcyMDkwNzk=","url":"https://api.github.com/repos/scalacenter/bloop/labels/bug","name":"bug","color":"ee0701","default":true},{"id":804409643,"node_id":"MDU6TGFiZWw4MDQ0MDk2NDM=","url":"https://api.github.com/repos/scalacenter/bloop/labels/task%20/%20compile","name":"task / compile","color":"92e502","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-29T01:54:51Z","updated_at":"2018-12-29T01:56:58Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/scalacenter/bloop/pulls/774","html_url":"https://github.com/scalacenter/bloop/pull/774","diff_url":"https://github.com/scalacenter/bloop/pull/774.diff","patch_url":"https://github.com/scalacenter/bloop/pull/774.patch"},"body":"When coursier bootstraps bloop, the code source location for the classes\nhas an unknown scheme that trips the creation of the scala instance.\n\nThis error only happens when coursier boostraps, as it inlines all jars\nin a jar file that is inlined in a shell script, and there's no notion\nof independent jars we can use to instantiate a scala instance. To fix\nthis problem, we detect this error and add a fallback mechanism where:\n\n1. We get the scheme specific part and read the content stream.\n2. Copy the content stream to an independent file that we then use to\n   instantiate an scala instance.\n\nWe don't add tests for this improvement because it's a rare error enough\nthat would need a lot of test instrumentation to test reliably. Local\ntesting confirms that compiling java only projects with no scala\ninstance defined works now in systems where bloop is boostrapped."},"comment":{"url":"https://api.github.com/repos/scalacenter/bloop/issues/comments/450454347","html_url":"https://github.com/scalacenter/bloop/pull/774#issuecomment-450454347","issue_url":"https://api.github.com/repos/scalacenter/bloop/issues/774","id":450454347,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDQ1NDM0Nw==","user":{"login":"jvican","id":2462974,"node_id":"MDQ6VXNlcjI0NjI5NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2462974?v=4","gravatar_id":"","url":"https://api.github.com/users/jvican","html_url":"https://github.com/jvican","followers_url":"https://api.github.com/users/jvican/followers","following_url":"https://api.github.com/users/jvican/following{/other_user}","gists_url":"https://api.github.com/users/jvican/gists{/gist_id}","starred_url":"https://api.github.com/users/jvican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvican/subscriptions","organizations_url":"https://api.github.com/users/jvican/orgs","repos_url":"https://api.github.com/users/jvican/repos","events_url":"https://api.github.com/users/jvican/events{/privacy}","received_events_url":"https://api.github.com/users/jvican/received_events","type":"User","site_admin":false},"created_at":"2018-12-29T01:56:58Z","updated_at":"2018-12-29T01:56:58Z","author_association":"MEMBER","body":"Reported by @Arthurm1 in Gitter https://gitter.im/scalacenter/bloop?at=5c20eb9e6649aa1f82c3cf1d, thank you!"}}
{"actor":{"display_login":"jvican"}}