eclipse-gemoc / eclipse-gemoc/gemoc-studio

BatchLinkableResourceStorageWritable error when using K3 and xtend 2.27

Open
#274 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PostScript
Stars
27
Forks
22
PR merge metrics
No merged PRs in 30d

Description

## 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

- **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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.