Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Kotlin LSP Server. #6384

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jkost
Copy link

@jkost jkost commented Aug 29, 2023

Fixed Issue NETBEANS-6098; added initial support for the Kotlin programming language using the LSP protocol: syntax highlighting, code completion, braces matching etc.


^Add meaningful description above

By opening a pull request you confirm that, unless explicitly stated otherwise, the changes -

  • are all your own work, and you have the right to contribute them.
  • are contributed solely under the terms and conditions of the Apache License 2.0 (see section 5 of the license for more information).

Please make sure (eg. git log) that all commits have a valid name and email address for you in the Author field.

If you're a first time contributor, see the Contributing guidelines for more information.

If you're a committer, please label the PR before pressing "Create pull request" so that the right test jobs can run.

@mbien mbien added LSP [ci] enable Language Server Protocol tests Kotlin labels Aug 31, 2023
@jlahoda
Copy link
Contributor

jlahoda commented Sep 3, 2023

Makes sense to me.

@matthiasblaesing matthiasblaesing added the do not merge Don't merge this PR, it is not ready or just demonstration purposes. label Sep 5, 2023
@matthiasblaesing
Copy link
Contributor

I set the "do not merge" flag, as the author information is invalid for this: jkost <jkost@users.noreply.github.com>. This looks like the crap github produces when using its utilities. Please check either your local history with a good git tool (git log) or check this:

https://patch-diff.githubusercontent.com/raw/apache/netbeans/pull/6384.patch

You can see, that the author information neither holds your real name, nor a valid e-mail address. At the chance, that I sound like a broken record: I strongly advise not to use the github to do anything, that is more complex, than a simple merge. If you need to rebase or squash, do that locally, I have yet to see a sane commit from githubs systems.

Copy link
Contributor

@vieiro vieiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments below. It's not clear to me how the binary is downloaded. We may want to upload it to the OSWUL server. Let me know if you need help on this.

@matthiasblaesing
Copy link
Contributor

Some comments below. It's not clear to me how the binary is downloaded. We may want to upload it to the OSWUL server. Let me know if you need help on this.

This is not necessary and run contrary to the intention of the extension. The "external" file is used at installation time (aka runtime) to fetch the referenced binary. If I remember correctly, this mechanism was introduced to make it possible to create NBMs bundling libraries, not compatbile with GPLv2/CDDL and distribute these with the IDE/derived products. That also answers the question about the external file. This file has (a) not enough to content to be copyrightable by itself (IANAL!) and (b) I assume @jkost created the file, so he is author and in this case I don't see why it should not be ALv2. It references non-ASF material, but that is also true for the OpenJFX integration.

@vieiro
Copy link
Contributor

vieiro commented Sep 7, 2023

Some comments below. It's not clear to me how the binary is downloaded. We may want to upload it to the OSWUL server. Let me know if you need help on this.

This is not necessary and run contrary to the intention of the extension. The "external" file is used at installation time (aka runtime) to fetch the referenced binary. If I remember correctly, this mechanism was introduced to make it possible to create NBMs bundling libraries, not compatbile with GPLv2/CDDL and distribute these with the IDE/derived products. That also answers the question about the external file. This file has (a) not enough to content to be copyrightable by itself (IANAL!) and (b) I assume @jkost created the file, so he is author and in this case I don't see why it should not be ALv2. It references non-ASF material, but that is also true for the OpenJFX integration.

Ah, pretty cool then. We're good!

@neilcsmith-net
Copy link
Member

I set the "do not merge" flag, as the author information is invalid for this: ...

The other invalid author information is that, while @jkost is on the PMC, the GitHub account is not linked to the ASF membership. Which also links it to validation of identity, ICLA, etc. Please fix this before the PR is merged.

We may want to upload it to the OSWUL server. Let me know if you need help on this.

I realise this is not relevant to this PR. But as a general comment, my understanding was that OSUOSL was a legacy, transitional mechanism. Ideally we'd be, and have been, moving things away from it, not adding more to it.

@hantsy
Copy link

hantsy commented Sep 13, 2023

There is a discussion in IntelliJ Kotlin for NetBeans to donate it to Apache NetBeans project, JetBrains/kotlin-netbeans#137

But no further progress found there.

@jkost
Copy link
Author

jkost commented Sep 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge Don't merge this PR, it is not ready or just demonstration purposes. Kotlin LSP [ci] enable Language Server Protocol tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants