Giter Site home page Giter Site logo

Comments (41)

Matvey-Kuk avatar Matvey-Kuk commented on May 28, 2024

I have the same issue on Mac Os X :(

from rustdt.

idmitrievsky avatar idmitrievsky commented on May 28, 2024

@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.

Matvey-Kuk avatar Matvey-Kuk commented on May 28, 2024

I used default rust installation script

from rustdt.

alienjun avatar alienjun commented on May 28, 2024

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 process rustc -vV (never executed)

Caused by:
No such file or directory (os error 2)
^^^ Terminated, exit code: 101 ^^^
************ Build terminated. ************

from rustdt.

alienjun avatar alienjun commented on May 28, 2024

I have the same issue on Mac Os X

from rustdt.

mfreiwald avatar mfreiwald commented on May 28, 2024

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.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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.

idmitrievsky avatar idmitrievsky commented on May 28, 2024

@bruno-medeiros it seems to work just fine in Eclipse started from the command line.

from rustdt.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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.

idmitrievsky avatar idmitrievsky commented on May 28, 2024

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.

Matvey-Kuk avatar Matvey-Kuk commented on May 28, 2024

May be, this issue is related? rust-lang/cargo#987

from rustdt.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

May be, this issue is related? rust-lang/cargo#987

Thanks for finding that out, seems like it is.

from rustdt.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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 in Help / About Eclipse / Installation Details / Installation History, if the built RustDT version has problems)

from rustdt.

Matvey-Kuk avatar Matvey-Kuk commented on May 28, 2024

@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.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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.

idmitrievsky avatar idmitrievsky commented on May 28, 2024

It finds rustc now! Thanks a lot for fixing this 👍

from rustdt.

Matvey-Kuk avatar Matvey-Kuk commented on May 28, 2024

@bruno-medeiros , now awaiting for release =)

from rustdt.

alienjun avatar alienjun commented on May 28, 2024

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.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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.

martin-magakian avatar martin-magakian commented on May 28, 2024

@mfreiwald same problem for me.
Starting eclipse from the command line worked.

from rustdt.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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.

amiracam avatar amiracam commented on May 28, 2024

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.

amiracam avatar amiracam commented on May 28, 2024

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.

amiracam avatar amiracam commented on May 28, 2024

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.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

Error with command: gdb --version
Cannot run program "gdb": Unknown reason

Are you on OS X ?

from rustdt.

amiracam avatar amiracam commented on May 28, 2024

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 reason

Are you on OS X ?


Reply to this email directly or view it on GitHub #31 (comment).

from rustdt.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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.

amiracam avatar amiracam commented on May 28, 2024

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.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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.

amiracam avatar amiracam commented on May 28, 2024

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.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

What does the build console say after you try building that project?

from rustdt.

amiracam avatar amiracam commented on May 28, 2024

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.

amiracam avatar amiracam commented on May 28, 2024

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.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

"/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.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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.

amiracam avatar amiracam commented on May 28, 2024

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.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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.

amiracam avatar amiracam commented on May 28, 2024

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.

amiracam avatar amiracam commented on May 28, 2024

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.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

Please open new issues for new issues. 🔨

from rustdt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.