crystal-lang-tools/vscode-crystal-lang

Hover fails on fresh crystal install

miniCoded opened this issue · 3 comments

Description
Did a fresh install of crystal (both compiler and extension), but the hover feature does not work on any piece of code. After reading the output, it just says:

[Hover] getting context...
[Hover] error: undefined

How to reproduce

  1. Create a new *.cr file with valid code in it
  2. Hover over any part of the code
  3. Read the output of the extension

Expected behavior
Information about the statement should appear on the screen next to the cursor.

Piece of Code
image

Screenshots
image

Desktop

  • OS: Windows 11
  • Crystal version: Crystal 1.11.2 [fda656c] (2024-01-18)
  • This plugin version: v0.9.3

Additional context
I'm still a new to programming halp

I got the same error on Linux, the solution was to install it based on this: https://github.com/elbywan/crystalline

Same here, installed on macOS and I get this:

[Implementations] getting implementations...
[Implementations] failed: Cannot read properties of undefined (reading 'status')

Installing crystalline didn't help either 🤔 Confirmed that I'm on the latest version of crystal:

Crystal 1.12.1 (2024-04-11)
LLVM: 18.1.4
Default target: aarch64-apple-darwin23.4.0

Recently tested it on Linux, and the same error holds.