eclipse-sirius / sirius-desktop

Sirius Desktop: desktop-based graphical modelers for dedicated DSLs
https://eclipse.dev/sirius/
Eclipse Public License 2.0
13 stars 11 forks source link

Model Explorer does not initialize tree on a new Xtext file #310

Open bedo2991 opened 4 months ago

bedo2991 commented 4 months ago

Video showing the issue: https://www.youtube.com/watch?v=RMzs0Wnz3Do

Steps to reproduce:

  1. Import the example Xtext project (see below) in eclipse, and start a new runtime application.
  2. Create a new file with the required extension (.mydsl) in a Sirius Modeling project.
  3. Insert some parseable text inside the file (Hello world!) and save

Expected: the Model Explorer should now show a tree view of the model content Actual result: the file is still not recognised as a model and does not have a tree explorer (which would allow to easily create sirius representations)

XText simple project to reproduce this: mydslExample.zip

Tested with: XText: 2.34.0 Eclipse Modeling Tools: 4.28.0 EMF: 2.34.0 Sirius: 7.3.0

Initially posted on the Xtext & EMF forum here.

pcdavid commented 4 months ago

Hi. Do you have the "Sirius Integration with Xtext" (org.eclipse.sirius.runtime.ide.xtext) feature installed in the environment where you see the bug? Depending on the Eclipse package you use it's not always installed (I'm not sure it is in the Eclipse Modeling package for example, and I think we do not install it by default either in Obeo Designer.

bedo2991 commented 4 months ago

Hi. Do you have the "Sirius Integration with Xtext" (org.eclipse.sirius.runtime.ide.xtext) feature installed in the environment where you see the bug?

yes, I do have the plugin: Eclipse Modeling Project Sirius Integration with Xtext 7.3.0.202311270829 org.eclipse.sirius.common.xtext

and the feature: Eclipse Modeling Project Sirius Integration with Xtext 7.3.0.202311270829 org.eclipse.sirius.runtime.ide.xtext

bedo2991 commented 4 months ago

After looking better, this might be related to issue #101 ?