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
Ivan Yonchovski
@yyoncho
I will test with clean spacemacs and let you know.
But I think that there might be something stale in your config
Sreenivas Venkobarao
@SreenivasVRao
good catch, looks like my packages are a little old. let me see again
Ivan Yonchovski
@yyoncho
update everything, delete the elpa dir
Sreenivas Venkobarao
@SreenivasVRao
rm -rf .emacs.d/elpa ?
Ivan Yonchovski
@yyoncho
yes
and then pull the latest develop.
Sreenivas Venkobarao
@SreenivasVRao
ok this is pretty weird. that had no real effect I think
I see 26.1 26.2 26.3 develop gnupg in elpa/ after deleting the dir and restarting emacs
(those are the directories)
(sorry to bother you so much!)
Ivan Yonchovski
@yyoncho
I dont understand - verify that the directory is deleted?
you may go in ~/.emacs.d and do git clean -xfd
Sreenivas Venkobarao
@SreenivasVRao
okay I tried that. I pulled the latest develop. But I'm still facing the same issue... lsp/python works well with the MSFT LSP server. But ccls breaks if the buffer is modified.
Sreenivas Venkobarao
@SreenivasVRao

okay, well for now clangd works for me. I don't know why ccls is broken, but this is fine!

thanks anyway yyoncho for your help! at some point I'll clean up my spacemacs config and figure out the real issue.

2 replies
Jason Axelson
@axelson
@yyoncho Okay, here's the indent-region-function change stacktrace:
Debugger entered--setting indent-region-function in buffer *Backtrace* to lisp-indent-region: 
  debug--implement-debug-watch(indent-region-function lisp-indent-region set #<buffer *Backtrace*>)
  backtrace-mode()
  debugger-mode()
  debug(error (error "Invalid Request"))
  signal(error ("Invalid Request"))
  error("Invalid Request")
  lsp-request("textDocument/rangeFormatting" (:textDocument (:uri "file:///Users/jason/nob/messages/mix.exs") :options (:tabSize 2 :insertSpaces t) :range (:start (:line 5 :character 0) :end (:line 11 :character 0))))
  lsp-format-region(80 263)
  indent-region(80 263)
  evil-indent(80 263)
  funcall-interactively(evil-indent 80 263)
  call-interactively(evil-indent nil nil)
  command-execute(evil-indent)
Jason Axelson
@axelson
I'm not sure I'm getting the output you want from trace-feature. But I do have this in my *trace-output* buffer, but after restarting emacs I'm not able to reproduce it:
===

nil

can never succeed.
" #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("message" "The guard clause:

_ :: {:ok, _}

===

nil

can never succeed.
" "range" #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("end" #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("character" 0 "line" 78)) "start" #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("character" 0 "line" 78)))) "severity" 2 "source" #38#))))))))
Jason Axelson
@axelson
It kind of seems to me like lsp-feature? is not called when I try to indent a block of code
The trace above is probably from running M-x lsp-fea (as in I never finished actually running the command)
Ratnesh
@ratnesh1729
Is there a way to get emacs-lsp show status - when with cpp projects e.g. clangd is indexing the project ?
Ratnesh
@ratnesh1729
Also another thing I am seeing after I upgraded emacs-lsp in end of Jan (I was using Nov 23 built until that) -> frequent disconnection and increased (heavily) list of false positives flycheck. Not sure what info you would need to debug.
Ivan Yonchovski
@yyoncho
@axelson already fixed by lsp-mode user - emacs-lsp/lsp-mode#1388
@ratnesh1729 I am not sure if the server exposes this information. About the false positives - you should check if they are caused by the server or by the client by inspecting the client/server communication and eventually report it after providing steps to reproduce.
Ivan Yonchovski
@yyoncho
@danielmartin might know better about clangd indexing status.
azzamsa
@azzamsa
anyone using lsp-vetur.el, it run well for months but all the sudden now it has very strange behavior. 1) it delete any line I've added (including adding semicolon and changing single quotes to double). I disabled lsp and vue-mode works well. I think it has to do with the prettier things. all those strange behavior comes when I hit save on my buffer.
It's happened after I update lsp-mode and vue-language-server
Daniel Martín
@danielmartin
@ratnesh1729 If you set lsp-clients-clangd-args to '("-v") and restart clangd, verbose logging will include indexing information in clangd output (switch to the *clangd::stderr* buffer to see it).
azzamsa
@azzamsa

Now I have

and lsp 20200130.943

Daniel Martín
@danielmartin
I plan to extract this information from clangd and show it in a more intuitive way in the mode line, for example.
Ivan Yonchovski
@yyoncho
@azzamsa I don't understand what the problem is watching the gif
@danielmartin we might check also for feature requests in clangd repo for index progress
The 3.15 spec has support for reporting progress.
(Unless I am mistaken)
Daniel Martín
@danielmartin
@yyoncho Yes, it's already implemented https://reviews.llvm.org/D73218 Does lsp-mode support progress notifications?
Ivan Yonchovski
@yyoncho
@danielmartin nope
Also, we have to implement the type hierarchy support for clangd
I give the description on the text in the gif.
This happened after I update vetur and lsp mode yesterday. which now prevent me to work unless i disable lsp.
Ivan Yonchovski
@yyoncho
@azzamsa I see - can you do M-: (setq lsp-print-io t) before reproducing the issue
and then lsp-workspace-show-log and paste the log somewhere
What do you press before the lines disappear?
@azzamsa also shouldn't you use &lt; instead of >?
azzamsa
@azzamsa
I don't press any thing, I use bozhidar super-save module which automatically save my buffer if it's loses focus. So just basically:
  • my buffer got saved -> lsp try to prettify on save (but the bad thing it delete any new item)
next time I will try to show my keypress, forgot that.

also shouldn't you use < instead of >?

i think this is not the issue, it deletes literally anything I add. i've tried

Ivan Yonchovski
@yyoncho
I see. Can you provide the logs as I described and also test without super-save?
azzamsa
@azzamsa
great, will do.
Ivan Yonchovski
@yyoncho
Do you get the same behaviour if you manually save?