Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 20 2020 13:23
    Anton-Latukha closed #88
  • Dec 20 2020 13:23
    Anton-Latukha commented #88
  • Dec 20 2020 11:45

    github-actions[bot] on gh-pages

    deploy: d2d346c397c507b60dd3cd4… (compare)

  • Dec 20 2020 11:43

    yyoncho on master

    Pass default folder to remove a… (compare)

  • Dec 20 2020 11:22

    github-actions[bot] on gh-pages

    deploy: 3e33e4b5bf34ad09d20afeb… (compare)

  • Dec 20 2020 11:21

    yyoncho on master

    Make lsp-headerline-arrow public (compare)

  • Dec 20 2020 08:44
    sunlin7 commented #2424
  • Dec 20 2020 07:55
    yyoncho synchronize #2411
  • Dec 20 2020 07:54

    yyoncho on master

    [lsp-lua]: Fix connection comma… (compare)

  • Dec 20 2020 07:54
    yyoncho closed #2424
  • Dec 20 2020 07:54
    yyoncho commented #2424
  • Dec 20 2020 07:52
    yyoncho commented #2425
  • Dec 20 2020 07:52

    yyoncho on master

    Fix lsp-vhdl executable PATH se… (compare)

  • Dec 20 2020 07:52
    yyoncho closed #2425
  • Dec 20 2020 04:52
    raxod502 commented #2425
  • Dec 20 2020 04:36
    github-actions[bot] labeled #2425
  • Dec 20 2020 04:36
    raxod502 opened #2425
  • Dec 20 2020 04:34
  • Dec 20 2020 03:48
    jcs090218 labeled #2423
  • Dec 20 2020 03:46
    github-actions[bot] labeled #2424
avalos 🇲🇽
@avalos:cybre.space
[m]
gopls is latest version.
I'm working on a valid Go module.
The folder is set correctly to the root of the module.
avalos 🇲🇽
@avalos:cybre.space
[m]
(setenv "GOPATH" "~/go")                                                                                                            
      (setenv "PATH" (concat                                                                                                              
                      "/usr/local/bin" ":"                                                                                                
                      (getenv "PATH")))                                                                                                   
      (setq exec-path (append exec-path                                                                                                   
                              '("/usr/local/bin"                                                                                          
                                "/usr/bin"                                                                                                
                                "~/flutter/bin"                                                                                           
                                "~/.cargo/bin"                                                                                            
                                "~/Flutter/bin"                                                                                           
                                "~/go/bin")))
avalos 🇲🇽
@avalos:cybre.space
[m]
I solved the problem by myself. Turns out, using ~ is not supported. I actually have to specify the home directory in the GOPATH.
Iaroslav Babanin
@YVEF
hi guys. I have some trouble with lsp because lsp mode enables only for root directory files, but not for files in subdirectories. In subdirectory files i receive this error message: "file mode specification error: (cl-no-applicable-method project-root nil)" Do someone know why it can happen?
blackgenius
@blackgenius:matrix.org
[m]
I'm trying to understand why Python LSP (mspyls) is failing to recognize my docstrings. Any pointers would be helpful.
Itamar Turner-Trauring
@itamarst
Hi, anyone know how to do the equivalent of https://veykril.github.io/posts/semantic-unsafe/ with lsp-mode?
Basically trying to set a custom face for a custom semantic token
I've tried:
  (setq lsp-enable-semantic-highlighting 't)
  (setq lsp-semantic-tokens-enable 't)
  (add-to-list 'lsp-semantic-token-faces '("unsafe" . rust-unsafe-face))
but while that does enable semantic highlighting, it doesn't do anything for the unsafe token annotation
Deanseo
@Deanseo

This may not be exactly lsp-mode's issue but I'm hoping to gain some hints how to trouble shoot this at least.

I am facing an annoying issue where clangd 'thinks' this C++ project has compiler errors, because the compiler is GCC.
But I can build the project all fine.

I am building a C++ project with a custom GCC, which was built with gcc4-compatiblebecause there are some 3rd parties libs which don't support GCC ABI5 yet but we want to use C++17 and -fconcept.

Now when I run helm-lsp-diagnostics I get a lot of compiler errors, including one saying something like '-fconcept is unknown'.
I could discard -fconceptin compile_commands.json but the problem is there are just so many other compiler errors - which isn't true!

I suspect this breaks useful functions like lsp-find-definition. (lsp-find-definition 'kinda' works but incompletely.)

I understand that clangd uses the parser baked in clang but is there anything I can do about it?
I still didn't let my hope to fix run, because some other functions like lsp-ui-find-workspace-symbol work! (That means we got all the symbols ready at least, right?)

Ivan Yonchovski
@yyoncho
@Deanseo generate compile_commands.json
Deanseo
@Deanseo
@yyoncho I did. compile_commands.json indeed kicked in and lsp-mode picked it up in the root path of the project. I believe that's why it picks up all the symbols e.g. in lsp-ui-find-workspace-symbol. :(
Ivan Yonchovski
@yyoncho
@Deanseo ah... so I would say that the issue is very clangd specific. You may ask in their discord
@Deanseo but just replace workspace symbols with "workspace/symbols", and definition with "textDocument/definition" in order to make the issue clear
My guess is that the compile_commands that you are generating is not the right one
Deanseo
@Deanseo
Let me try that one. Thanks for the feedback!
trevdev
@trevdev:matrix.org
[m]
Anyone else here using Guix Home who is unable to utilize the PLISTS optimization?
It was working for myself prior to attempting to use Guix for all of my emacs packaging needs.
Ivan Yonchovski
@yyoncho
@trevdev:matrix.org as long as you are able to set env variables you should be able to use it
1 reply
trevdev
@trevdev:matrix.org
[m]
I turn that ENV off and it works
Ivan Yonchovski
@yyoncho
@trevdev:matrix.org you should make that value consistent during compilation and during usage
4 replies
vanniuner
@vanniuner
when i open a java file, an error show me :file-missing Doing vfork No such file or directory and the lsp mode do not work . it's happen on the upgraded today. anybody know how to resolve it ?
Evgeny Kurnevsky
@kurnevsky
Should https://emacs-tree-sitter.github.io/ be mentioned in the performance section of docs? :)
1 reply
Domingo gomez
@GomezDominus_twitter
Sorry, a newbie question. I am in emacs 28.1 and when I try to use this python code: import numpy as np; np.random
I get the following error:
Debugger entered--Lisp error: (error "AttributeError: ’NoneType’ object has no attribute...")
  signal(error ("AttributeError: ’NoneType’ object has no attribute..."))
  error("AttributeError: 'NoneType' object has no attribute...")
  lsp-request-while-no-input("textDocument/completion" (:textDocument (:uri "file:///tmp/ejemplo.py") :position (:line 2 :character 3) :context #<hash-table equal 2/65 0x52d109c3>))
  #f(compiled-function () #<bytecode 0x85b1d3c0df696f6>)()
  #f(compiled-function (probe pred action) #<bytecode -0x1ea1b19f39051259>)("" nil t)
  all-completions("" #f(compiled-function (probe pred action) #<bytecode -0x1ea1b19f39051259>) nil)
  completion-pcm--all-completions("" (point) #f(compiled-function (probe pred action) #<bytecode -0x1ea1b19f39051259>) nil)
  completion-basic-all-completions("" #f(compiled-function (probe pred action) #<bytecode -0x1ea1b19f39051259>) nil 0)
  lsp-completion-passthrough-all-completions("" #f(compiled-function (probe pred action) #<bytecode -0x1ea1b19f39051259>) nil 0)
  #f(compiled-function (style) #<bytecode 0x11b0ce18db432bbb>)(lsp-passthrough)
  completion--some(#f(compiled-function (style) #<bytecode 0x11b0ce18db432bbb>) (lsp-passthrough basic partial-completion emacs22))
  completion--nth-completion(2 "" #f(compiled-function (probe pred action) #<bytecode -0x1ea1b19f39051259>) nil 0 (metadata (category . lsp-capf) (display-sort-function . identity) (cycle-sort-function . identity)))
  completion-all-completions("" #f(compiled-function (probe pred action) #<bytecode -0x1ea1b19f39051259>) nil 0 (metadata (category . lsp-capf) (display-sort-function . identity) (cycle-sort-function . identity)))
  company-capf--candidates("")
  company-capf(candidates "")
  apply(company-capf (candidates ""))
  company-call-backend-raw(candidates "")
  company--fetch-candidates("")
  company-calculate-candidates("" nil)
  company--begin-new()
  company--perform()
  company-auto-begin()
  company-idle-begin(#<buffer ejemplo.py> #<window 3 on ejemplo.py> 255 24)
  apply(company-idle-begin (#<buffer ejemplo.py> #<window 3 on ejemplo.py> 255 24))
  timer-event-handler([t 25381 63380 663928 nil company-idle-begin (#<buffer ejemplo.py> #<window 3 on ejemplo.py> 255 24) nil 0 nil])
p00f
@chda:matrix.org
[m]
hello
i use evil and evil-collection, how do i make K do lsp-ui-doc-glance instead of opening woman when lsp mode is enabled?
Jeff-avatar
@Jeff-avatar
Hello guys, I am using c++ layer and clangd as the backend to accomplish definition jumping. One issue I noticed is that clangd cannot find from child class the function or variable definitions defined in the most basic parent class, but if the function or variable definitions are defined in the direct parent class, then clangd works well. Any ideas?
Ivan Yonchovski
@yyoncho
@Jeff-avatar sounds like clangd limitation. YOu may ask in their discord
Jeff-avatar
@Jeff-avatar
@yyoncho Thank you. I will ask clangd people. Thanks.
udalrich
@udalrich

Does lsp-java work with Cask and pallet as a package manager? I've been stripping things away, which changes the error that I get. I'm currently getting

LSP :: There are no language servers supporting current mode java-mode registered with `lsp-mode'.

I thought lsp-java was supposed to install the server if needed.

udalrich
@udalrich

My Cask file is

(source gnu)
(source melpa)

(depends-on "lsp-java")
(depends-on "lsp-mode")
(depends-on "lsp-ui")

although there are a bunch of files already installed

Ivan Yonchovski
@yyoncho
@udalrich this indicates that lsp-mode was unable to require lsp-java
check if having (require 'lsp-java) works
Justin Schell
@schellj
Running into this when trying to run dap-mode in a golang test file with dap-dlv-go: Symbol’s value as variable is void: treemacs-\’lsp-treemacs-generic-root-extension-instance. Haven't been able to turn anything up via Googling. Any ideas?
Ivan Yonchovski
@yyoncho
@udalrich reinstall lsp-treemacs, it was just fixed
Ben Standefer
@aguynamedben
how can I get docs to show for whatever the current auto-completion I have selected is?
image.png
vs
image.png
(2nd screenshot is VS Code + rust-analyzer)
Ivan Yonchovski
@yyoncho
@aguynamedben use C-h or use company-quickhelp package
Justin Schell
@schellj
Hi, I'm still having issues trying to get dap-mode to work properly with golang, either with dap-dlv-go or dap-go. I'm no longer receiving any errors (like the one that I reported on Oct 1, thanks for helping with that), but when I run a debug session, like Go Dlv Launch File Configuration form a golang test file, the Emacs file buffer doesn't update to follow the session. I.e., if I have a breakpoint set and start the debug session, the *Launch file server log*, *Launch file out*, Locals, and Sessions windows pop up, but the file buffer doesn't update to the location of the breakpoint and the Locals buffer doesn't populate. The debugger seems to be running; if I press c to continue, the test output is printed in the *Launch file server log*. I have dap-print-io enabled, but I don't see anything obviously amiss. I don't really know how to try to debug whatever the issue is.
Justin Schell
@schellj
I can repro the above starting from lsp-start-plain.el and installing go-mode, so the issue doesn't seem to be particular to my usual config.
I used to be able to use dap-go just fine; not sure what exactly changed.