vscode-crystal-lang icon indicating copy to clipboard operation
vscode-crystal-lang copied to clipboard

Hover fails on fresh crystal install

Open miniCoded opened this issue 1 year ago • 4 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

miniCoded avatar Apr 01 '24 21:04 miniCoded

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

kocsis1david avatar Apr 17 '24 02:04 kocsis1david

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

rohitpaulk avatar Apr 27 '24 16:04 rohitpaulk

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

miniCoded avatar Aug 31 '24 06:08 miniCoded

@miniCoded Right above the getting implementations/context... or other log messages it should print the command that it's using for generating the response. Do those work if you manually execute them via the terminal?

@rohitpaulk Did you put the full path to crystalline in the extension settings and restart vscode?

If y'all are still running into issues with this I'm also on the Crystal lang discord if that'd be easier.

nobodywasishere avatar Sep 30 '24 21:09 nobodywasishere