Comments (41)
I have the same issue on Mac Os X :(
from rustdt.
@Matvey-Kuk I am running OS X too. Also I have multirust installed, but I don't think it has anything to do with this, because all executables are in place.
from rustdt.
I used default rust installation script
from rustdt.
Failed to create a child process.
Cannot run program "/Users/xxx/workspace/Rust/HelloWorld/src/main.rs" (in directory "/Users/xxx/workspace/Rust/HelloWorld"): error=13, Permission denied
************ Building Rust workspace ************
------- Building Rust project: HelloWorld -------
Running: /usr/local/Cellar/rust/1.0.0/bin/cargo build
Could not execute processrustc -vV
(never executed)
Caused by:
No such file or directory (os error 2)
^^^ Terminated, exit code: 101 ^^^
************ Build terminated. ************
from rustdt.
I have the same issue on Mac Os X
from rustdt.
Same here
Mac OS X 10.10.3
Eclipse Luna 4.4.1
rustc 1.2.0-nightly (0cc99f9cc 2015-05-17) (built 2015-05-17)
cargo 0.2.0-nightly (ac61996 2015-05-17) (built 2015-05-17)
Running command in Terminal does compile successfully
from rustdt.
Seems like an issue specific to Mac OS X. Unfortunately I don't have any Mas OS X box available ATM to try it. However with Goclipse there was some users which had similar problems (with go build
not being able to invoke the compiler), and it seems it was related to Mac OS X having different environments (like environment vars) for processes started from the command line, and processes started from the app launcher.
Could you guys try starting Eclipse from the command line, and see how that works out?
from rustdt.
@bruno-medeiros it seems to work just fine in Eclipse started from the command line.
from rustdt.
Then it could be issue I was thinking of. It might be that Eclipse started from the GUI doesn't have the PATH env var setup with the Rust bin directory. See this comment for more detail about this OSX issue: GoClipse/goclipse#91 (comment)
I can make a workaround in RustDT (just as in Goclipse) to automatically add the Rust installation dir to PATH when starting Cargo, but better yet would be if Cargo was smart enough to try to find rustc in the same directory as the cargo executable.
from rustdt.
Great to know it's fixable.
How fast does cargo team fix such problems? Maybe best solution is implementing a workaround for now and creating an issue in cargo project.
from rustdt.
May be, this issue is related? rust-lang/cargo#987
from rustdt.
May be, this issue is related? rust-lang/cargo#987
Thanks for finding that out, seems like it is.
from rustdt.
I think I've fixed this with a workaround, but can't verify it myself since I don't have OS X around. Can someone with this problem try it out? You'd need to download and build RustDT yourself, but that should be fairly easy:
- Download Maven (http://maven.apache.org/)
git clone https://github.com/RustDT/RustDT.git
cd RustDT
,mvn package
- You should now have an update site in
bin-maven/features.repository/repository
Just update your RustDT installation using that local dir as an update site and try it out. (don't worry, you can revert your RustDT installation in Eclipse inHelp / About Eclipse / Installation Details / Installation History
, if the built RustDT version has problems)
from rustdt.
@bruno-medeiros thank you! I've done all as you said, but now everything is broken totally =) There is "No editor descriptor for id com.github.rustdt.ide.ui.editor.RustEditor" error in editor window... I think, I've done smth wrong. May be somebody more experienced in java instruments should try?... @ivandmitrievsky ? @mfreiwald ? @alienjun ?
from rustdt.
I think i know why that is. Are you running Eclipse with Java 7? The new RustDT version requires Java 8. Stupidly there is no error message if that is not the case,the plugin just fails to load...
from rustdt.
It finds rustc
now! Thanks a lot for fixing this 👍
from rustdt.
@bruno-medeiros , now awaiting for release =)
from rustdt.
The new RustDT version requires Java 8? my java -version like this:
alienjunx$ java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
from rustdt.
The new RustDT version requires Java 8? my java -version like this:
alienjunx$ java -version
java version "1.8.0_31"
Then it should work. Did you still have problems starting RustDT?
from rustdt.
@mfreiwald same problem for me.
Starting eclipse from the command line worked.
from rustdt.
This fix is out now. For those that didn't try it from a source build, try it with the release, and let me know if you have any issues.
from rustdt.
I seem to have a related issue. New to Rust and overall pretty new to Eclipse , I mostly use Idea. Anyhow in my case I encounter the issue when trying to "Run as" the project . Just trying to test the hello world app.
see error output:
Failed to create a child process.
Cannot run program "/Users/charles/Documents/rust_workspace/RustTest/src/main.rs" (in directory "/Users/charles/Documents/rust_workspace/RustTest"): error=13, Permission denied
I'm on the latest RustDT and i have the requisite Java version i.e. > 1.8.x
thanks for the feedback
from rustdt.
hi, I opened up the permissions on main.rs and I got past this error but now encounter a strange syntax error , strange since that file was generated by RustDT itself . here's the error:
/Users/charles/Documents/rust_workspace/RustTest/src/main.rs: line 1: syntax error near unexpected token (' 'Users/charles/Documents/rust_workspace/RustTest/src/main.rs: line 1:
fn main() {
any clues ?
from rustdt.
I also have encountered a problem with gdb , it does seem that RustDT is not seeing it i.e.
Error with command: gdb --version
Cannot run program "gdb": Unknown reason
I have confirmed that otherwise I can see gdb
from rustdt.
Failed to create a child process.
Cannot run program "/Users/charles/Documents/rust_workspace/RustTest/src/main.rs" (in directory "/Users/charles/Documents/rust_workspace/RustTest"): error=13, Permission denied
The RustDT launch configuration should be configured with the executable generated by Cargo (something like target/debug/RustTest.exe
), not the .rs file. The error above is because the launch tried to start the .rs file as a process directly.
from rustdt.
Error with command: gdb --version
Cannot run program "gdb": Unknown reason
Are you on OS X ?
from rustdt.
yes sir,
Charles Monteiro
On Aug 20, 2015, at 8:41 AM, Bruno Medeiros [email protected] wrote:
Error with command: gdb --version
Cannot run program "gdb": Unknown reasonAre you on OS X ?
—
Reply to this email directly or view it on GitHub #31 (comment).
from rustdt.
The GDB that is included with OS X doesn't work properly. You'll need to install the latest GDB from Homebrew (the MacPorts one doesn't work either, I suspect). See this for details: http://ntraft.com/installing-gdb-on-os-x-mavericks/
from rustdt.
but I did, i.e. found instructions on how to do that and Mac OS X does provide me with confirmation of a successful install i.e.
Charless-Mini:~ charles$ gdb --version
GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin14.3.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Charless-Mini:~ charles$
Charles Monteiro
On Aug 20, 2015, at 10:44 AM, Bruno Medeiros [email protected] wrote:
The GDB that is included with OS X doesn't work properly. You'll need to install the latest GDB from Homebrew (the MacPorts one doesn't work either, I suspect). See this for details: http://ntraft.com/installing-gdb-on-os-x-mavericks/ http://ntraft.com/installing-gdb-on-os-x-mavericks/
—
Reply to this email directly or view it on GitHub #31 (comment).
from rustdt.
but I did, i.e. found instructions on how to do that and Mac OS X does provide me with confirmation of a successful install i.e.
And are you sure that's the one that RustDT is using for debugging? Did you set the path to that GDB in the "GDB debugger" field of the launch configuration: https://raw.githubusercontent.com/RustDT/RustDT/latest/documentation/screenshots/UserGuide_DebuggerLaunchConfiguration.png ?
from rustdt.
I am not sure , I left that path referred to by the provided pic alone i.e. its the default. GDB was not present in my system prior to the installation that I just did in order to support RustDT , so I believe its the only one and thus should be located here:
Charless-Mini:~ charles$ which gdb
/usr/local/bin/gdb
Charless-Mini:~ charles$
btw, I’m also having issues running the app , perhaps related ? something about Mac OS X support ?
See here:
/Users/charles/Documents/rust_workspace/RustTest/src/main.rs: line 1: syntax error near unexpected token (' 'Users/charles/Documents/rust_workspace/RustTest/src/main.rs: line 1:
fn main() {
the code is simply this:
fn main() {
println!("Hello, world!");
}
thanks, I appreciate your help getting me up and running , I’m too used to using IDEs in my professional help, that its hard to contemplate taking on learning Rust without IDE and debugging support.
Charles Monteiro
On Aug 20, 2015, at 10:54 AM, Bruno Medeiros [email protected] wrote:
but I did, i.e. found instructions on how to do that and Mac OS X does provide me with confirmation of a successful install i.e.
And are you sure that's the one that RustDT is using for debugging? Did you set the path to that GDB in the "GDB debugger" field of the launch configuration:https://raw.githubusercontent.com/RustDT/RustDT/latest/documentation/screenshots/UserGuide_DebuggerLaunchConfiguration.png https://raw.githubusercontent.com/RustDT/RustDT/latest/documentation/screenshots/UserGuide_DebuggerLaunchConfiguration.png ?
—
Reply to this email directly or view it on GitHub #31 (comment).
from rustdt.
What does the build console say after you try building that project?
from rustdt.
maybe some progress, the default points to an alias, instead I set it up to point to the gdb exec directly , then upon engaging the debugger I got this different output:
Error in final launch sequence
Failed to execute MI command:
-file-exec-and-symbols /Users/charles/Documents/rust_workspace/RustTest/src/main.rs
Error message from debugger back end:
"/Users/charles/Documents/rust_workspace/RustTest/src/main.rs": not in executable format: File format not recognized
"/Users/charles/Documents/rust_workspace/RustTest/src/main.rs": not in executable format: File format not recognized
Charles Monteiro
On Aug 20, 2015, at 11:08 AM, Charles Monteiro [email protected] wrote:
I am not sure , I left that path referred to by the provided pic alone i.e. its the default. GDB was not present in my system prior to the installation that I just did in order to support RustDT , so I believe its the only one and thus should be located here:
Charless-Mini:~ charles$ which gdb
/usr/local/bin/gdb
Charless-Mini:~ charles$btw, I’m also having issues running the app , perhaps related ? something about Mac OS X support ?
See here:
/Users/charles/Documents/rust_workspace/RustTest/src/main.rs http://main.rs/: line 1: syntax error near unexpected token
(' 'Users/charles/Documents/rust_workspace/RustTest/src/main.rs <http://main.rs/>: line 1:
fn main() {the code is simply this:
fn main() {
println!("Hello, world!");
}
thanks, I appreciate your help getting me up and running , I’m too used to using IDEs in my professional help, that its hard to contemplate taking on learning Rust without IDE and debugging support.
Charles Monteiro
On Aug 20, 2015, at 10:54 AM, Bruno Medeiros <[email protected] mailto:[email protected]> wrote:
but I did, i.e. found instructions on how to do that and Mac OS X does provide me with confirmation of a successful install i.e.
And are you sure that's the one that RustDT is using for debugging? Did you set the path to that GDB in the "GDB debugger" field of the launch configuration:https://raw.githubusercontent.com/RustDT/RustDT/latest/documentation/screenshots/UserGuide_DebuggerLaunchConfiguration.png https://raw.githubusercontent.com/RustDT/RustDT/latest/documentation/screenshots/UserGuide_DebuggerLaunchConfiguration.png ?
—
Reply to this email directly or view it on GitHub #31 (comment).
from rustdt.
a “build all” generates this:
==================== Starting Rust build ====================
************ Building Rust project: RustTest ************
Running: /usr/local/bin/cargo build
^^^ Terminated, exit code: 0 ^^^
************ Build terminated. ************
Charles Monteiro
On Aug 20, 2015, at 11:26 AM, Bruno Medeiros [email protected] wrote:
What does the build console say after you try building that project?
—
Reply to this email directly or view it on GitHub #31 (comment).
from rustdt.
"/Users/charles/Documents/rust_workspace/RustTest/src/main.rs": not in executable format: File format not recognized
Seems as if you are trying to run the .rs file as if it is an executable. The launch configuration must be configured with an executable file (the "Program Path" field) . Try starting the launch in Run mode (not Debug) and see if that works first of all.
from rustdt.
a “build all” generates this:
==================== Starting Rust build ====================
************ Building Rust project: RustTest ************Running: /usr/local/bin/cargo build
^^^ Terminated, exit code: 0 ^^^
************ Build terminated. ************
That's weird. Then no error should appear in the Rust source editor. Can you send me a screenshot of the error in the editor?
from rustdt.
sure:
Running:
Debugging:
thanks
Charles Monteiro
On Aug 20, 2015, at 2:08 PM, Bruno Medeiros [email protected] wrote:
a “build all” generates this:
==================== Starting Rust build ====================
************ Building Rust project: RustTest ************Running: /usr/local/bin/cargo build
^^^ Terminated, exit code: 0 ^^^
************ Build terminated. ************That's weird. Then no error should appear in the Rust source editor. Can you send me a screenshot of the error in the editor?
—
Reply to this email directly or view it on GitHub #31 (comment).
from rustdt.
There's no image attached to your post. If you sent it from email, it might have not worked because of that.
Also, could you open a new issue please, post the images/info there.
from rustdt.
Yes copied straight to mail , usually works , ill start new issue, thanks
Sent from my iPod
On Aug 24, 2015, at 10:55 AM, Bruno Medeiros [email protected] wrote:
There's no image attached to your post. If you sent it from email, it might have not worked because of that.
Also, could you open a new issue please, post the images/info there.—
Reply to this email directly or view it on GitHub.
from rustdt.
Bruno:
I figured out how to get your latest :) , and my “run” issue is gone. however I have an issue when trying to debug where I can’t see the source i.e. I get “View Dissassembly” so, when I go to debug configuration it seems that the source tab is specifying defaults.
thanks
Charles Monteiro
On Aug 24, 2015, at 1:01 PM, Gmail [email protected] wrote:
Yes copied straight to mail , usually works , ill start new issue, thanks
Sent from my iPod
On Aug 24, 2015, at 10:55 AM, Bruno Medeiros <[email protected] mailto:[email protected]> wrote:
There's no image attached to your post. If you sent it from email, it might have not worked because of that.
Also, could you open a new issue please, post the images/info there.—
Reply to this email directly or view it on GitHub #31 (comment).
from rustdt.
Please open new issues for new issues. 🔨
from rustdt.
Related Issues (20)
- Preferences appear to be per workspace, not global HOT 2
- Installation conflicts with Eclipse 4.6.2 and RustDT 0.8 HOT 1
- CargoManifest_Test test failure, in Fedora
- cargo check not working HOT 4
- Project future HOT 2
- Attach gdb to pid HOT 1
- [GDB] Breakpoints don't work - "warning: can't find symbol" HOT 8
- "error: no such subcommand: `check`" after every file save HOT 2
- Project Wizard: allow customizing `cargo init` command with no VCS creation, or other options. HOT 1
- GNU-ARM-ECLIPSE integration/support HOT 5
- No brackets completion of '(' and '[' HOT 1
- Support xargo cross compilation HOT 5
- Add "Download..." button to get proper Rust sources
- The `No build targets available for project.` error for all the projects in the workspace. HOT 5
- Unable to read repository at https://rustdt.github.io/releases/content.xml. HOT 4
- resolved errors not cleared in editor window HOT 4
- Master branch tests failed HOT 3
- Cannot find generated executables HOT 4
- Support for non MinGW Windows binaries debugging
- RustDT does not work with Java 9 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rustdt.