-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing VisualRust Project/Item Templates. (Originally: Installed. And Now?) #283
Comments
same problem. loading shows a possibility of .rsproj but you cant create it |
Can you open a |
I can open the file itself, I can open any file with Visual Studio... However, if I force to open the folder (where the Cargo.toml resides), it opens up, but it doesn't offer any Rust-ish tools/features, such as debugging, syntax highlighting and autocompletion. |
I'm currently trying to use the Rust plugin with VS 2017 and still had a rsproj lying around (I think I tested the Rust plugin with VS 2015, which I do not have installed anymore ... I honestly don't know how I created that file 😆). It looks like this (perhaps you need to generate a unique guid, when you are trying to use it different projects):
With this I could load the project, but the build hangs. Auto-completion worked only for local variables. I'll try to look further into it, when I have the time. |
seems to work |
@denis-golubev How can I open the rsproj file? It isn't recognized by VS |
new text document-> enter it select standord opening program vs |
it opens up, but it doesn't offer any Rust-ish tools/features, such as debugging, syntax highlighting and autocompletion. i can confirm (partly). debugging with rust doesnt work, autocompletion,too. furthermore, git doesnt really work. |
After following the steps described by @CountOmega the solution opens. It looks like VS understands it's a Rust project. I had to enable "Show All Files" to see the project files... Also as described by @CountOmega all other features don't work. |
Cargo.toml can be opened and edited, though. But working with it is really tricky. |
Biuld configurations cant be edited, too. |
It seems that line numbers arent really visible whilst using rust. I had to switch to on manually. |
vs always wants to save a sln in addition to rsproj after code edits if you close vs but you have to delete it otherwise your not able to open rsproj later |
only a few key words are highlighted e.g. mut let pub. String and comments, too. but other rustish word like use blalba arent highlighted. |
so you are forced to debug with rustup using the vs developer command prompt |
When attempting to build master ( f005c24 ) myself, I've noticed that src/VisualRust/VisualRust.projitems appears to incorrectly reference the templates, which may be related. This is my fix:
I can't spot the corresponding errors in AppVeyor, no idea what the build difference is, but this might be related to the templates being missing. |
Ahh - from that snippet you can also see the project and item templates were previously only included in Debug builds, whereas AppVeyor is only doing Release builds. I've created a fix for this in #286 . |
Same here. Installed latest build from AppVeyor on 2017, but no project template appeared. Then I created
But starts debug successfully if you run it again. And autocomplete is not working (perhaps I didn't install something? But I ran |
Using this fix Autocompletion feature works, but building still crashes. |
I installed VisualRust via the latest msi installer from AppVeyor. It has been installed successfully, but if I open Visual Studio, I can't see any Templates for Rust if I open the project wizard.
The text was updated successfully, but these errors were encountered: