crystal-lang-tools / vscode-crystal-lang

Yet another VSCode extension for Crystal Programming Language
https://marketplace.visualstudio.com/items?itemName=crystal-lang-tools.crystal-lang
MIT License
277 stars 58 forks source link

Hover fails on fresh crystal install #196

Open miniCoded opened 6 months ago

miniCoded commented 6 months ago

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

Additional context I'm still a new to programming halp

kocsis1david commented 5 months ago

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

rohitpaulk commented 5 months ago

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

miniCoded commented 1 month ago

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

nobodywasishere commented 6 days ago

@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.