Automatic configuration for rust projects. #137
Replies: 4 comments 2 replies
-
@appetrosyan curious if you manage to make it work? I'm on the same boat. The problem is I couldn't change those config variables after |
Beta Was this translation helpful? Give feedback.
-
I figured out 20% of the problem. It has mostly to do with the differences between LSP mode, DAP mode and |
Beta Was this translation helpful? Give feedback.
-
Sorry for taking such a long time responding. First off, I am unfamiliar with
This is by design, I don't intend packaging dape with
But debugging an rust compiled binary with those configurations is as simple as:
Currently there are no specialized unit test configurations for any language package with |
Beta Was this translation helpful? Give feedback.
-
Alright. I had higher expectations, but in the future, it is considered polite to ask the participants in the discussion whether it's a good idea to move to a discussion out of an issue. As it stands the issue is not particularly helpful to anyone, because it is closed as completed, when a more accurate description would be that it is not planned. Additionally, on the off chance that this comment might be posted on the issue, I would like to correct you, as I think I've done a poor job of communicating the problem.
This is incorrect for two reasons. 1) because it doesn't work in all cases. 2) because The problem is that for a workspace with around 15-20 binary targets, multiple configurations, and a reasonable expectation based on it's fine if the answer is "I can't do it", or "I'd like to have it, but am not gonna do it myself". But I think you replied to a different issue than the one I posted.
I didn't expect otherwise. I brought it into scope, because it would dovetail into the solution.
I would like to specifically correct you on this one. Writing the configuration is neither trivial, nor acceptable for some repositories. It depends on the path to the executable, which can result in silent errors and therefore any
They require a considerable amount of nonstandard work, which should ideally be automated.
I agree. Specifically, they should not depend on the executable being provided by the user, and instead allow for automatic configuration. This coupled with the code lenses would give you
For free, because the way specific unit tests are run, is by obtaining the test id via LSP and providing the debug configuration to the DAP. This is also going to be helpful for CMake projects as well as other non-standard build systems, because the
I'm afraid that the falseness of this statement is exactly what prompted me to create this issue. It is a good aspiration with a significant shortfall in projects in which a As such I would suggest that you reopen this as an issue, so I can reference it in a PR to |
Beta Was this translation helpful? Give feedback.
-
I came across this package as an alternative to
dap-mode
, and while I feel that it has some potential, it is not usable for me.The main problem is that it is not possible to set up debugging for Rust projects without significant tinkering. For example, suppose I wanted to debug a specific function in a pure Rust project (best case scenario, most of mine are not pure Rust).
I get the prompt that asks for the project
cwd
, and the executable. I get a command-line that contains what I can only describe as DIY debug configuration.Most of it has to be changed, because it doesn't make use of either
projection-multi-dape
, which may be a configuration issue, (as a consequence of poor UX, and insufficiently detailed documentation).The mechanism on offer, to use the Emacs built-in variable system is also quite problematic, because that would either opt everyone on the team to the same variables (and annoying prompts), or require me to store the debug configuration separately and share it with people on the team that use Emacs.
So it would be nice if it were possible to not have to specify the fairly standard elements of a debug configuration for a Rust project every time I want to run
dape
in a new project.Beta Was this translation helpful? Give feedback.
All reactions