ReSharper 8.2.3在Visual Studio 2008启动期间崩溃

时间:2017-10-31 15:17:25

标签: visual-studio-2008 resharper-8.0

当我使用/ Log开关使用ReSharper 8.2.3启动Visual Studio 2008时,我可以在生成的日志文件中看到ReSharper抛出了几个异常。我不能使用VS来更改任何文件(键入不会被停用,但它会忽略任何非ascii类型)。一旦我停用ReSharper,一切都恢复正常。

devenv.exe /Resharper.LogFile /Resharper.LogLevel详细输出:

[snipped - 启动信息和线程记录详细....]

11:18:06 AM.510: Thread:1: [VsShortcutManager] CurrentInputLanguage: de-CH (Swiss German)
11:18:06 AM.510: Thread:1: [VsShortcutManager] DefaultInputLanguage: en-US (US)
11:18:06 AM.579: Thread:1: EXCEPTION: Culture ID 8192 (0x2000) is not a supported culture. Parameter name: culture
Culture ID 8192 (0x2000) is not a supported culture. Parameter name: culture

--- EXCEPTION #1/2 [ArgumentException]
Message = “Culture ID 8192 (0x2000) is not a supported culture.”
ExceptionPath = Root.InnerException
ClassName = System.ArgumentException
HResult = COR_E_ARGUMENT=E_INVALIDARG=80070057
Source = mscorlib
ParamName = culture
StackTraceString = “
  at System.Globalization.CultureTableRecord.GetCultureTableRecord(Int32 cultureId, Boolean useUserOverride)
     at System.Globalization.CultureInfo..ctor(Int32 culture, Boolean useUserOverride)
     at System.Windows.Forms.InputLanguage.get_Culture()
     at JetBrains.VsIntegration.ActionManagement.VsShortcutManager.<OnBeforeBulkShortcutsChange>b__d(InputLanguage lang)
     at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
     at System.Linq.Enumerable.Aggregate[TSource,TAccumulate,TResult](IEnumerable`1 source, TAccumulate seed, Func`3 func, Func`2 resultSelector)
     at JetBrains.Util.CollectionUtil.AggregateString[TSource,TResult](IEnumerable`1 source, StringBuilder seed, String separator, Func`3 funcAppend, Func`2 funcConvert)
     at JetBrains.Util.CollectionUtil.AggregateString[TSource](IEnumerable`1 source, String separator, Func`3 funcAppend)
     at JetBrains.VsIntegration.ActionManagement.VsShortcutManager.OnBeforeBulkShortcutsChange()
     at JetBrains.VsIntegration.ActionManagement.VsActionLoader.OnBeforeLoadActions(ICollection`1 infos)
     at JetBrains.ActionManagement.ActionLoader.ActionLoader.Init_ActionXmlsAndHandlersFromAssemblies_Load(List`1 actionxmls, ICollection`1 actionhandlers, IApplicationDescriptor applicationDescriptor, IDictionary`2 mapIconClasses)
     at JetBrains.ActionManagement.ActionLoader.ActionLoader.<>c__DisplayClass10.<>c__DisplayClass14.<Init_ActionXmlsAndHandlersFromAssemblies>b__e()
     at JetBrains.DataFlow.Lifetime.AddBracket(Action FOpening, Action FClosing)
     at JetBrains.ActionManagement.ActionLoader.ActionLoader.<>c__DisplayClass10.<Init_ActionXmlsAndHandlersFromAssemblies>b__9(Lifetime lifetimeCatalog, IPartsCatalogue catalog)
     at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass15`1.<>c__DisplayClass19.<ForEachItemCore>b__13()
     at JetBrains.Util.Logging.Logger.Catch(Action action)
”

--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “
  Culture ID 8192 (0x2000) is not a supported culture.
  Parameter name: culture
”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  at JetBrains.Util.Logging.Logger.LogException(Exception ex)
     at JetBrains.Util.Logging.Logger.Catch(Action action)
     at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass15`1.<ForEachItemCore>b__12(AddRemoveEventArgs`1 args)
     at JetBrains.DataFlow.CollectionEvents`1.OnAcknowledgeSinkAddRemove(Action`1 handler, AddRemove addremove)
     at JetBrains.DataFlow.CollectionEvents`1.<.ctor>b__0(Action`1 handler)
     at JetBrains.DataFlow.Infra.SignalWithDelegates`1.OnAfterAdvise(Action`1 handler)
     at JetBrains.DataFlow.Signal`1.<>c__DisplayClass2.<AdviseCore>b__0()
     at JetBrains.DataFlow.Lifetime.AddBracket(Action FOpening, Action FClosing)
     at JetBrains.DataFlow.Signal`1.AdviseCore(Action`1 handler, Lifetime lifetime)
     at JetBrains.DataFlow.Signal`1.Advise(Lifetime lifetime, Action`1 handler)
     at JetBrains.DataFlow.ICollectionEventsEx.ForEachItemCore[TValue](ICollectionEvents`1 thіs, Lifetime lifetime, Action`2 FHandlerA, Action`3 FHandlerB)
     at JetBrains.DataFlow.ICollectionEventsEx.ForEachItem[TValue](ICollectionEvents`1 thіs, Lifetime lifetime, Action`2 FHandler)
     at JetBrains.DataFlow.CollectionEvents`1.View(Lifetime lifetime, Action`2 viewer)
     at JetBrains.ActionManagement.ActionLoader.ActionLoader.Init_ActionXmlsAndHandlersFromAssemblies(IPartsCatalogueSet catalogSet, IApplicationDescriptor applicationDescriptor)
     at JetBrains.VsIntegration.ActionManagement.VsActionLoader..ctor(Lifetime lifetime, VsActionManager actionManager, VsShortcutManager shortcutManager, IPartsCatalogueSet catalogSet, IApplicationDescriptor applicationDescriptor, ProductConfigurations productConfigurations, DTE dte)
     at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
     at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
     at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at JetBrains.Application.Extensibility.PartComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
     at JetBrains.Application.Extensibility.PartComponentDescriptor.CreateInstance(IValueResolveContext context)
     at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
     at JetBrains.Application.Components.SingletonDescriptor.GetValue()
     at JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors)
     at JetBrains.Application.Extensibility.PartComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
     at JetBrains.Application.Extensibility.PartComponentDescriptor.CreateInstance(IValueResolveContext context)
     at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
     at JetBrains.Application.Components.SingletonDescriptor.GetValue()
     at JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors)
     at JetBrains.Application.Extensibility.PartComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
     at JetBrains.Application.Extensibility.PartComponentDescriptor.CreateInstance(IValueResolveContext context)
     at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
     at JetBrains.Application.Components.SingletonDescriptor.GetValue()
     at JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors)
     at JetBrains.Application.Extensibility.PartComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
     at JetBrains.Application.Extensibility.PartComponentDescriptor.CreateInstance(IValueResolveContext context)
     at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
     at JetBrains.Application.Components.SingletonDescriptor.GetValue()
     at JetBrains.Application.Components.ComponentStorage.InstantiateDescriptors(IEnumerable`1 descriptors)
     at JetBrains.Application.Components.ComponentStorage.ComposeDescriptors(ICollection`1 descriptors)
     at JetBrains.Application.Components.ComponentStorage.Compose()
     at JetBrains.Application.Components.ComponentContainer.Compose()
     at JetBrains.Application.Env.RunsProducts.RunProduct(Lifetime lifetimeProduct, IApplicationDescriptor product, IEnumerable`1 enumProgramConfigurationsProviders, JetEnvironment environment, IDictionaryEvents`2 productsNonComposed, IDictionaryEvents`2 productsComposed)
     at JetBrains.Application.Env.RunsProducts.<>c__DisplayClass19.<Init_RunWhenAllowed>b__18(Lifetime lifetimeProduct, IApplicationDescriptor product)
     at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass15`1.<>c__DisplayClass19.<ForEachItemCore>b__13()
     at JetBrains.Util.Logging.Logger.Catch(Action action)
     at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass15`1.<ForEachItemCore>b__12(AddRemoveEventArgs`1 args)
     at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
     at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
     at JetBrains.DataFlow.CollectionEvents`1.FireAddRemove(AddRemove action, TValue value, Object cookie)
     at JetBrains.DataFlow.CollectionEvents`1.InternalAdd(TValue value, Object cookie)
     at JetBrains.DataFlow.CollectionEvents`1.Add(TValue value, Object cookie)
     at JetBrains.DataFlow.ICollectionEventsEx.Add[TValue](ICollectionEvents`1 thіs, Lifetime lifetime, TValue value, Object cookie)
     at JetBrains.Application.Env.RunsProducts.<>c__DisplayClass7.<>c__DisplayClass9.<Init_CollectProductsAllowedToRun>b__5(Lifetime lifeVerdict, ProductCanBeStartedVerdict verdict)
     at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass26`1.<>c__DisplayClass28.<ForEachValue>b__25(Lifetime lifetimeValue)
     at JetBrains.DataFlow.SequentialLifetimes.<>c__DisplayClass3.<Next>b__2(LifetimeDefinition definition, Lifetime lifetime)
     at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILogger logger)
     at JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)
     at JetBrains.DataFlow.SequentialLifetimes.Next(Action`1 FNext)
     at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass26`1.<ForEachValue>b__24(PropertyChangedEventArgs`1 args)
     at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
     at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
     at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)
     at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
     at JetBrains.DataFlow.Property`1.set_Value(TValue value)
     at JetBrains.Application.ComposeVerdictWithPriority.UpdateActiveTellers[TVerdict](Lifetime lifetimeComponent, List`1 tellers, IProperty`1 propComposite)
     at JetBrains.Application.ComposeVerdictWithPriority.<>c__DisplayClassc`1.<UpdateActiveTellers>b__a()
     at JetBrains.DataFlow.IPropertySignalEx.<>c__DisplayClass1f`1.<Advise_NoAcknowledgement>b__1e(PropertyChangedEventArgs`1 args)
     at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
     at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
     at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)
     at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
     at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClasse`2.<FlowInto>b__d(PropertyChangedEventArgs`1 args)
     at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
     at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
     at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)
     at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
     at JetBrains.Application.DataFlowEx.<>c__DisplayClass23`1.<FlowIntoGuarded_NoReplay>b__22()
     at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
     at JetBrains.Threading.ReentrancyGuard.ExecuteOrQueue(String name, Action action)
     at JetBrains.Application.DataFlowEx.<>c__DisplayClass23`1.<FlowIntoGuarded_NoReplay>b__21()
     at JetBrains.DataFlow.ISignalEx.<>c__DisplayClass1`1.<Advise>b__0(TValue value)
     at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
     at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
     at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)
     at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
     at JetBrains.VsIntegration.Application.VsNonZombiedProductCanBeStarted.<>c__DisplayClass4.<.ctor>b__0()
     at JetBrains.VsIntegration.Application.VsNonZombiedProductCanBeStarted.<>c__DisplayClass4.<.ctor>b__2(VSSPROPID vsspropid, Object o)
     at JetBrains.VsIntegration.Interop.Shim.Shell.IVsShell.ShellPropertyChangesSink.Microsoft.VisualStudio.Shell.Interop.IVsShellPropertyEvents.OnShellPropertyChange(Int32 propid, Object var)
”

[剪断 - 日志中还有更多例外......]

任何想法,是什么导致这个?或者我如何解决它?

1 个答案:

答案 0 :(得分:1)

谁能想到解决方案如此简单。我模糊地记得在去度假之前在我的系统上设置一个新的语言区域。从假期回来后,问题中描述的现象开始了。

解决方案

  1. 删除语言区域设置en-CH(英国瑞士)并设置默认的en-US。
  2. 重启电脑。
  3. 问题解决了。