RockychengJson / localizedproperties

Automatically exported from code.google.com/p/localizedproperties
0 stars 0 forks source link

Error buscando un properties file #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On Wed, Dec 23, 2009 at 10:48 PM, Esteban Garcia <estebanjgarcia@gmail.com>
wrote:

    java.lang.RuntimeException: Unparsable lang and country
        at
com.triadsoft.properties.model.utils.WildcardPath.parse(WildcardPath.java:107)
        at
com.triadsoft.properties.model.utils.PathDiscovery.<init>(PathDiscovery.java:67)
        at
com.triadsoft.properties.model.ResourceList.<init>(ResourceList.java:52)
        at
com.triadsoft.properties.editors.PropertiesEditor.createPages(PropertiesEditor.j
ava:111)
        at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.ja
va:31

    java.lang.RuntimeException: No se encontró un wildcard path que
coincida con /ss3_web/src/subtitlesync/client/messages/Text.properties
        at
com.triadsoft.properties.model.utils.PathDiscovery.<init>(PathDiscovery.java:63)
        at
com.triadsoft.properties.model.ResourceList.<init>(ResourceList.java:52)
        at
com.triadsoft.properties.editors.PropertiesEditor.createPages(PropertiesEditor.j
ava:111)
        at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.ja
va:310)

Original issue reported on code.google.com by flores.l...@gmail.com on 24 Dec 2009 at 8:37

GoogleCodeExporter commented 9 years ago
No pude reproducir el error, pero Esteban ya pudo intentar abrir los archivos.
Supongo que era un problema con la version del plugin

Original comment by flores.l...@gmail.com on 15 Jan 2010 at 9:58

GoogleCodeExporter commented 9 years ago
Verificados

Original comment by flores.l...@gmail.com on 5 Sep 2010 at 1:52

GoogleCodeExporter commented 9 years ago
I got this same error when trying to open a grails i18n property file (standard 
java property file):

java.lang.RuntimeException: Unparsable lang and country
    at com.triadsoft.properties.model.utils.WildcardPath.parse(WildcardPath.java:107)
    at com.triadsoft.properties.model.utils.PathDiscovery.<init>(PathDiscovery.java:67)
    at com.triadsoft.properties.model.ResourceList.<init>(ResourceList.java:52)
    at com.triadsoft.properties.editors.PropertiesEditor.createPages(PropertiesEditor.java:111)
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:357)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:662)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
    at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
    at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
    at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
    at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
    at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)

I defined the following wildcards entries to match grails i18n property files 
locations:
  /{root}/grails-app/i18n/{filename}_{lang}_{country}.{fileextension}
  /{root}/grails-app/i18n/{filename}_{lang}.{fileextension}
  /{root}/grails-app/i18n/{filename}.{fileextension}

I get this error with files which do not have country or lang. Absence should 
be treated as the "default" alternative.

Original comment by olivier....@gmail.com on 21 Oct 2010 at 1:54

GoogleCodeExporter commented 9 years ago
You can try to move created WildcardPath, to the top of the list of path.
You must open preferences panel and sort your WildcardPaths with right buttons.

Original comment by flores.l...@gmail.com on 27 Oct 2010 at 12:53

GoogleCodeExporter commented 9 years ago
Please review that the instaled version be 7.5, the last released :)

Original comment by flores.l...@gmail.com on 27 Oct 2010 at 12:55