netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Support language server of go and rust

Open cnmade opened this issue 3 years ago • 2 comments

Description

Can netbeans support vscode language extension like go and rust? that let netbeans support edit golang and rust lang?

Use case/motivation

use apache/netbeans to edit rust and golang

Related issues

No response

Are you willing to submit a pull request?

No

Code of Conduct

Yes

cnmade avatar Jul 24 '22 06:07 cnmade

In general it can, you can just download the language servers and add them to Options -> Editor -> Language Servers _> Add. Just fill in all the information in the UI and try it out. Also you can have a look into my repo: https://github.com/Chris2011/netbeans-textmate-files to add syntax highlighting for all of the supported languages and then add the missing language server part to those who want to support.

Chris2011 avatar Jul 25 '22 19:07 Chris2011

Tempted to move this to discussions, but there's probably a valid issue here to improve visibility and UI for language registration?

neilcsmith-net avatar Aug 01 '22 08:08 neilcsmith-net

Would be nice to have a tutorial page on how to configure a language server for some popular languages that are supported by Netbeans out of the box - C#, Go, Rust, and so on.

bykka avatar Nov 21 '22 07:11 bykka

ok, i know how to do it ,so close the issue as resolved

ghost avatar Nov 21 '22 07:11 ghost

Would be nice to have a tutorial page on how to configure a language server for some popular languages that are supported by Netbeans out of the box - C#, Go, Rust, and so on.

There is already one: https://blogs.apache.org/netbeans/entry/lsp-client-demo-ba-sh

Chris2011 avatar Nov 21 '22 12:11 Chris2011

Thank you, but that example looks more like proof of concept. I'm talking about something more user-friendly otherwise majority will not use it.

bykka avatar Nov 21 '22 14:11 bykka

Thank you, but that example looks more like proof of concept. I'm talking about something more user-friendly otherwise majority will not use it.

If you want to add a new language support and also the language server programmatically, this is atm the official tutorial how to do it. If you want to add it via the UI, you can go to Tools -> Options -> Editor -> Language Servers and add a new language with language server, icon, filetype, by your own.

Chris2011 avatar Nov 21 '22 16:11 Chris2011