Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 770142 - Please add emacs lsp-mode and lsp-ui
Summary: Please add emacs lsp-mode and lsp-ui
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Hans de Graaff
URL: https://github.com/emacs-lsp/lsp-mode
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-12 00:08 UTC by Joakim Tjernlund
Modified: 2021-11-09 06:36 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Tjernlund 2021-02-12 00:08:20 UTC
Language Server Protocol support with multiples languages support for Emacs

Client for Language Server Protocol (v3.14). lsp-mode aims to provide IDE-like experience by providing optional integration with the most popular Emacs packages like company, flycheck and projectile.

    Non-blocking asynchronous calls
    Real-time Diagnostics/linting via flycheck (recommended) or flymake when Emacs > 26 (requires flymake>=1.0.5)
    Code completion - company-capf / completion-at-point (note that company-lsp is no longer supported).
    Hovers - using lsp-ui
    Code actions - via lsp-execute-code-action, modeline (recommended) or lsp-ui sideline.
    Code outline - using builtin imenu or helm-imenu
    Code navigation - using builtin xref, lsp-treemacs tree views or lsp-ui peek functions.
    Code lens
    Symbol highlights
    Formatting
    Project errors on modeline
    Debugger - dap-mode
    Breadcrumb on headerline
    Helm integration - helm-lsp
    Ivy integration - lsp-ivy
    Treemacs integration - lsp-treemacs
    Semantic tokens as defined by LSP 3.16 (compatible language servers include recent development builds of clangd and rust-analyzer)
    which-key integration for better discovery
    iedit
Comment 1 Joakim Tjernlund 2021-02-19 16:42:35 UTC
Perhaps gnu-emacs@gentoo.org is interested to maintain this pkg?
Comment 2 Ulrich Müller gentoo-dev 2021-02-20 10:56:18 UTC
This would best be maintained by someone who actively uses it.
Comment 3 hkBst 2021-11-02 10:19:38 UTC
Language server protocol seems to be the new standard when it comes to programming language development support. Not having this support in the main tree for emacs means that for software development users will (have to) turn to alternatives like vscode.
Comment 4 Hans de Graaff gentoo-dev Security 2021-11-03 16:04:37 UTC
I have a copy in my graaff overlay. I can add that to the main tree.
Comment 5 Joakim Tjernlund 2021-11-03 17:57:21 UTC
(In reply to Hans de Graaff from comment #4)
> I have a copy in my graaff overlay. I can add that to the main tree.

Thanks, will you add lsp-ui at the same time ?
Comment 6 Hans de Graaff gentoo-dev Security 2021-11-04 05:54:01 UTC
(In reply to Joakim Tjernlund from comment #5)
> (In reply to Hans de Graaff from comment #4)
> > I have a copy in my graaff overlay. I can add that to the main tree.
> 
> Thanks, will you add lsp-ui at the same time ?

Not at the same time :-)

It looks like that depends on flycheck without advertising the dependency, and for flycheck I have a git snapshot in my overlay and there hasn't been a release in several years, so I want to consider how to handle that. Input welcome.
Comment 7 Larry the Git Cow gentoo-dev 2021-11-04 05:54:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21bd92420253959af1727a12540709b6d5bf05e8

commit 21bd92420253959af1727a12540709b6d5bf05e8
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2021-11-04 05:42:51 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2021-11-04 05:54:21 +0000

    app-emacs/lsp-mode: import of 8.0.0
    
    Closes: https://bugs.gentoo.org/770142
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 app-emacs/lsp-mode/Manifest                   |  1 +
 app-emacs/lsp-mode/files/50lsp-mode-gentoo.el | 35 ++++++++++++++++++++++++
 app-emacs/lsp-mode/lsp-mode-8.0.0.ebuild      | 39 +++++++++++++++++++++++++++
 app-emacs/lsp-mode/metadata.xml               | 12 +++++++++
 4 files changed, 87 insertions(+)
Comment 8 Joakim Tjernlund 2021-11-08 12:27:42 UTC
(In reply to Hans de Graaff from comment #6)
> (In reply to Joakim Tjernlund from comment #5)
> > (In reply to Hans de Graaff from comment #4)
> > > I have a copy in my graaff overlay. I can add that to the main tree.
> > 
> > Thanks, will you add lsp-ui at the same time ?
> 
> Not at the same time :-)
> 
> It looks like that depends on flycheck without advertising the dependency,
> and for flycheck I have a git snapshot in my overlay and there hasn't been a
> release in several years, so I want to consider how to handle that. Input
> welcome.

I see a app-emacs/flycheck-32_p20210825 already in main tree. Will that work?
Comment 9 Hans de Graaff gentoo-dev Security 2021-11-09 06:36:07 UTC
(In reply to Joakim Tjernlund from comment #8)

> I see a app-emacs/flycheck-32_p20210825 already in main tree. Will that work?

Ah, I completely missed that someone else added that. Thanks!
Comment 10 Larry the Git Cow gentoo-dev 2021-11-09 06:36:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43f8b1105253627231a299638712be3d3c58f723

commit 43f8b1105253627231a299638712be3d3c58f723
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2021-11-09 06:36:30 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2021-11-09 06:36:38 +0000

    app-emacs/lsp-ui: import of 8.0.0
    
    Closes: https://bugs.gentoo.org/770142
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 app-emacs/lsp-ui/Manifest                 |  1 +
 app-emacs/lsp-ui/files/50lsp-ui-gentoo.el |  5 +++++
 app-emacs/lsp-ui/lsp-ui-8.0.0.ebuild      | 32 +++++++++++++++++++++++++++++++
 app-emacs/lsp-ui/metadata.xml             | 12 ++++++++++++
 4 files changed, 50 insertions(+)