You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "jtulach (via GitHub)" <gi...@apache.org> on 2026/06/05 05:56:38 UTC

[PR] Code completion and navigation for Kotlin [netbeans]

jtulach opened a new pull request, #9428:
URL: https://github.com/apache/netbeans/pull/9428

   - I am starting to work on a project with huge Kotlin code base 
   - I'd like to use my IDE to help me navigate and modify that code base
   - Hence I am suggesting extension of existing NetBeans Kotlin support (as provided by #1228)
   - by adding a simple way to download and configure Kotlin LSP
   - with that I am able to navigate and see code completion in `.kt` files of my project


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Code completion and navigation for Kotlin [netbeans]

Posted by "Saljack (via GitHub)" <gi...@apache.org>.
Saljack commented on PR #9428:
URL: https://github.com/apache/netbeans/pull/9428#issuecomment-4659088652

   It is off-topic, but it can help other users to use Kotlin in Netbeans because there is a high chance they will find this PR. Here is how I configured Kotlin in Netbeans:
   <img width="1823" height="1012" alt="image" src="https://github.com/user-attachments/assets/31395641-d13c-414f-a5d0-928886b9ca73" />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Code completion and navigation for Kotlin [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on PR #9428:
URL: https://github.com/apache/netbeans/pull/9428#issuecomment-4649290855

   It might be a concern that that language server is marked deprecated?  Particularly because it also mentions using internal APIs of the compiler.  OTOH, the "official" alternative is currently partly closed source.  It gives me some thought that this might be better distributed as a plugin until this settles down.  Depends how easy it might be to upgrade this to the alternative in future if/when desired?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Code completion and navigation for Kotlin [netbeans]

Posted by "jtulach (via GitHub)" <gi...@apache.org>.
jtulach commented on PR #9428:
URL: https://github.com/apache/netbeans/pull/9428#issuecomment-4628735138

   I am using [kt-mvvm project](http://github.com/dukescript/kt-mvvm) as a test that the new Kotlin LSP support works. Here are the highlights:
   
   <img width="762" height="247" alt="Hint to install LSP Server" src="https://github.com/user-attachments/assets/6c09146a-7a4e-4c38-a890-769b26cb5275" />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Code completion and navigation for Kotlin [netbeans]

Posted by "jtulach (via GitHub)" <gi...@apache.org>.
jtulach commented on PR #9428:
URL: https://github.com/apache/netbeans/pull/9428#issuecomment-4658580339

   > Thanks for working on this. Would love to see Kotlin support included. 
   
   +1
   
   > However, it might be a concern that that language server is marked deprecated? 
   
   I see https://github.com/fwcd/kotlin-language-server page says:
   
   > [!IMPORTANT]
   > There is now an [official language server](https://github.com/Kotlin/kotlin-lsp), so this project can be considered deprecated.
   
   This is what I get for trying to resurrect some old code. I should have done that years ago! However please note the wording. It is not "deprecated"! It may be _"considered deprecated"_. That's a conditional surrender to superiority of Kotlin creator, not declaration of surrender.
   
   > official Kotlin LSP from JetBrains https://github.com/Kotlin/kotlin-lsp . Unfortunately it is still alpha version. I tried to use both in Netbeans but I returned back to fwcd
   
   Another indicator fwcd isn't deprecated/useless. It seems to work fine with me.
   
   > It gives me some thought that this might be better distributed as a plugin until this settles down. 
   > Depends how easy it might be to upgrade this to the alternative in future if/when desired?
   
   Changing the server is just about packaging. Once people decide to use the [official one](https://github.com/Kotlin/kotlin-lsp), it is just a matter of packaging it. That's easy, but apparently neither me or @Saljack want to do that. We'd rather stick with fwcd in this PR.
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Code completion and navigation for Kotlin [netbeans]

Posted by "jtulach (via GitHub)" <gi...@apache.org>.
jtulach commented on PR #9428:
URL: https://github.com/apache/netbeans/pull/9428#issuecomment-4658624640

   There are two parts of this PR:
   - changes in `java/kotlin.editor` to _configure some LSP_ server
   - changes to plugin portal to offer a NetBeans module with _LSP server_ for download
   
   We want the `java/kotlin.editor` part to get in.
   
   The other part (e.g. the `org.netbeans.modules.kotlin.lsp` module) could possibly (as [suggested by Neil](https://github.com/apache/netbeans/pull/9428#issuecomment-4649290855))  could be a real NBM on update center. CCing @jkovalsky. However these parts are connected (via the module name) and maybe it is easier to get them in together - which is what this PR proposes right now.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Code completion and navigation for Kotlin [netbeans]

Posted by "jtulach (via GitHub)" <gi...@apache.org>.
jtulach closed pull request #9428: Code completion and navigation for Kotlin
URL: https://github.com/apache/netbeans/pull/9428


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Code completion and navigation for Kotlin [netbeans]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on PR #9428:
URL: https://github.com/apache/netbeans/pull/9428#issuecomment-4643920245

   I wanted to get a first glance of this, but installation fails with a non descript error. I build from this branch and ran with "ant tryme". I opened an android project with kotlin files. In the kotlin files I see the "Install Kotlin LSP Server" entry. When I choose that I see a progressbar dialog for a short time and then:
   
   <img width="640" height="360" alt="grafik" src="https://github.com/user-attachments/assets/1c8eba43-eb55-4b54-bd2b-86861973ee2f" />
   
   I then looked into the plugin-in dialog. There is no entry for the kotlin LSP Plugin, shouldn't that be visible there?
   
   The URL in the external file worked (I suspected, that download is only possible when authenticated to github, but curl happily starts downloading after telling it to follow redirects).
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Code completion and navigation for Kotlin [netbeans]

Posted by "jtulach (via GitHub)" <gi...@apache.org>.
jtulach commented on PR #9428:
URL: https://github.com/apache/netbeans/pull/9428#issuecomment-4645493483

   Thanks for trying @matthiasblaesing...
   
   > I then looked into the plugin-in dialog. There is no entry for the kotlin LSP Plugin, shouldn't that be visible there?
   > 
   > The URL in the external file worked (I suspected, that download is only possible when authenticated to github, but curl happily starts downloading after telling it to follow redirects).
   
   ... I don't think authentication is needed. Certainly my JVM isn't authenticated to GitHub and I am able to successfully:
   ```bash
   netbeans$ git log | head -n3
   commit 0b08fd4428ae9c4790b3d1a2ae741cfa41ece186
   Author: Jaroslav Tulach <ja...@apidesign.org>
   Date:   Sun Jun 7 15:29:29 2026 +0200
   netbeans$ rm -rf *; git checkout -f .; JAVA_HOME=/jdk-21/ ant build
   netbeans$ JAVA_HOME=/jdk-21 ant tryme
   ```
   and after clicking "Install Kotlin LSP" the download info appears in the log file:
   ```
   [exec] INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: 
   Trying external URL: 
   https://github.com/fwcd/kotlin-language-server/releases/download/1.3.13/server.zip
   ```
   After restart (I'll try to remove the need for a restart), the code completion & co. seems to work.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Code completion and navigation for Kotlin [netbeans]

Posted by "jtulach (via GitHub)" <gi...@apache.org>.
jtulach commented on PR #9428:
URL: https://github.com/apache/netbeans/pull/9428#issuecomment-4648997128

   > I'll try to remove the need for a restart
   
   I am trying, but so far I am getting:
   ```
   org.netbeans.api.autoupdate.OperationException[ENABLE]: could not add Kotlin LSP[org.netbeans.libs.kotlin.lsp/1.3.13] for activation
   	at org.netbeans.modules.autoupdate.ui.ModuleInstallerSupport.installPlugins(ModuleInstallerSupport.java:199)
   	at org.netbeans.modules.autoupdate.ui.GuiPluginInstallerImpl.install(GuiPluginInstallerImpl.java:48)
   	at org.netbeans.api.autoupdate.PluginInstaller.install(PluginInstaller.java:123)
   [catch] at org.netbeans.api.autoupdate.PluginInstaller.install(PluginInstaller.java:70)
   	at org.netbeans.modules.kotlin.editor.lsp.UnconfiguredHint$ConfigureLSPServer.implement(UnconfiguredHint.java:99)
   	at org.netbeans.modules.editor.hints.HintsUI$1.run(HintsUI.java:811)
   	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1370)
   	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
   	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
   	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1981)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Code completion and navigation for Kotlin [netbeans]

Posted by "Saljack (via GitHub)" <gi...@apache.org>.
Saljack commented on PR #9428:
URL: https://github.com/apache/netbeans/pull/9428#issuecomment-4651361372

   FYI fwcd Kotlin LSP is deprecated and there is official Kotlin LSP from JetBrains https://github.com/Kotlin/kotlin-lsp . Unfortunately it is still alpha version. I tried to use both in Netbeans but I returned back to fwcd (mainly because our Kotlin code is pretty old).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Code completion and navigation for Kotlin [netbeans]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on PR #9428:
URL: https://github.com/apache/netbeans/pull/9428#issuecomment-4662158520

   > @Saljack want to do that. We'd rather stick with fwcd in this PR.
   
   I think it is fine to do that now. I just needs to work ;-)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Code completion and navigation for Kotlin [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on PR #9428:
URL: https://github.com/apache/netbeans/pull/9428#issuecomment-4662707117

   Funnily enough, just needing to work is one of my concerns!  Deprecated and useless are not synonymous, but that repo has open issues about not working on recent JDKs, and hasn't had a release in 18 months or an update in 12.
   
   There is an active fork incidentally, at https://codeberg.org/winlogon/ktlsp  Although no releases I can see as yet.  Something else mentioned there is https://github.com/Hessesian/kmp-lsp
   
   So, I'm a little wary of having a hardcoded link to something that might not work across our supported platforms, and also with a GitHub releases link, which while not requiring authentication are also not immutable by default.
   
   I just think the plugin option is easier to push an update for in between IDE releases should we need to.  OTOH, if released by us it would still require a vote, so perhaps not?! :smile: 
   
   Also, while probably out of scope directly in this, it feels like that part of this could possibly be generic.  We could potentially maintain a registry file with links and hashes for LSP server implementations across mime-types that the IDE could query?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Code completion and navigation for Kotlin [netbeans]

Posted by "walker84837 (via GitHub)" <gi...@apache.org>.
walker84837 commented on PR #9428:
URL: https://github.com/apache/netbeans/pull/9428#issuecomment-5336581538

   Hello! I'm the maintainer of `ktlsp`. I have recently released 1.4.0-RC1, which is a major overhaul of the original `fwcd/kotlin-language-server`.
   
   If you're still interested in using it for NetBeans, I would love to have you try the RC. I'm currently looking for testing from different editors and environments before I promote it to a stable 1.4.0 release, so NetBeans would be a quite useful testing platform for me.
   
   The RC release is available at: <https://codeberg.org/winlogon/ktlsp/releases/tag/v1.4.0-rc1>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists