After having invoked the "Clipboard History" command and pasted an entry from there, whenever I press AltGr+<Num> (where num is a normal number key), the corresponding entry from the history is pasted again. This effectively means that I cannot type normally when using a Swedish keyboard in Visual Studio anymore, since a lot of characters such as $ { } [ ] @ are typed by pressing "AltGr+A number key".
The option to treat left and right alt differently IS checked in the Shortcut options.
Hi Peter,
Thank you for pointing out this issue. I have reproduced this issue with the Clipboard History feature when a Swedish keyboard is active on my side. We are fixing it and will notify you of our progress.
Thanks! Any known workaround besides restarting Visual Studio in the meantime?
Currently, I can't suggest you any workaround for this issue. We will do our best to provide you with a hotfix as soon as possible.
Just wanted to let you know I have the same problem; AltGr+7 until AltGr+0 on the German layout ({ [ ] }) suffer from the same issue.
Only happens when I have enough entries in the Clipboard Ring to reach 7+.
I don't remember Ctrl+Number inserting the given entry from the Clipboard Ring tho, unless I open it first by hitting Ctrl+Shift+V (mapped to the ClipboardHistory command).
Is there a "Clear Clipboard Ring" command that we could use in the mean time? I couldn't find one, so I'm wondering if it is somewhat hidden.
Hi Emanuel,
Thank you for informing us that you also faced this issue. As for a command to clear clipboard history, currently CodeRush doesn't have this command.
Also, I happy to inform you that we have fixed the issue and prepared a hotfix: DevExpress.CodeRush.Roslyn-18.2.6.19022.vsix. Please install it and let us know whether it solves the issue on your side.
The fix you provided seems to work great for me. Thanks! :)
You are welcome!
I think I spoke a little too soon. It works the first time after CodeRush installation is complete, but the next time I open Visual Studio CodeRush does not start, an error appears and the ActivityLog.xml from Visual Studio contains the following error:
<entry> <record>1235</record> <time>2019/01/24 07:27:14.018</time> <type>Error</type> <source>Editor or Editor Extension</source> <description>System.IO.FileNotFoundException: Could not load file or assembly 'DevExpress.CodeRush.TextEditor, Version=18.2.6.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4' or one of its dependencies. The system cannot find the file specified.
File name: 'DevExpress.CodeRush.TextEditor, Version=18.2.6.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4'
 at System.ModuleHandle.ResolveMethod(RuntimeModule module, Int32 methodToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount)
 at System.ModuleHandle.ResolveMethodHandleInternalCore(RuntimeModule module, Int32 methodToken, IntPtr[] typeInstantiationContext, Int32 typeInstCount, IntPtr[] methodInstantiationContext, Int32 methodInstCount)
 at System.ModuleHandle.ResolveMethodHandleInternal(RuntimeModule module, Int32 methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
 at System.Reflection.RuntimeModule.ResolveMethod(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
 at Microsoft.VisualStudio.Composition.Reflection.ResolverExtensions.Resolve(MethodRef methodRef)
 at Microsoft.VisualStudio.Composition.Reflection.MethodRef.Resolve()
 at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue()
 at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create()
 at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState)
 at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.<>c__DisplayClass15_0.<GetExportedValueHelper>b__0()
--- End of stack trace from previous location where exception was thrown ---
 at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.<>c__DisplayClass15_0.<GetExportedValueHelper>b__0()
 at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportElement(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import, RuntimeExport export, Func`3 lazyFactory)
 at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportSite(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import)
 at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.SatisfyImports()
 at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.SatisfyImmediateImports()
 at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState)
 at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState)
 at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()
 at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.<>c__DisplayClass15_0.<GetExportedValueHelper>b__0()
--- End of stack trace from previous location where exception was thrown ---
 at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.<>c__DisplayClass15_0.<GetExportedValueHelper>b__0()
 at Microsoft.VisualStudio.Composition.DelegateServices.<>c__DisplayClass2_0`1.<As>b__0()
 at System.Lazy`1.CreateValue()
 at System.Lazy`1.LazyInitValue()
 at System.Lazy`1.get_Value()
 at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer)
--- End of stack trace from previous location where exception was thrown ---
 at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

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].
</description> </entry>
Hi Peter,
Thank you for providing us with information form Visual Studio activity log.
It seems that something went wrong with the CodeRush update. Please reinstall CodeRush extension and let us know whether it solves this issue. For this, perform the following steps:
I am looking forward to your results.
I did exactly what you said above a couple of times without success, but now I tried it again and it seems to work so fingers crossed. I'll get back to you if I encounter any further problems.
Thank you for informing us of your results. We are happy to hear that the reinstall solves the issue with loading CodeRush on your side.