Bug 143460 - [templates] Error reading TemplateSet in German install
Summary: [templates] Error reading TemplateSet in German install
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 3.0.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Bryan Green CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-24 10:26 EDT by Vikas Trivedi CLA
Modified: 2019-09-06 16:04 EDT (History)
3 users (show)

See Also:


Attachments
eclipse config error (3.66 KB, text/richtext)
2006-06-20 11:58 EDT, Marya Berfeld CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vikas Trivedi CLA 2006-05-24 10:26:09 EDT
Upon creating a java class for the first time in a NEW and CLEAN workspace one will get a Template set error.

Below is the log file from creating a java class in a java project.

!ENTRY org.eclipse.jdt.ui 4 10001 Apr 27, 2006 16:13:46.593
!MESSAGE Interner Fehler
!STACK 1
org.eclipse.core.runtime.CoreException: !TemplateSet.error.read!
	at org.eclipse.jdt.internal.corext.template.java.TemplateSet.throwReadException(Unknown Source)
	at org.eclipse.jdt.internal.corext.template.java.TemplateSet.addFromStream(Unknown Source)
	at org.eclipse.jdt.internal.corext.template.java.CodeTemplates.create(Unknown Source)
	at org.eclipse.jdt.internal.corext.template.java.CodeTemplates.<init>(Unknown Source)
	at org.eclipse.jdt.internal.corext.template.java.CodeTemplates.getInstance(Unknown Source)
	at org.eclipse.jdt.internal.ui.JavaPlugin.getCodeTemplateStore(Unknown Source)
	at org.eclipse.jdt.internal.corext.codemanipulation.StubUtility.getCompilationUnitContent(Unknown Source)
	at org.eclipse.jdt.ui.CodeGeneration.getCompilationUnitContent(Unknown Source)
	at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createType(Unknown Source)
	at org.eclipse.jdt.internal.ui.wizards.NewClassCreationWizard.finishPage(Unknown Source)
	at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(Unknown Source)
	at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(Unknown Source)
	at org.eclipse.jdt.internal.core.JavaModelOperation.run(Unknown Source)
	at org.eclipse.core.internal.resources.Workspace.run(Unknown Source)
	at org.eclipse.jdt.core.JavaCore.run(Unknown Source)
	at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(Unknown Source)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(Unknown Source)
!SUBENTRY 1 org.eclipse.jface.text 4 10005 Apr 27, 2006 16:13:46.609
!MESSAGE !TemplateSet.error.read!
Comment 1 Dani Megert CLA 2006-05-24 10:41:57 EDT
There's no such thing like a German install.
What build (id) did you install and which German fragments?
Comment 2 Vikas Trivedi CLA 2006-05-24 10:47:26 EDT
I guess I used the wrong terminology. I believe we used the German language localization pack. I'm hoping this makes more sense :)
Comment 3 Dani Megert CLA 2006-05-24 10:50:47 EDT
OK, so you use 3.0.2 with the correct 3.0.2 German language pack?
Comment 4 Marya Berfeld CLA 2006-06-20 11:58:28 EDT
Created attachment 44921 [details]
eclipse config error 


The OS: Win XP, SP2. lang:German (Germany). eclipse config error info is attached.
Image is available at: \\tigger.ottawa.ibm.com\pxdetest\buildimgs\prod_test_images\6011+Ifix001_Final\RSA\RSA_6011_IFix001_WinXPSP2_ML_25GB_CC6
Comment 5 Marya Berfeld CLA 2006-06-20 12:00:39 EDT
I can not resubmit the defect. Please sesubmit
Comment 6 Vikas Trivedi CLA 2006-06-20 12:02:55 EDT
Attempting to Reopen bug.
Comment 7 Dani Megert CLA 2006-06-20 12:52:35 EDT
OK, I can reprodue the .log entry with these steps:
1. download 3.0.2 form Eclipse.org
2. download 3.0.x language pack from Eclipse.org
3. start new workspace using -nl de_DE
4. create Java project 'JP' the new project wizard
5. create class 'T' using the new class wizard

BUT: I only get an entry in the .log and no dialog. What makes this error 'major' for you? Is there anything not working for you? If so, can you describe?

We will have to check whether this is caused by the NL fragment or the template store reader.
Comment 8 Dani Megert CLA 2006-06-20 12:58:40 EDT
Sorry - did not want to close this as WORKSFORME.
Comment 9 Dani Megert CLA 2006-06-20 13:12:11 EDT
OK, this is a bug in the translation:

the original properties file says:
# ! Do not translate ${bare_field_name} !
CodeTemplates.gettercomment.returntagcontent=Returns the ${bare_field_name}.

Now, this has been translated to:
CodeTemplates.gettercomment.returntagcontent=Gibt ${reiner_feldname} zur\u00FCck.

Looks like the directive to not translate ${bare_field_name} has been discarded.
Comment 10 Marya Berfeld CLA 2006-07-10 12:27:09 EDT
The OS: Win XP, SP2. lang:German (Germany). eclipse config error info is attached.
Image is available at: \\tigger.ottawa.ibm.com\pxdetest\buildimgs\prod_test_images\6011+Ifix001_Final\RSA\RSA_6011_IFix001_WinXPSP2_ML_25GB_CC6
Comment 11 Cam-Thu Le CLA 2007-04-18 12:00:52 EDT
Reassigned to Bryan G. for investigation and follow through with translation testers in eclipse 3.3.  
Comment 12 Eclipse Webmaster CLA 2019-09-06 16:04:01 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.