Giter Site home page Giter Site logo

Import from existing cargo about rustdt HOT 11 CLOSED

rustdt avatar rustdt commented on May 29, 2024
Import from existing cargo

from rustdt.

Comments (11)

oli-obk avatar oli-obk commented on May 29, 2024

you can do that already, just select the location of your cargo file as the project root

from rustdt.

userxfce avatar userxfce commented on May 29, 2024

If this is the case, then I think at least a tip in the dialog window and a pop-up window detecting a pre-existing project and asking for importing would be needed.

Alternatively, provide a separate "Create from existing"-style menu option.

from rustdt.

oli-obk avatar oli-obk commented on May 29, 2024

uhm... I was under the impression that the way it is in RustDT it is how it's done in eclipse in general

from rustdt.

oli-obk avatar oli-obk commented on May 29, 2024

see http://stackoverflow.com/a/9280568/1103681

from rustdt.

userxfce avatar userxfce commented on May 29, 2024

At least for Eclipse CDT (C/C++), there is an explicit "File"->"New"->"Makefile Project with Existing Code"

Why this? Usually, Eclipse generates its own Makefile, that might overwrite the original Makefile (or not use it at all, thus making all the configuration therein useless).

from rustdt.

oli-obk avatar oli-obk commented on May 29, 2024

well... that assumes Cargo.toml is an equivalent to a Makefile. But Cargo.toml is more of a .project file than a Makefile. If the File->New->"With Existing Cargo.toml" does the same as selecting the location, then i vote for not offering both, as users might expect one to behave differently from another

from rustdt.

NobbZ avatar NobbZ commented on May 29, 2024

Eclipse told me that I can't do that because that folder had already some
content.
Am 27.02.2015 12:37 schrieb "Oliver Schneider" [email protected]:

you can do that already, just select the location of your cargo file as
the project root


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

from rustdt.

userxfce avatar userxfce commented on May 29, 2024

@oli-obk If Cargo.toml is the equivalent of a .project, then there is already the option: "File"->"Import"->"Existing Projects into Workspace" that should be used.

from rustdt.

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

@NobbZ What is the exact error message? Did you use the Rust / Rust Cargo Project wizard?

@oli-obk I originally thought about a mechanism that would automatically make any Eclipse project a RustDT project if a Cargo.toml file was added or removed, but there was some technical issues with that so it didn't make it in initial release.

from rustdt.

oli-obk avatar oli-obk commented on May 29, 2024

didn't know that was possible. Although cool, I assume since most people don't know about it, they would still wonder how to import projects.

from rustdt.

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

I've added that note the UserGuide: https://github.com/RustDT/RustDT/blob/latest/documentation/UserGuide.md#project-creation

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.