{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/987","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/987/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/987/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/987/events","html_url":"https://github.com/rust-lang/cargo/issues/987","id":50305014,"number":987,"title":"Can't build newly initialized project caused by \"no such file or directory\"","user":{"login":"singachea","id":813988,"avatar_url":"https://avatars.githubusercontent.com/u/813988?v=3","gravatar_id":"","url":"https://api.github.com/users/singachea","html_url":"https://github.com/singachea","followers_url":"https://api.github.com/users/singachea/followers","following_url":"https://api.github.com/users/singachea/following{/other_user}","gists_url":"https://api.github.com/users/singachea/gists{/gist_id}","starred_url":"https://api.github.com/users/singachea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singachea/subscriptions","organizations_url":"https://api.github.com/users/singachea/orgs","repos_url":"https://api.github.com/users/singachea/repos","events_url":"https://api.github.com/users/singachea/events{/privacy}","received_events_url":"https://api.github.com/users/singachea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2014-11-27T15:56:36Z","updated_at":"2015-05-27T11:00:56Z","closed_at":null,"body":"Hi\r\n\r\nI just installed cargo and tried to get my first hello world project to run, but I get the following error:\r\n\r\n```bash\r\n~/lab/rust  ᐅ cargo new myapp --bin && cd myapp\r\n~/lab/rust/myapp (master ✘)✭ ᐅ cargo build --verbose\r\n   Compiling myapp v0.0.1 (file:///Users/ream/lab/rust/myapp)\r\n     Running `rustc /Users/ream/lab/rust/myapp/src/main.rs --crate-name myapp --crate-type bin -g --out-dir /Users/ream/lab/rust/myapp/target --dep-info /Users/ream/lab/rust/myapp/target/.fingerprint/myapp-8a3779e77173e633/dep-bin-myapp -L /Users/ream/lab/rust/myapp/target -L /Users/ream/lab/rust/myapp/target/deps`\r\nCould not compile `myapp`.\r\n\r\nCaused by:\r\n  Could not execute process `rustc /Users/ream/lab/rust/myapp/src/main.rs --crate-name myapp --crate-type bin -g --out-dir /Users/ream/lab/rust/myapp/target --dep-info /Users/ream/lab/rust/myapp/target/.fingerprint/myapp-8a3779e77173e633/dep-bin-myapp -L /Users/ream/lab/rust/myapp/target -L /Users/ream/lab/rust/myapp/target/deps` (status=never executed)\r\n\r\nCaused by:\r\n  no such file or directory\r\n~/lab/rust/myapp (master ✘)✭ ᐅ rustc /Users/ream/lab/rust/myapp/src/main.rs --crate-name myapp --crate-type bin -g --out-dir /Users/ream/lab/rust/myapp/target --dep-info /Users/ream/lab/rust/myapp/target/.fingerprint/myapp-8a3779e77173e633/dep-bin-myapp -L /Users/ream/lab/rust/myapp/target -L /Users/ream/lab/rust/myapp/target/deps\r\n~/lab/rust/myapp (master ✘)✭ ᐅ ./target/myapp\r\nHello, world!\r\n```\r\n\r\nAs you can see, I can't build a simple hello world, but if I just run the command directly it can compile normally. Any idea why? "},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/105870003","html_url":"https://github.com/rust-lang/cargo/issues/987#issuecomment-105870003","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/987","id":105870003,"user":{"login":"bruno-medeiros","id":4324232,"avatar_url":"https://avatars.githubusercontent.com/u/4324232?v=3","gravatar_id":"","url":"https://api.github.com/users/bruno-medeiros","html_url":"https://github.com/bruno-medeiros","followers_url":"https://api.github.com/users/bruno-medeiros/followers","following_url":"https://api.github.com/users/bruno-medeiros/following{/other_user}","gists_url":"https://api.github.com/users/bruno-medeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno-medeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno-medeiros/subscriptions","organizations_url":"https://api.github.com/users/bruno-medeiros/orgs","repos_url":"https://api.github.com/users/bruno-medeiros/repos","events_url":"https://api.github.com/users/bruno-medeiros/events{/privacy}","received_events_url":"https://api.github.com/users/bruno-medeiros/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T11:00:56Z","updated_at":"2015-05-27T11:00:56Z","body":"> @bruno-medeiros fascinating! I wonder why running rustc manually works but executing it through cargo doesn't? If PATH isn't set up correctly for GUI apps, I would expect both to fail...\r\n\r\nDunno, again, I'm not a OSX guy, so I'm just relaying what others found. Though I reckon in RustDT's case it could be because `cargo` is invoked with an absolute path, so that would always work regardless of how `PATH` is setup."}}