Comments (26)
You can try downloading it here https://ankhsvn.open.collab.net/daily/2.7.x
Thank you for reply, but i need .vsix extension to install in visual studio... I can't install with .msi file... Can you help me?
We're trying to figure out how to downgrade as well, that msi file didn't work for us either. We just have multiple people running the extension and all the one's that haven't updated work fine.
from ankhsvn.
Does not crash on loading, but as before when I got it to compile successfully, hitting 'update' from pending changes gives this error:
System.InvalidOperationException: Due to high risk of deadlock you cannot call GetService from a background thread in an AsyncPackage derived class. You should instead call GetServiceAsync (without calling Result or Wait on the resultant Task object) or switch to the UI thread with the JoinableTaskFactory.SwitchToMainThreadAsync method before calling GetService.
at Microsoft.VisualStudio.Shell.AsyncPackage.GetService(Type serviceType)
at Microsoft.VisualStudio.Shell.Package.System.IServiceProvider.GetService(Type serviceType)
at Ankh.AnkhRuntime.GetService[T](Type type)
at Ankh.AnkhRuntime.GetService[T]()
at Ankh.AnkhService.GetService[T]()
at Ankh.Commands.SolutionUpdateCommand.PerformUpdate(CommandEventArgs e, ProgressWorkerArgs wa, SvnRevision rev, Boolean allowUnversionedObstructions, Boolean updateExternals, Boolean setDepthInfinity, IEnumerable`1 groups, SvnUpdateResult& updateResult)
at Ankh.Commands.SolutionUpdateCommand.<>c__DisplayClass6_0.b__0(Object sender, ProgressWorkerArgs a)
at Ankh.ProgressRunnerService.ProgressRunner.Run(Object arg)
from ankhsvn.
I successfully built and installed an older version of the package, and it is working.
To prevent it from automatically updating, you need to make sure to uncheck this option BEFORE installing the old version, or else it will automatically update it the first time you launch VS after installing it. (Uncheck the 'Automatically Update Extensions' checkbox)
Here's the file. Hope it works for everyone until the latest version gets compatibility with VS 2017
from ankhsvn.
Hello,
good news. The package .51 available in the action tab fix the issue here.
Thank you
from ankhsvn.
Same issue here. I have VS 2005, VS 2010, and VS 2017 installed (no VS 2019). The crash only appears to happen in VS 2017. As @AndreaTalentum states, the supplied link to the .msi does not install the extension to VS 2017.
from ankhsvn.
A .51 package is posted with fixes for the Update command and the new initialization problem explicitly reported against the new version (but which I'm unable to reproduce).
A few newer packages are available via the Actions page here with cases that might help in less common commands.
from ankhsvn.
It seems to be working now. Thanks.
from ankhsvn.
We're also getting this issue on the latest version of AnkhSVN, but older versions work fine.
from ankhsvn.
Same error for me... How can i install previous version? thank you
from ankhsvn.
You can try downloading it here https://ankhsvn.open.collab.net/daily/2.7.x
from ankhsvn.
Do you have VS 2019 installed as well?
Trying to track down the root cause. We just switched to a new buildsystem and are trying to get things up and running again in this Open source project.
from ankhsvn.
We're using Visual Studio Professional 2017 - Version 15.9.36
from ankhsvn.
You can try downloading it here https://ankhsvn.open.collab.net/daily/2.7.x
Thank you for reply, but i need .vsix extension to install in visual studio... I can't install with .msi file... Can you help me?
from ankhsvn.
Here's the error we're getting (in English)
It looks like a specific file / dependency is missing.
CreateInstance failed for package [AnkhSVN - Subversion Support for Visual Studio]Source: 'mscorlib' Description: Could not load file or assembly 'Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type) at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo) at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
from ankhsvn.
Visual Studio 2017 and 2019 need a .vsix file. The .msi files work only for older versions. We just released a first official version for 2017 and 2019, but it appears the 2017 support is broken.
Help debugging would be welcome. (Just open the .sln from GitHub with either git or via GitHub's subversion support on https://github.com/AmpScm/AnkhSVN/trunk )
I'm trying to setup a VM to diagnose this further myself, but may take a bit.
from ankhsvn.
Tried opening the solution in VS2017, it won't build for me. I've never worked on Extensions for VS so I have no idea what I'm doing. Lots of *** is not compatible with net46 errors.
from ankhsvn.
@rhuijben I tried the latest 2.9.48 build from here https://github.com/AmpScm/AnkhSVN/actions/runs/850508145, but it still did not work. Here's the error:
CreateInstance failed for package [AnkhSVN - Subversion Support for Visual Studio]Source: 'mscorlib' Description: Could not load file or assembly 'Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type) at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo) at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
from ankhsvn.
@rhuijben
Changing this line from v4.6 to v4.7.2 fixed the compile errors, and the extension no longer crashes upon launching VS, but hitting 'update' from the pending changes window makes an error window in VS pop up, which says this:
System.InvalidOperationException: Due to high risk of deadlock you cannot call GetService from a background thread in an AsyncPackage derived class. You should instead call GetServiceAsync (without calling Result or Wait on the resultant Task object) or switch to the UI thread with the JoinableTaskFactory.SwitchToMainThreadAsync method before calling GetService.
at Microsoft.VisualStudio.Shell.AsyncPackage.GetService(Type serviceType)
at Microsoft.VisualStudio.Shell.Package.System.IServiceProvider.GetService(Type serviceType)
at Ankh.AnkhRuntime.GetService[T](Type type)
at Ankh.AnkhRuntime.GetService[T]()
at Ankh.AnkhService.GetService[T]()
at Ankh.Commands.SolutionUpdateCommand.PerformUpdate(CommandEventArgs e, ProgressWorkerArgs wa, SvnRevision rev, Boolean allowUnversionedObstructions, Boolean updateExternals, Boolean setDepthInfinity, IEnumerable`1 groups, SvnUpdateResult& updateResult)
at Ankh.Commands.SolutionUpdateCommand.<>c__DisplayClass6_1.b__0(Object sender, ProgressWorkerArgs a)
at Ankh.ProgressRunnerService.ProgressRunner.Run(Object arg)
from ankhsvn.
Any chance of downgrading? this is a huge pain?
from ankhsvn.
I have an update ready. As I think it resolves the issue while having minimal impact for VS2019 users I'm going to publish it now.
Can you please reply with your results?
Thanks for your help!
from ankhsvn.
The updated version is AnkhSVN 2.9.50 and should be live on the update site now.
from ankhsvn.
Any chance of downgrading? this is a huge pain?
The VS site doesn't support a proper downgrade and the reason we didn't deliver VS2019 support earlier was that our build system didn't support providing stable releases for these versions.
All the scripting is in this public GitHub repository now... so I'm verry sorry that this happened, but once we get this fixed all the development can be done publicly right here... and everybody can help (or just pick old versions from the actions tab if they need them)
from ankhsvn.
I have an update ready. As I think it resolves the issue while having minimal impact for VS2019 users I'm going to publish it now.
Can you please reply with your results?
Thanks for your help!
Still having issue with the update. Receive an error upon opening VS (not opening a solution).
VS 2017 (15.9.21)
What is probably the important bit of the ActivityLog.xml generated by the error:
<entry>
<record>656</record>
<time>2021/05/17 20:11:08.707</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [AnkhSVN - Subversion Support for Visual Studio]Source: 'mscorlib' Description: Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Due to high risk of deadlock you cannot call GetService from a background thread in an AsyncPackage derived class. You should instead call GetServiceAsync (without calling Result or Wait on the resultant Task object) or switch to the UI thread with the JoinableTaskFactory.SwitchToMainThreadAsync method before calling GetService.
 at Microsoft.VisualStudio.Shell.AsyncPackage.GetService(Type serviceType)
 at Microsoft.VisualStudio.Shell.Package.System.IServiceProvider.GetService(Type serviceType)
 at Ankh.AnkhRuntime.GetService[T](Type type)
 at Ankh.AnkhRuntime.GetService[T]()
 at Ankh.AnkhRuntime..ctor(IServiceContainer parentContainer)
 at Ankh.VSPackage.AnkhSvnPackage..ctor()
 --- End of inner exception stack trace ---
 at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
 at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
 at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
 at System.Activator.CreateInstance(Type type, Boolean nonPublic)
 at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
 at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
 at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
 at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)System.InvalidOperationException: Due to high risk of deadlock you cannot call GetService from a background thread in an AsyncPackage derived class. You should instead call GetServiceAsync (without calling Result or Wait on the resultant Task object) or switch to the UI thread with the JoinableTaskFactory.SwitchToMainThreadAsync method before calling GetService.
 at Microsoft.VisualStudio.Shell.AsyncPackage.GetService(Type serviceType)
 at Microsoft.VisualStudio.Shell.Package.System.IServiceProvider.GetService(Type serviceType)
 at Ankh.AnkhRuntime.GetService[T](Type type)
 at Ankh.AnkhRuntime.GetService[T]()
 at Ankh.AnkhRuntime..ctor(IServiceContainer parentContainer)
 at Ankh.VSPackage.AnkhSvnPackage..ctor()</description>
<guid>{604AD610-5CF9-4BD5-8ACC-F49810E2EFD4}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo></errorinfo>
</entry>
from ankhsvn.
Hello,
i tried your update but the problem remain.
I tried older version from the Action Tab nothing change the crash continue.
from ankhsvn.
Greetings!
I have the same issue on VS2017 even with the version 2.9.50
The problem raises when hitting update button. When history button is hit then nothing is showed
Please help.
from ankhsvn.
Thanks for confirming. Waiting for a few others to confirm as well before closing this issue. Please feel free to open new issues if you find them.
from ankhsvn.
Related Issues (20)
- Conflicting files get added HOT 2
- VsixManifest not updated with appropriate supported versions during build
- In Visual Studio 2022, double-clicking changed item in Pending Changes toggles its checkmark for including/excluding from the commit HOT 9
- VS dark mode and history viewer colors
- How commit unmodified file to SVN HOT 1
- Bad file icons in the Pending Changes with 200% DPI
- VS 2022 Crashing when Right Click on Pending Changes files HOT 4
- This plug-in cannot be detected in the code conflict folder (这个插件在代码冲突文件夹无法检测出来)
- Ignore-on commit issue in VS 2022 HOT 3
- Unable to cast object of type 'Microsoft.VisualStudio.CommonIDE.Solutions.SolutionPropertyBag' to type 'Ankh.Scc.Native.ICOMPropertyBag' HOT 14
- Annotate screen doesn't work VS2022 HOT 1
- Exception in Visual Studio 2022 (version 17.2.0) when opening a solution that uses AnhSvn HOT 10
- VS 2022 crashing
- Double-clicking entry in changes list toggles selected status HOT 3
- Visual Studio 2022: "Source control provider associated with this solution could not be found" HOT 4
- System.InvalidCastException while importing from VS 2017 to VS 2022 HOT 3
- New file indicator missing from Solution Explorer HOT 1
- Please release a new version HOT 23
- Visual Studio 2022 process devenv.exe not closing HOT 17
- Pending changes are not reflected in VS 2019 with ANKH SVN plugin 2.9.58 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ankhsvn.