vscode-crystal-lang
vscode-crystal-lang copied to clipboard
Hover fails on fresh crystal install
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
- Create a new *.cr file with valid code in it
- Hover over any part of the code
- Read the output of the extension
Expected behavior Information about the statement should appear on the screen next to the cursor.
Piece of Code
Screenshots
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.
@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.