{"action":"created","issue":{"url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/787","repository_url":"https://api.github.com/repos/intellij-rust/intellij-rust","labels_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/787/labels{/name}","comments_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/787/comments","events_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/787/events","html_url":"https://github.com/intellij-rust/intellij-rust/issues/787","id":191110080,"number":787,"title":"no autocomplete in the bin subfolder and other pecularities","user":{"login":"philippkeller","id":11523,"avatar_url":"https://avatars.githubusercontent.com/u/11523?v=3","gravatar_id":"","url":"https://api.github.com/users/philippkeller","html_url":"https://github.com/philippkeller","followers_url":"https://api.github.com/users/philippkeller/followers","following_url":"https://api.github.com/users/philippkeller/following{/other_user}","gists_url":"https://api.github.com/users/philippkeller/gists{/gist_id}","starred_url":"https://api.github.com/users/philippkeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippkeller/subscriptions","organizations_url":"https://api.github.com/users/philippkeller/orgs","repos_url":"https://api.github.com/users/philippkeller/repos","events_url":"https://api.github.com/users/philippkeller/events{/privacy}","received_events_url":"https://api.github.com/users/philippkeller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-22T20:02:11Z","updated_at":"2016-11-22T21:34:59Z","closed_at":null,"body":"I must say that I have quite some problems getting the intellj plugin working. I followed all the instuctions in the [quick start](https://intellij-rust.github.io/docs/quick-start.html), I reinstalled intellij (with removing all the preferences as well) but am still without luck. Before giving up I thought I'd put some of my problems up here:\r\n\r\nThe most prominent problem is that autocomplete does not work when done on a source file under the `bin` directory as seen in this screenshot:  <img width=\"668\" alt=\"screen-shot-2016-11-22-20-32-26\" src=\"https://cloud.githubusercontent.com/assets/11523/20542073/4b7fd282-b100-11e6-9361-f7f8ea9e57e5.png\">\r\n\r\nAlso, building does not work with cargo build even when configured like in this screenshot: \r\n<img width=\"1073\" alt=\"screen-shot-2016-11-22-20-42-37\" src=\"https://cloud.githubusercontent.com/assets/11523/20542122/8ec478ea-b100-11e6-955a-4612a6acd649.png\">. Maybe it does build, but I don't see the build errors (`cargo build` on commandline shows the errors).\r\n\r\nI know that this issue is fuzzy but I don't know how to explain this better. If I can supply any more info how to reproduce this I'd be happy to do so.\r\n\r\nAlso: after clicking \"No standard libraries found...\" dialogue the task \"rustup component add rust-src\" was open for *very* long (>2 minutes) until it went away and I cannot say if it succeeded or not"},"comment":{"url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/comments/262372606","html_url":"https://github.com/intellij-rust/intellij-rust/issues/787#issuecomment-262372606","issue_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/787","id":262372606,"user":{"login":"matklad","id":1711539,"avatar_url":"https://avatars.githubusercontent.com/u/1711539?v=3","gravatar_id":"","url":"https://api.github.com/users/matklad","html_url":"https://github.com/matklad","followers_url":"https://api.github.com/users/matklad/followers","following_url":"https://api.github.com/users/matklad/following{/other_user}","gists_url":"https://api.github.com/users/matklad/gists{/gist_id}","starred_url":"https://api.github.com/users/matklad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matklad/subscriptions","organizations_url":"https://api.github.com/users/matklad/orgs","repos_url":"https://api.github.com/users/matklad/repos","events_url":"https://api.github.com/users/matklad/events{/privacy}","received_events_url":"https://api.github.com/users/matklad/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T21:34:59Z","updated_at":"2016-11-22T21:34:59Z","body":"Aha, seems like the problem is that `Cargo.toml` is not in the root folder of your project, that's why IntelliJ does not understand the project structure.\r\n\r\nTo make this layout work, you should import `hans/src` and not `hans`. But it looks like that you actually want to move `Cargo.toml` one level up, such that it is alongside the `src`, and not inside of it. \r\n\r\nThe usual layout for Rust projects looks like this:\r\n\r\n```\r\nfoobinator/\r\n  Cargo.toml\r\n  src/\r\n    lib.rs\r\n    bin/\r\n      foobinator_cli.rs              \r\n```\r\n\r\nIf you have only single binary target, you can even use this:\r\n\r\n```\r\nfoobinator/\r\n  Cargo.toml\r\n  src/\r\n    lib.rs\r\n    main.rs\r\n```\r\n\r\n\r\n>How can I find this?\r\n\r\nuse <kbd>Ctrl+Shift+A</kbd> (find action) and then type \"refresh cargo project\".\r\n\r\nThanks for the report, I think I know how to make docs a little bit clearer now!\r\n"}}
{"actor":{"display_login":"matklad"}}