This project has moved and is read-only. For the latest updates, please go here.
1

Resolved

ResXManager does not display any language

description

Hello,

since version 1.0.0.95 the ResXManager is doesn't show any language. The key are correctly displayed but I can not define any values.

Microsoft Windows 10
Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3


StackTrace:
DTE event: Document opened
ResX Resource Manager wurde geladen.
Webseite: http://resxresourcemanager.codeplex.com/
Fehler melden:  http://resxresourcemanager.codeplex.com/workitem/list/basic
Projekt unterstützen: Schreiben sie ein kurzes Review auf https://marketplace.visualstudio.com/items?itemName=TomEnglert.ResXManager#review-details
Installationsverzeichnis: C:\Users\FBE\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\bvfq4mli.nb3
Version: 1.0.0.95
Fehler: System.Diagnostics.Contracts.__ContractsRuntime+ContractException: Vorbedingungsfehler: !string.IsNullOrEmpty(key)
   bei System.Diagnostics.Contracts.__ContractsRuntime.Requires(Boolean condition, String msg, String conditionTxt) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceManagerExtensions.cs:Zeile 0.
   bei tomenglertde.ResXManager.Model.ResourceTableEntry..ctor(ResourceEntity container, String key, Double index, IDictionary`2 languages) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceTableEntry.cs:Zeile 71.
   bei tomenglertde.ResXManager.Model.ResourceEntity.<.ctor>b__11_2(String key, Int32 index) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceEntity.cs:Zeile 71.
   bei System.Linq.Enumerable.<SelectIterator>d__5`2.MoveNext()
   bei System.Collections.ObjectModel.ObservableCollection`1.CopyFrom(IEnumerable`1 collection)
   bei System.Collections.ObjectModel.ObservableCollection`1..ctor(IEnumerable`1 collection)
   bei tomenglertde.ResXManager.Model.ResourceEntity..ctor(ResourceManager container, String projectName, String baseName, String directoryName, ICollection`1 files, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceEntity.cs:Zeile 73.
   bei tomenglertde.ResXManager.Model.ResourceManager.LoadEntities(IEnumerable`1 fileNamesByDirectory, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceManager.cs:Zeile 264.
   bei tomenglertde.ResXManager.Model.ResourceManager.InternalLoad(IEnumerable`1 resourceFilesByDirectory, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceManager.cs:Zeile 196.
   bei tomenglertde.ResXManager.Model.ResourceManager.Load(IList`1 allSourceFiles, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceManager.cs:Zeile 70.
   bei tomenglertde.ResXManager.Model.ResourceManager.Reload(IList`1 sourceFiles, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceManager.cs:Zeile 168.
   bei tomenglertde.ResXManager.View.Visuals.ResourceViewModel.Reload(Boolean forceFindCodeReferences) in C:\Agent\_work\3\s\Main\ResXManager.View\Visuals\ResourceViewModel.cs:Zeile 456.
DTE event: Solution opened
Fehler: System.Diagnostics.Contracts.__ContractsRuntime+ContractException: Vorbedingungsfehler: !string.IsNullOrEmpty(key)
   bei System.Diagnostics.Contracts.__ContractsRuntime.Requires(Boolean condition, String msg, String conditionTxt) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceManagerExtensions.cs:Zeile 0.
   bei tomenglertde.ResXManager.Model.ResourceTableEntry..ctor(ResourceEntity container, String key, Double index, IDictionary`2 languages) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceTableEntry.cs:Zeile 71.
   bei tomenglertde.ResXManager.Model.ResourceEntity.<.ctor>b__11_2(String key, Int32 index) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceEntity.cs:Zeile 71.
   bei System.Linq.Enumerable.<SelectIterator>d__5`2.MoveNext()
   bei System.Collections.ObjectModel.ObservableCollection`1.CopyFrom(IEnumerable`1 collection)
   bei System.Collections.ObjectModel.ObservableCollection`1..ctor(IEnumerable`1 collection)
   bei tomenglertde.ResXManager.Model.ResourceEntity..ctor(ResourceManager container, String projectName, String baseName, String directoryName, ICollection`1 files, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceEntity.cs:Zeile 73.
   bei tomenglertde.ResXManager.Model.ResourceManager.LoadEntities(IEnumerable`1 fileNamesByDirectory, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceManager.cs:Zeile 264.
   bei tomenglertde.ResXManager.Model.ResourceManager.InternalLoad(IEnumerable`1 resourceFilesByDirectory, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceManager.cs:Zeile 196.
   bei tomenglertde.ResXManager.Model.ResourceManager.Load(IList`1 allSourceFiles, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceManager.cs:Zeile 70.
   bei tomenglertde.ResXManager.Model.ResourceManager.Reload(IList`1 sourceFiles, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceManager.cs:Zeile 168.
   bei tomenglertde.ResXManager.View.Visuals.ResourceViewModel.Reload(Boolean forceFindCodeReferences) in C:\Agent\_work\3\s\Main\ResXManager.View\Visuals\ResourceViewModel.cs:Zeile 456.
I hope you are able to fix the problem soon.

comments

tomenglert wrote Mar 13 at 4:24 PM

This is not an issue of the new version.
According to the stack trace you have some broken RESX files that contain entries with empty or missing name, e.g.:
<data name="" xml:space="preserve">
or
<data xml:space="preserve">

Maybe I can improve the error message for this scenario in the next version, however you should be able to fix this by you own.

Halid wrote Mar 18 at 10:36 PM

That was right i got this one <data name="" xml:space="preserve">

tomenglert wrote Mar 19 at 1:09 PM

OK. Next version will show a more useful error message.

wrote Mar 19 at 2:58 PM

Associated with changeset 37752: Update GUI for empty resource key handling

wrote Mar 19 at 3:54 PM