eclipse-gemoc / gemoc-studio

gemoc-studio
Eclipse Public License 1.0
25 stars 22 forks source link

BatchLinkableResourceStorageWritable error when using K3 and xtend 2.27 #274

Open dvojtise opened 2 years ago

dvojtise commented 2 years ago

Bug description

in latest version of GEMOC 3.6.0 (based on Eclipse 2022-06, xtend 2.25) a lot of error messages occurs in the Default messagingSystem console and the Error Log view

org.eclipse.xtext.xbase.resource.BatchLinkableResourceStorageWritable  - Object (JvmParameterizedTypeReference: java.lang.String) is not contained in any resource

The code seems to works but isn't comfortable for the user

Apparently this wasn't the case with the previous version of the studio based on Eclipse 2021-12 (xtend 2.27)

The Xtend active annotation of K3 is the same (same version of K3 in both GEMOC installations)

Expected behavior

no error message in the console or the Error log when working with K3/Xtend projects.

How to reproduce

Steps to reproduce the behavior:

  1. install the K3 example, Hello ecore (k3 plugin)
  2. Simplify the aspect as follow
    
    package hello_ecore

import org.eclipse.emf.ecore.EPackage import fr.inria.diverse.k3.al.annotationprocessor.Aspect

import static extension hello_ecore.EPackageAspect.* import org.eclipse.emf.ecore.EClassifier

@Aspect(className=EPackage) class EPackageAspect { String foo }

@Aspect(className=EClassifier) class EClassifierAspect { }


3. See error in Error log and console

## Additional context

<!-- Please fill in the following fields: -->

- **GEMOC Studio version**: 3.6.0
- **Java version**: 11
- **OS**: Linux

## Screenshot

![image](https://user-images.githubusercontent.com/661468/182621040-33b5afd4-81f7-436e-9b4d-39a8dc1929dd.png)
dvojtise commented 2 years ago

Possibly related to https://github.com/eclipse/xtext-extras/issues/695 (some changes have been introduced in xtend 2.26 that look to be related to that message)

dvojtise commented 2 years ago

opened an issue in xtend : https://github.com/eclipse/xtext/issues/2318