This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 308596 - Sometimes no annotation storage file generated when we apply an annotation
Summary: Sometimes no annotation storage file generated when we apply an annotation
Status: RESOLVED INVALID
Alias: None
Product: Tigerstripe (Archived)
Classification: Technology
Component: Annotations (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 minor with 3 votes (vote)
Target Milestone: 0.5M0   Edit
Assignee: Yuri Strot CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-08 23:21 EDT by Justin CLA
Modified: 2010-12-06 15:39 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin CLA 2010-04-08 23:21:03 EDT
Build Identifier: eclipse: 20090920-1017, Tigerstripe AF: 0.5.0.201001251616

Sometimes, no any annotation storage file generated right after we enable (=install an annotation plug-in and restart Tigerstripe) and apply the annotation to an artifact of a Tigerstripe model. It is not easy to re-produce these cases.

It seems that some preconditions or the order of operations cause the insufficient initialization of Tigerstripe Annotation Framework and the annotation plug-in, and result in the absence of annotation storage file.


Reproducible: Sometimes
Comment 1 Yuri Strot CLA 2010-04-29 05:26:06 EDT
Actually all annotation plug-ins activate when you open Annotation Property View. So when you add annotation all plug-ins should be already activated. The only operations which can delay storage file creation are workspace operations (like workspace building). Could you please check that there is no long building process  which block workspace?

Also could you please check that annotation you created should be stored in the annotation file you expect? I.e. it's not created in a workspace metadata.
Comment 2 Justin CLA 2010-05-31 04:38:11 EDT
Hi,

I checked again, following your suggestions.

1. I deploy a new annotaion plugin into eclipse, then restart eclispe

2. then I applied an annotation to an entity artifact of a Tigerstripe model project. The "Annotation Property View" shows the value. but no 'annotations' folder generated under the root of the model project, and no storage file found in eclipse workspace metadata folder. No long term process observed.

3. then I restart the eclipse. Still can see the annotation value in the 'annotaion property view', still no storage file found (in model foler and in metadata folder). No long term process observed.

4. then I change the annotation value in that view, still no storage file found (in model foler and in metadata folder)

5. In fact, sometimes the storage file can be generated under the 'annotations' folder. but in my eviroment, whether or not be successful seems by chance.
Comment 3 Justin CLA 2010-05-31 04:44:19 EDT
by the way, In previous experiment, before and after I apply the annotation to the entity, no any error found in the "Erro Log" view.
Comment 4 Justin CLA 2010-05-31 04:51:04 EDT
I opened eclispe consoleLog, In previous experiment, before and after I apply the annotation to the entity, no any log found in the console log.
Comment 5 Yuri Strot CLA 2010-05-31 13:26:31 EDT
Hi Justin,

Please try to close eclipse after your second step. Then open following file: <workspace_dir>/.metadata/.plugins/org.eclipse.tigerstripe.espace.resources/resources.xml

In this file you will find references to all resources which was registered as annotation storage files. All annotations you will see after restart should be stored in the files from this list or in the defaultStorage.xml file.
Comment 6 Justin CLA 2010-08-19 07:40:40 EDT
Hi,

I changed the importance to a lower level, and please note that TMF Shared Interface Infrastructure team has recently decided the team will not use the Annotation Framework in next release of tooling, that is, the team will keep using stereotypes.

best regards,
Jinzhai
Comment 7 Navid Mehregani CLA 2010-12-06 15:39:38 EST
I'm unable to reproduce this issue.  Annotation storage file is always created.  The only thing I have problems with are the files created under 
  <workspace_dir>/.metadata/.plugins/org.eclipse.tigerstripe.espace.resources/

That's being fixed under another defect.  Please reopen with more details if you're still able to reproduce this issue.