Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hover fails on fresh crystal install #196

Open
miniCoded opened this issue Apr 1, 2024 · 4 comments
Open

Hover fails on fresh crystal install #196

miniCoded opened this issue Apr 1, 2024 · 4 comments
Assignees
Labels

Comments

@miniCoded
Copy link

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 miniCoded added the bug label Apr 1, 2024
@miniCoded miniCoded changed the title Hover fails on fresh Windows install Hover fails on fresh crystal install on Windows Apr 1, 2024
@kocsis1david
Copy link

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

@rohitpaulk
Copy link

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
Copy link
Author

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

@miniCoded miniCoded changed the title Hover fails on fresh crystal install on Windows Hover fails on fresh crystal install Aug 31, 2024
@nobodywasishere
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants