-
Notifications
You must be signed in to change notification settings - Fork 1
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
Issue executing example #1
Comments
will have a look at both points when i have time. (likely next week) |
Signed-off-by: Christian Dietrich <[email protected]>
see https://github.com/cdietrich/xbase-languageserver-example/tree/cd_issue1 for unique validation fix |
Thanks a lot! That was quite fast. I've checkout cd_issue1 branch, did a gradle clean startCode, but I'm still getting same error:
At the begining, I got some error related to duplicate type definition, like SuperEntity is already defined in SuperEntity.java file, but those one disappeared after installer Java extension in vscode. Your fix seems related to this error if I'm correct. In addition, it seems quite unstable, for instance, sometime if I'm update Entity Name, nothing |
Are you sure you really rebuilt everything on the new branch? Did you debug the validator. This could be an encoding issue too. Unfortunately I don’t have a windows machine to debug myself for the next few days First I saw the same issue but after my fix it works but I am not sure if my fix works on windows |
Hello, Yes I'm sure I've built everything on branch 'cd_issue1' with a gradle clean startCode. Just to be sure we are talking about the same error, the error message is : "message": "The type SuperEntity is already defined in test2.mydsl." so related to test2.mydsl file extension not java extension. |
As I said: this needs to be debugged . Maybe you can change the validation to print both complete uris in the message |
could be eclipse/xtext-core#528 |
Hello,
As a beginner with Xtext LSP integration, i'm currently to play with this example, and I'm hitting some strange issues.
For instance, after lauching the demo in vscode, and editing a file named b.mydsl with this content:
`package foo {
entity Bar {
op test() : String {
""
}
}
}`
i'm getting this error message:
"The type Bar is already defined in b.mydsl."
Here is a trace I'm getting from LSP protocol if I'm not wrong.
[Trace - 15:43:47] Received notification 'textDocument/publishDiagnostics'. Params: { "uri": "file:///xxxxxx/git/xbase-languageserver-example/demo/src/b.mydsl", "diagnostics": [ { "range": { "start": { "line": 2, "character": 11 }, "end": { "line": 2, "character": 14 } }, "severity": 1, "code": "org.eclipse.xtext.xbase.validation.IssueCodes.duplicate_type", "message": "The type Bar is already defined in b.mydsl." } ] }
Do you have any clue that can help me?
The text was updated successfully, but these errors were encountered: