onyx-lang / onyx

✨ The compiler and developer toolchain for Onyx
https://onyxlang.io
BSD 2-Clause "Simplified" License
576 stars 22 forks source link

VS Code Extension in Windows (native not WSL) is not showing hover or static compiler errors in edit window or problems window #111

Closed ghost closed 8 months ago

ghost commented 9 months ago

This is NOT related to issue (bug): https://github.com/onyx-lang/onyx/issues/40#issue-2022039802

Description of issue: VS Code Extension in Windows (native not WSL) is not showing hover or static compiler errors in edit window or problems window. I am on Windows 11 Pro 64-bit PC with the VS Code (1.87.0) w/ Onyx extension (0.1.11) installed.

  1. With this line of code when I hover printf, I see this in the Output window but nothing is displayed in the Edit window as normally with a pop up for hover.
    
    use core {printf}

main :: () { printf("Hello, Onyx!\n");
}


`{"jsonrpc":"2.0","id":35,"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///c%3A/Users/name/Documents/GitHub/onyx/hello/main.onyx"},"position":{"line":3,"character":7}}}
Looking up: SymbolLocation { filename = "file:///c%3A/Users/name/Documents/GitHub/onyx/hello/main.onyx", line = 4, column = 8 }`

2. Errors from the compiler also do not appear.
I deleted a `;` and it did not pop up on the editor screen or the Problems window at the bottom of vs code.

Expected Behavior is the hover information pops up in the Editor window and that static compilation errors and warnings display in the editor window AND in the Problems window.
ghost commented 9 months ago

With the updates made on 3/2/2024 to the compiler and the lsp the error reporting is now showing up in the Problem window. THANK YOU ! that was the more important item to save dev time. Hover still does not pop up in the error window and know that is a work in progress. Thanks for the efforts and progress, very much appreciated.