Daniel Elero
Daniel Elero
I have already started implementing this in `textX-LS` (not yet completed). When textX language project is installed in _editable_ mode, file system watcher is registered for its project path. When...
There are at least two solutions: - to have _different_ _virtualenvs_ and avoid language collision - to allow languages with the same name/extension, but to implement local registration right? If...
> See this. @igordejanovic You referenced `metamodel_from_str`, but yes, it would be enough to do the same for [model_from_str](https://github.com/textX/textX/blob/master/textx/metamodel.py#L548). [parser.get_model_from_str](https://github.com/textX/textX/blob/master/textx/metamodel.py#L560) already has `file_name` parameter. @goto40 I will try the workaround,...
`**kwargs` [here](https://github.com/textX/textX/blob/master/textx/metamodel.py#L641) would be helpful, also. I am having some issues when parsing models which use providers. Model is opened and validated for the first time:  Then I hit...
> @danixeee I suggest you to make a textX branch and a long running PR (open it as soon as you start making changes) that collects all changes to textX...
@goto40 That was a quick fix, thank you. I will test your branch from `textX-LS` and notify if everything is ok.
@igordejanovic I am not able to push a branch to textX project, should I work with a forked repo?
I agree with @igordejanovic, maybe we can add the command to `textX-LS-core` package. I have already thought about `hover` capability of language server. It would be nice to show grammar...
I think you should not override the protocol, just register and use [initialized](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#initialized) LSP method. There you can do all your work and use a flag to indicate that server...
You can take a look [here](https://github.com/textX/textX-LS/blob/master/textX-LS/server/textx_ls_server/protocol.py) on how to use your custom `Document` and `protocol ` classes, and [here](https://github.com/textX/textX-LS/blob/master/textX-LS/server/textx_ls_server/server.py#L66) on how to provide `protocol` class to the server. I would...