PistonDevelopers / VisualRust

Visual Studio extension for Rust
MIT License
703 stars 72 forks source link

Build is always 'up-to-date' (MSVC) #214

Closed jcdickinson closed 7 years ago

jcdickinson commented 8 years ago

Environment

The build is not detecting changes to files.

Remarks

An older version of Visual Rust (and Rust) was installed on the environment, but uninstalled prior to installing these latest versions.

MSBuild log

fluffels commented 8 years ago

This affects me too.

DanTup commented 8 years ago

Seeing same here. I installed 1.9 from the rust site, then installed the Visual Rust extension. I don't believe I've ever had any older versions installed.

The first time it did ask me "Do you want to rebuild before running?". I thought that was a rather stupid question and ticked "Don't show me again" and then the "Yes" button. Maybe it interpreted that as "Yes this time, but never ask me again and assume no in future". I can't find any settings to change this or reset it so I get the dialog again.

rpjohnst commented 8 years ago

@DanTup The option you're looking for is under Tools > Options > Projects and Solutions > Build and Run, labeled "On Run, when projects are out of date:". Checking "Don't show me again" and clicking "Yes" sets that option to "Always build", and setting it to "Prompt to build" gives you back the prompt.

The behavior here sounds like it's set to "Never build," but the MSBuild log here makes it seem like it is trying to build but the actual build process is getting skipped somehow.

DanTup commented 8 years ago

@rpjohnst that was the first place I checked and it's say to Prompt, but it does not :( I figured the dialog I saw was maybe Visual Rust specific and not the standard VS one (I'd never seen look like it did here before).

fluffels commented 8 years ago

@rpjohnst Mine is set to "Always Build"

josephg commented 8 years ago

I'm running into this problem too, on a fresh install of everything 👀

TurkeyMan commented 8 years ago

Fresh install. This is broken. This is surely the very first feature that must work? There is nothing more critical than this...

Boddlnagg commented 8 years ago

This is going to be fixed with #234. You can try to build that branch yourself ...

Boddlnagg commented 8 years ago

This should no longer appear with #234 ... can you confirm that?

TurkeyMan commented 8 years ago

Is there CI output? Nightly builds or something?

Boddlnagg commented 8 years ago

Yes. The debug build (with the tests) is currently not working (see #238), but the Release configuration builds and produces an MSI as an artifact: https://ci.appveyor.com/project/vosen/visualrust

quixoticaxis commented 8 years ago

Installed .msi from your link. Now the build is no longer up-to-date. So it seems it is fixed. Can't check this in full right now, because of the older cargo.exe on my machine which I can't currently re-install.

jcdickinson commented 7 years ago

Checked with MSVC build (1.13.0) and this works perfectly.