-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modernize Xpect #320
Comments
Wow, this doesn't sound fun at all. 😱 |
yes. and xpand is not maintained since 2016 |
see also |
This will also fix #300 |
with merging the complete logic from stateful lexer to modernizeXpect branch (see #322) |
That sounds very promising! |
many thanks for your contribution @tjeske |
open tasks
|
will close this for now. open points can be handled separately |
Xpect still uses the old xtext workflow (see what new Xtext project wizard generates) and the old xtext generator.(xpand based)
this is cause of
https://github.com/eclipse/Xpect/blob/018800b3af074c402b2aa53174e2457ea6f48046/org.eclipse.xpect/src/org/eclipse/xpect/GenerateXpect.mwe2#L124C6-L124C6
which uses
https://github.com/meysholdt/xtext_stateful_lexer/blob/48a4201ea3e0e52743af553ffaea89ba2d79144c/de.itemis.statefullexer/src/de/itemis/statefullexer/StatefulLexerFragment.xtend#L22
https://github.com/eclipse/xtext/blob/main/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/parser/antlr/ex/ExternalAntlrLexerFragment.java or by an adjusted version of that
we should move the new fragment to a new plugin in the xpect project.
we also need to make sure content assist and highlighting lexer get put to the ide project.
once this is done we can move in xpect
also the workflows in the examples need to be modernized, but that should be straight forward.
we also should get of deprecated xtext junit4 there
maybe we also should create a 0.2.0 branch with the current state and bump master to 0.3.0 then
in an alternative approach we would update target platform, xtext+java version, workflow, tycho and pom first and use fragment adapter (see history of /org.eclipse.xtext.ui.codetemplates/src/org/eclipse/xtext/ui/codetemplates/GenerateCodetemplateLanguages.mwe2) to call old workflow and then create the new fragment.
in this case we could make sure the "new dependencies" work first before introducing the changed code.
regardings versions:
The text was updated successfully, but these errors were encountered: