onivim / oni2

Native, lightweight modal code editor
https://v2.onivim.io
MIT License
7.79k stars 276 forks source link

No syntax highlighting or other language server features after installing haskell.haskell extension #3781

Open Minnozz opened 3 years ago

Minnozz commented 3 years ago

I'm running Onivim2 4b5546f8 on NixOS with the Haskell extension (haskell.haskell). When I open a project dir and then a .hs file, there is no syntax highlighting. When I look at the debug output, I can't find a specific error, except for this:

[ERROR] [ 5.673s] Oni2.Extension.ClientStore : Unhandled method: $onExtensionActivationError

How do I debug this issue?

bryphe commented 3 years ago

Hi @Minnozz ,

Looks like the haskell.haskell extension depends on another extension, too: justusadam.language-haskell. That other extension provides syntax highlighting + activation.

With both these installed, I get syntax highlighting + language support for my haskell project: image

bryphe commented 3 years ago

There is a bug here too though - justusadam.haskell-syntax is listed as a required dependency of haskell.haskell - Onivim should download required dependencies if they aren't currently installed.

Minnozz commented 3 years ago

Thanks for the comment; installing the other extension worked!