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

[Emacs Bug?] Error running timer ‘rustowlsp-cursor-call’: (wrong-type-argument stringp nil) #50

Open
bluerosegarden opened this issue Feb 19, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@bluerosegarden
Copy link

Bug Description

After installing rustowl and opening a rust project in (doom) emacs, I encountered the error Error running timer ‘rustowlsp-cursor-call’: (wrong-type-argument stringp nil). Rust-analyzer seems to work fine, however rustowl does not activate.

The minibuffer has the following logs upon loading:

LSP :: rust-analyzer:11993 initialized successfully in folders: (/home/wych/git/projects/delphea-cli-rust)
LSP :: Error from the Language Server: unknown request (Method not Found) [2 times]
Error running timer ‘rustowlsp-cursor-call’: (wrong-type-argument stringp nil)

After toggling debug-on-error, I got the following:
Error running timer ‘rustowlsp-cursor-call’: (error "The connected server(s) does not support method rustowl/cursor. To find out what capabilities support your server use ‘M-x lsp-describe-session’ and expand the capabilities section")

Sure enough, it does not look as though rustowl/cursor is in the Capabilities section. It's slightly too long to get a screenshot of all of them, but I'll attach it at the bottom.

My package! code is below.

 (package! rustowlsp
   :recipe (:host github :repo "cordx56/rustowl"
            :files (:defaults "emacs/*")))

I'm running a pretty unmodified doom emacs installation.

Maybe it's related to #27's issue? I'm unfortunately pretty new to emacs so there's a not insignificant chance that it's somehow my fault.

Also, when trying to find rustowl's version number (it should be the most recent) I ran rustowlc --version and received this error: rustowlc: error while loading shared libraries: librustc_driver-6461196f3e72bd0c.so: cannot open shared object file: No such file or directory

Maybe that has something to do with it? I checked my logs so I'll put in the correct version, but yeah

Thanks in advance, and thank you for making such an incredible tool. This will help me more than you can believe.

Image

Environment

  • OS: Windows 11 (Arch Linux via WSL)
  • rustc Version: 1.84.1
  • rustup Version: 1.27.1
  • RustOwl Version: v0.1.1 *
  • Editor: (doom) Emacs 29.4
@bluerosegarden bluerosegarden added the bug Something isn't working label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant