-
Notifications
You must be signed in to change notification settings - Fork 86
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
Please release a 2017-preview compatible version #167
Comments
Odd, I thought I fixed this. Perhaps, I forgot to commit something, will check when I get to the office where I have the latest version. It does build in 2017 and install into 2017 for me. Problem is, the extension is currently unusable in 2017 because of #156 |
Ok, thanks for the swift response. In the coming three weeks I'm very busy, but if the projects builds/installs in vs2017 and the problem persists when I'm back I'm willing to look into it myself, I'll check back in a while |
Gotcha. Maybe I'll finally get around to fixing it myself. I more or less know how to do it, but it's tedious. |
Weird, but I am building the revision from master with and for VS 2017 no problem. I don't know why it doesn't work for you. |
Maybe I did something wrong, or it might be a vs2017 preview specific problem (i'm using the preview edition). I will re-test. |
I'm using the latest final update. |
I think this is because the project targets VS 2015 SDK, so you need to have that SDK installed. |
Here is what solved it for me (Windows 7, Visual Studio 2017) : in source.extension.vsixmanifest, add a Prerequisite to "Visual Studio core editor". The version range for me that was automatically filled was [15.0.26606.0,16.0) (I also had to change a bunch of references to assemblies etc etc... But when I got the the point of the error message " The VSIX manifest must contain element 'Prerequisites'", that's what solved it for me. After that it was built and installed on VS 2017 no problem) |
@Altrue : can you please change the minimum version of that prerequisite from 15 to 14 or 13 (the lowest that won't cause build issues), and make a pull request? |
I actually don't think that it worked :( It did build and install properly, but once I try to scan anything in VS it never reports any error or does anything. And my projects apparently aren't "C++ projects" somehow. I'm using the GUI version separately for my projects for now. That works well at least :) |
Closing as the original issue had been sorted, and the other one is already open. |
@Altrue @janwilmans |
@VioletGiraffe I've installed successfully with the latest VS2017 (Release, not Preview). It works with small solution with single project ( If I try to use it with large solution with number of projects (all The same error happens for not-so-big solution with projects generated with CMake 3.9. Right-click in Solution Explorer on individual files or projects as well makes no difference and the same error occurs. VS restarts do not help. |
@mloskot |
@VioletGiraffe
I know this is probably of little help, but perhaps it will ring a bell. I'm not able to debug the thing now. I also tried the latest w/ VS2012, see #171 |
Thanks for the info. I'll try to find a test solution that would trigger this behavior. Do you know of a suitable open-source project? |
My favourite among giants is |
That sounds like fun... |
LLVM without clang and cmake-configured without some optional modules should make it less :) |
Would it be possible to reproduce the problem by creating an empty solution and then adding newly created "Win32 console application" projects into it? |
@Dmitry-Me: good idea! |
So it's the same problem that I came across yesterday when debugging #156: reflection doesn't work, quite literally. And I don't understand why. In that case it was the function |
Any chance this bug reported for VS2017 is related VCProject.Configurations property broken for multiple C++ projects. That kind of seems to link to the "no valid configuration selected" error from the screenshot earlier. It is about property of Disclaimer: I have never written a single VS extension. I know nothing. ~John Snow ;) |
@mloskot |
I was able to install 1.3.4 on visual studio preview, but on this project: So I hope thats a reproduction scenario for you? |
I was able to build the head in vs2017, and attached the debugger: Maybe this is helpfull: https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.vcprojectengine.vcprojectengine.aspx at the bottom of the page:
|
@janwilmans |
but the getinterface of vcfile is already returning nullptr, right
…On Sep 20, 2017 07:03, "Violet Giraffe" ***@***.***> wrote:
@janwilmans <https://github.com/janwilmans>
The problem is with reflection. A valid VCFile instance is obtained in
CPPCheckPluginPackage.cs:538. I can get file.Type there no problem. But
after I pass this file to isCppFile as dynamic, I cannot obtain its Type
through reflection. And I don't understand why.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#167 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFqJhJOqTgA7L91dKMIkvPPZYn4XBOI3ks5skJylgaJpZM4PMTRw>
.
|
@janwilmans: right, and I don't quite understand what this code even does (luckily, I'm not its author, he-he). The way I see it,
But it doesn't work either. |
tried to install 1.3.3 -> does not support vs2017 yet.
I do see commits to fix this, but was unable to build the sources in vs2017 :)
After fixing the references and re-targetting to .net platform 4.6.2, I ended up with
C:\Program Files (x86)\Microsoft Visual Studio\Preview\Community\MSBuild\Microsoft\VisualStudio\v15.0\VSSDK\Microsoft.VsSDK.targets(99,5): error VSSDK1078: The VSIX manifest must contain element 'Prerequisites'. For more information, https://go.microsoft.com/fwlink/?linkid=839777
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I realized its a vs2015 project, so someone, pretty please build a new release for us 2017 people :)
The text was updated successfully, but these errors were encountered: