Skip to content
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

Core: rule files in eclipse #150

Closed
irina-dragoste opened this issue Feb 3, 2020 · 15 comments
Closed

Core: rule files in eclipse #150

irina-dragoste opened this issue Feb 3, 2020 · 15 comments
Labels
question Further information is requested

Comments

@irina-dragoste
Copy link
Collaborator

irina-dragoste commented Feb 3, 2020

  • integrate rule files into eclipse (syntax highlighting, auto-completion, auto-suggest, refactoring, auto-formatting, etc), all functionalities that are available for Java syntax
@irina-dragoste irina-dragoste added the question Further information is requested label Feb 3, 2020
@irina-dragoste
Copy link
Collaborator Author

irina-dragoste commented Feb 3, 2020

  • look into LanguageServer
  • does LanguageServer need a port?
  • see if there are LanguageServer tutorials
  • eclipse marketplace plugins for simple languages (prolog, cdt, etc), preferably up to date, look at their code
  • separate code that has to do with behaviour (auto-suggest, refactoring) from coupling to eclipse code

@alloka
Copy link
Contributor

alloka commented Feb 3, 2020

This is a plugin that can be used to construct a language, it seems reliable and a lot of people are using it, maybe if someone thinks it is relatable we can proceed.

https://www.eclipse.org/Xtext/index.html

@alloka
Copy link
Contributor

alloka commented Feb 3, 2020

http://www.liclipse.com/text/supported_languages.html
this is also a plugin for eclipse3 that supports introducing a new language and it has syntax highlighting, it might be an option to consider as well.

Update: I guess this might turn out to be really useful.

@mmarx
Copy link
Member

mmarx commented Feb 6, 2020

It seems to me that Xtext would be the way to go: it's an actively maintained part of the eclipse platform, designed specifically to build eclipse plugins for new languages, and it can also generate a language server.

@alloka
Copy link
Contributor

alloka commented Feb 8, 2020

https://github.com/mn-mikke/Model-driven-Pretty-Printer-for-Xtext-Framework/wiki/Standard-Way-of-Syntax-Highlighting-in-Xtext-Framework this might be useful as well, but I need to do further investigations to get better knowledge about xtext but we need to agree first on this.

@alloka
Copy link
Contributor

alloka commented Feb 8, 2020

https://wiki.eclipse.org/FAQ_How_do_I_provide_syntax_coloring_in_an_editor%3F this might be an easy way to do syntax highlighting within eclipse using the parser we currently have as far as I understand, need to confirm this as well.

@mmarx
Copy link
Member

mmarx commented Feb 8, 2020

https://wiki.eclipse.org/FAQ_How_do_I_provide_syntax_coloring_in_an_editor%3F this might be an easy way to do syntax highlighting within eclipse using the parser we currently have as far as I understand, need to confirm this as well.

It's not, it requires writing a platform plugin and implementing a custom editor (both of which are taken care of by xtext), and it also doesn't work with our current parser.

@alloka
Copy link
Contributor

alloka commented Feb 11, 2020

A note: Xtext doesn't provide syntax highlighting in case of integrating it with LSP.
cf: eclipse/xtext-core#283

@alloka
Copy link
Contributor

alloka commented Feb 11, 2020

https://www.eclipse.org/Xtext/documentation/310_eclipse_support.html#highlighting This contains the features found in Xtext including refactoring, further elaborating tutorials are needed.

@mmarx
Copy link
Member

mmarx commented Feb 11, 2020

A note: Xtext doesn't provide syntax highlighting in case of integrating it with LSP.

To clarify: the language server doesn't do syntax highlighting. The generated eclipse plugin still does.

@alloka
Copy link
Contributor

alloka commented Feb 18, 2020

[link redacted, —@mmarx]

Xtext Documentation

@mmarx
Copy link
Member

mmarx commented Feb 18, 2020

I have removed the link. Please don't upload random documents you find on the Internet to the issue tracker, especially if it's unclear what license the content is under, if any. It doesn't help that that particular version of the documentation refers to an eight-year-old version of Xtext.

The current version of the Xtext documentation is found here: https://www.eclipse.org/Xtext/documentation/index.html

@alloka
Copy link
Contributor

alloka commented Feb 24, 2020

@alloka
Copy link
Contributor

alloka commented Feb 24, 2020

I figured out a way which is to export the xtext project as a feature and it can be installed in any eclipse and it is working and tested, another way but not test is through maven.

@mmarx
Copy link
Member

mmarx commented Mar 2, 2020

Tracking all further progress in https://github.com/knowsys/rulewerk-plugin/.

@mmarx mmarx closed this as completed Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants