Skip to content

Issue executing example #1

@didos36

Description

@didos36

Hello,

As a beginner with Xtext LSP integration, i'm currently to play with this example, and I'm hitting some strange issues.

  1. 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." } ] }

  1. When i'm editing package name, generation happened after each hitting keyboard, and as a result I'm getting a directory tree corresponding to each intermediate package name, I mean, to enter a package name like 'name1', I will get a folder named as 'n' then 'na' then 'nam','name', and finally 'name1"

Do you have any clue that can help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions