cogent icon indicating copy to clipboard operation
cogent copied to clipboard

Support LSP

Open kkoreilly opened this issue 1 year ago • 7 comments

Supporting LSP (Language Server Protocol) is the main thing needed to make gide a viable replacement for mainstream editors like VS Code.

kkoreilly avatar Dec 26 '23 19:12 kkoreilly

i will read this: https://github.com/golang/tools/tree/master/gopls

ddkwork avatar Feb 14 '24 20:02 ddkwork

Supporting LSP (Language Server Protocol) is the main thing needed to make gide a viable replacement for mainstream editors like VS Code.

The current code editor layout is a bit unsuitable for my small screen, and each file requires dragging horizontal scrollbars to see through the code. I just figured out how to use go vet to batch check the outdated features before go1.22, the performance is okay, I'm going to simulate a goland or fleet layout to test it, when the code problem is detected, it will display the file and line number in the log tab, I don't know how to make the text editor click on the log text when opening the file and jump to the line number displayed in the log, then I'll ask you. For GoPlus, I'm still studying its usage, my idea is to use GoPlus to make the code editor work like Goland first, and then expand GoPlus's LSP interface to adapt to other languages, such as cmd bat rust json and other languages or scripts for LSP work, because the research on the versatility of the LSP interface suitable for Go should be as simple as all languages.

ddkwork avatar Feb 23 '24 01:02 ddkwork

https://github.com/ddkwork/golibrary/blob/master/stream%2Fcmd%2Fchecker.go#L9-L28

ddkwork avatar Feb 23 '24 01:02 ddkwork

To make the layout better for your small screen, you should run Splits > Set View > Small (you can type ssvs in the search bar to get there). I do not think it makes sense to do a gopls specific implementation; it should be much easier and more general-purpose to do an LSP implementation that will work for all languages. If you want to look more into LSP and start working on developing code to interface with it in Go, that would be awesome. Otherwise, I will work on it at some point, but I will focus on finishing v1 of core and releasing it first.

kkoreilly avatar Feb 23 '24 01:02 kkoreilly

I will try, thanks

---Original--- From: @.> Date: Fri, Feb 23, 2024 09:55 AM To: @.>; Cc: @.@.>; Subject: Re: [cogentcore/cogent] Support LSP (Issue #305)

To make the layout better for your small screen, you should run Splits > Set View > Small (you can type ssvs in the search bar to get there). I do not think it makes sense to do a gopls specific implementation; it should be much easier and more general-purpose to do an LSP implementation that will work for all languages. If you want to look more into LSP and start working on developing code to interface with it in Go, that would be awesome. Otherwise, I will work on it at some point, but I will focus on finishing v1 of core and releasing it first.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

ddkwork avatar Feb 23 '24 01:02 ddkwork

I do not found that run splits, could you please go back to my computer? Thanks

---Original--- From: @.> Date: Fri, Feb 23, 2024 09:55 AM To: @.>; Cc: @.@.>; Subject: Re: [cogentcore/cogent] Support LSP (Issue #305)

To make the layout better for your small screen, you should run Splits > Set View > Small (you can type ssvs in the search bar to get there). I do not think it makes sense to do a gopls specific implementation; it should be much easier and more general-purpose to do an LSP implementation that will work for all languages. If you want to look more into LSP and start working on developing code to interface with it in Go, that would be awesome. Otherwise, I will work on it at some point, but I will focus on finishing v1 of core and releasing it first.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

ddkwork avatar Feb 23 '24 02:02 ddkwork

Oh no, founded

---Original--- From: @.> Date: Fri, Feb 23, 2024 09:55 AM To: @.>; Cc: @.@.>; Subject: Re: [cogentcore/cogent] Support LSP (Issue #305)

To make the layout better for your small screen, you should run Splits > Set View > Small (you can type ssvs in the search bar to get there). I do not think it makes sense to do a gopls specific implementation; it should be much easier and more general-purpose to do an LSP implementation that will work for all languages. If you want to look more into LSP and start working on developing code to interface with it in Go, that would be awesome. Otherwise, I will work on it at some point, but I will focus on finishing v1 of core and releasing it first.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

ddkwork avatar Feb 23 '24 02:02 ddkwork