SlickEdit Community

Archived Beta Discussions => SlickEdit 202x Beta Discussions => SlickEdit 2021 v26 Beta Discussion => Topic started by: ethanb on October 13, 2021, 11:48:53 pm

Title: Cannot create new Rust project
Post by: ethanb on October 13, 2021, 11:48:53 pm
Just upgraded to 26.0 from 24, but didn't try this in 24.
I'm trying to create a Rust project within a workspace and it appears it doesn't work.
If I go into Project->Open Workspace then I can go browse for a Cargo.toml file and that creates both a Workspace _and_ a Project...but they are tied together.
What I want to do is create a workspace with a couple of Rust projects inside, and I'm ok _not_ using the Cargo.toml file(s).
But, if I create a workspace (Project->New) then try to create a Rust project within it (Project->New, select Project type "Rust", either GNU or MSVC), the Create new workspace is permanently selected and I cannot Add to current workspace. It works as expected if I select GNU C/C++ project type.

Shouldn't I be able to create a Rust projects within a workspace like any other project type?
Title: Re: Cannot create new Rust project
Post by: Clark on October 15, 2021, 02:55:19 am
Currently, SlickEdit doesn't support mapping Cargo projects to separate SlickEdit projects. Instead, SlickEdit creates one project which contains all the rust source files.

If you don't use SlickEdit's cargo support, you can add multiple projects. You lose automated debugging support and automated build support. It's often not that hard to add your own custom build commands. As for debugging, if you're using GDB, you could use Debug>Attach Debugger>Debug Executable (GDB). If you're using Visual Studio for debugging, set your debug command to devenv "%o".