eclipse-langium / langium

Next-gen language engineering / DSL framework
https://langium.org/
MIT License
754 stars 68 forks source link

hello-world-generation-not-works-anymore #1519

Closed asatklichov closed 6 months ago

asatklichov commented 6 months ago

Hi there,

One month ago, when I tried to create new project, it worked with hello-world example. "person Martin; Hello Martin!; "

Today I tried it again, but lsp-server does not react, it does not show neither highlight, nor suggestions. Project generations steps are successful, but not works as before.

Thanks you in advance, Azat

msujew commented 6 months ago

Hey @asatklichov,

the latest version of generator-langium is 3 months old. We haven't published any update to Langium or the yeoman generator in the past few months.

I just tried out the yeoman generator for myself and can confirm that everything works as expected. The resulting project is functional and the language is highlighted/handled correctly in the editor. Can you provide a reproducible example repo?

asatklichov commented 6 months ago

Hi @msujew thank you for double checking, please try: https://github.com/asatklichov/pl1-with-langium "bahbit-bola" I created yesterday (still hello world), https://github.com/asatklichov/pl-one "pl-one" [basic hello world for pl1] was working 2 weeks ago. which I generated yesterday for PL1 language (not yet changed the grammar - still hello world is there). Last time it worked, it stopped lsp-support now, my guess was I installed IBM pl1 support extension in VSCode (may cause a clash), but later uninstalled it, still same above repo not works

msujew commented 6 months ago

@asatklichov I've just tried https://github.com/asatklichov/pl1-with-langium but everything works as expected for me:

image

Are you actually starting the second VSCode instance via the Run Extension debug launch configuration? Does VSCode register your .pl1 files as belonging to the bahbit-bola language id (should be shown in the lower right corner)?

asatklichov commented 6 months ago

@msujew thank you for confirmation, unfortunately my vscode does not register it, i fixed it, thanks again