doomemacs / doomemacs/core

Lsp Treemacs find references and implementation weird behaviour

Open
#5,971 2 comments 0 reactions 0 assignees View on GitHub
:tools lsp :ui treemacs help wanted is:bug os:windows status:unknown
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

Testing on Windows and wsl with the same version of emacs - 27. I have encountered a weird error related to lsp and language servers. I am using the Same configuration and same java project with jdtls on both wsl and windows 11. While in wsl the lsp-treemacs-find-references and implementation work in windows 11 i get the error that the language server does not support them. I have rebound references and implementation to use the lsp treemacs refs/impl functions instead of xref. Worth a note that xref seems to work fine. So it could be lsp-treemacs issue but it does not explain why in my wsl ubuntu distro they work okay

### What actually happened?

the connected server does not support textDocument/references same for implementions. Also i noticed that a few ui elements such as SPC c-X which is the lsp treemacs diagnostics / error window does not expand the root node when in windows. While the same expands correctly in wsl

### Describe your attempts to resolve the issue

I have tried multiple versions started from natively compiled emacs v29 then tried v28 and v27. Worth a note that in v27 go to references worked but only that one. In wsl all versions worked as expected.

### Steps to reproduce

1. Download and install v27 - https://alpha.gnu.org/gnu/emacs/pretest/windows/emacs-27/emacs-27.2-x86_64.zip
2. Start doom and open a java project
3. Navigate to a symbols in the project
4. Hit lsp-treemacs-references
5. Message appears

### System Information

https://pastebin.com/h09JVunu

Contributor guide

Open the contributing guide

Research direction

Start with the linked system information and reproduce the five listed steps using Emacs 27 with Doom, jdtls, and the same Java project on Windows and WSL. Compare the language-server capability error for lsp-treemacs references/implementations and the diagnostics root-node expansion; done means identifying the environment-specific cause and confirming both behaviors.

Written by the indexing model from the issue text.

Assessment

Tech stack
emacs, emacs-lisp, java
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.