-
Notifications
You must be signed in to change notification settings - Fork 166
VS tasks not present on install version 0.6.0 #557
Comments
I'm seeing the same, it's also giving me errors indicating rustup is not installed. Reverting to the previous version fixed the issue (Running on Linux). |
Same here. Upgraded my install from 0.5.4 and was unable to use previously defined build tasks. Windows 10 Build 1809 |
I have the same problem. I cannot use the cargo run/build/etc tasks anymore. They just disappeared. Version: 1.32.3 |
Same here. |
Sorry for the breakage - I tried to test every change during work towards 0.6 but this must’ve slipped through during a refactor. I’m on it and will release 0.6.1 with the fix; hopefully this isn’t too disruptive for your workflow! For now you can work around this and specify your own build/test watch tasks using tasks.json definitions |
Version 0.6.1 has been released with the fix - please let me know if the issue is fixed for you. |
Some options are back: cargo build, check, clean and test. But cargo run is still missing. Any idea why? |
That may be unpopular but I decided to leave out the run task to align more with what VSCode uses tasks for (build/rebuild/clean/test); the launch configuration is separated and handled differently. I'd love to investigate how we can hook up debugging to provide more first-class VSCode launch environment but decided to leave it out for now so that future transition to F5-style run/debug is more obvious. Since the tasks are now back and working, I'll close the issue. Sorry for the inconvenience once more! |
@Xanewok Thanks for the quick turnaround! So, to summarize, your intended replacement for |
Yep, that's the plan! https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb is a good extension and provides good out-of-box experience for Cargo projects so most likely this will either end up as an extension dependency (such that it's also installed alongside the current extension) or we'll strongly suggest to also install it manually if the user decides that they also want to interactively debug their code. |
@Xanewok what do i do if i just simply want to cargo run within vscode in the meantime? |
@Xanewok Oh no. I loved that cargo run functionality. I don't want to setup 100 different things. I installed my Rust plugin in VSCode and simply start using it. Is this you absolute final decision? I think extensions like this are supposed to make life easier for developers, so it's fine to have a built-in cargo run. And if you really wanna go with a task you can still do it that way as well. |
There are never absolute final decisions =) I understand that and it seems fair; I agree that the decision was hasty and it'd be better to just give the user more choices to pick from rather than try to lock them in the explicit VSCode design. I'll add back the However, I won't add back the
Because of that, we'll add the bench command when the benchmarking story will be resolved and it will be usable on stable. |
@Xanewok This fix doesn't work for me. Could it be because I'm using a cargo workspace? I still have no tasks, even with 0.6.1. 0.5.4 works correctly. |
Cargo workspace means there's a Cargo.toml at the root, correct? If so, this should work as expected; if it doesn't, please file an issue with a simple repro project. |
Is there any way to make "Start Debugging" and "Start Without Debugging" work? |
Downloaded fresh install of VS plugin on new machine. Followed instructions as per readme, no tasks present after install to build, run etc once install complete.
Press ctrl+shift+b no build task option.
Press ctrl+shift+p search for rust tasks, no “rust: cargo ...” tasks appear in task lists.
Reverting VS plugin to previous version and all rust cargo tasks appear as expected, ctrl+shift+b build task present on previous version not in latest.
The text was updated successfully, but these errors were encountered: