Skip to content

Add cnd.lsp module to the friends list of the nativeexecution module#9420

Draft
piotrhoppe wants to merge 1 commit into
apache:masterfrom
piotrhoppe:cnd-lsp-fiend-to-nativeexecution
Draft

Add cnd.lsp module to the friends list of the nativeexecution module#9420
piotrhoppe wants to merge 1 commit into
apache:masterfrom
piotrhoppe:cnd-lsp-fiend-to-nativeexecution

Conversation

@piotrhoppe
Copy link
Copy Markdown

@piotrhoppe piotrhoppe commented May 31, 2026

The cnd.lsp module uses the nativeexecution API but is missing from its friends list. This PR adds cnd.lsp to the allowed friends of the nativeexecution module.

This is part of the ongoing work on standalone netbeans cnd plugin.

@jtulach please review.

Copy link
Copy Markdown
Contributor

@jtulach jtulach left a comment

Choose a reason for hiding this comment

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

Opinion

  • the list of "friend` modules" here is too long already
  • hence turn it into simple <public-packages> - just like
    <public-packages>
    <package>org.openide.execution</package>
    </public-packages>
  • this is an just opinion
    • if others believe the "friend madness" shall continue
    • I can approve the extra entry
    • even I consider the list of more than hundred friends ridiculous

Request

Advice

@mbien
Copy link
Copy Markdown
Member

mbien commented Jun 1, 2026

you have to increase version base:

example:

netbeans/platform/openide.execution/manifest.mf

Line 3 in ed40dbb
OpenIDE-Module-Specification-Version: 9.36

@jtulach the manifests are bumped once per release e.g #9344, but it also wouldn't hurt, outside of creating gaps in the released versions.

@neilcsmith-net
Copy link
Copy Markdown
Member

the manifests are bumped once per release e.g #9344, but it also wouldn't hurt ...

I was about to comment that it would be better to leave that out. It does occasionally cause issues with reverts, and it's not really necessary given the version bumps and lack of a development UC. Other changes including removing friends usage, changing the dependency version and adding the API change info all agreed with.

@piotrhoppe piotrhoppe force-pushed the cnd-lsp-fiend-to-nativeexecution branch from 94cf34c to caa5f88 Compare June 1, 2026 22:12
@piotrhoppe piotrhoppe force-pushed the cnd-lsp-fiend-to-nativeexecution branch from caa5f88 to 9be5168 Compare June 1, 2026 22:17
@jtulach
Copy link
Copy Markdown
Contributor

jtulach commented Jun 3, 2026

@jtulach the manifests are bumped once per release e.g #9344, but it also wouldn't hurt, outside of creating gaps in the released versions.

not really necessary given the version bumps and lack of a development UC

I do not think it is enough to wait for next release of NetBeans. The org.netbeans.modules.cnd.lsp usage needs to update its dependency on org.netbeans.modules.dlight.nativeexecution. To update such dependency now, there must be an increase of the version, because otherwise there is no way to track the API change of changing the list of friends (or rather going fully public). To let org.netbeans.modules.cnd.lsp express I need the nativeexecution module in a version that I am allowed use we need to increment the version and the org.netbeans.modules.cnd.lsp needs to depend on that incremented version. This is basically the same as adding a method into some module API - it also needs a version increment.

@mbien
Copy link
Copy Markdown
Member

mbien commented Jun 3, 2026

I do not think it is enough to wait for next release of NetBeans.

the versions were already incremented for the next release.

The org.netbeans.modules.cnd.lsp usage needs to update its dependency on org.netbeans.modules.dlight.nativeexecution.

the consumer modules can update their dependency requirement to the new version, since that version is already bumped in master when compared to the current release (NB30). Unless I am missing something here or we are talking about different version attributes. Although a version bump doesn't hurt (other than creating unreleased version gaps) it doesn't really add anything either.

If nobody is making use of the global bumps anymore we could discuss to stop doing those, since that would be one giant commit less per release with all the communication to avoid potential conflicts etc.

@neilcsmith-net
Copy link
Copy Markdown
Member

the versions were already incremented for the next release.

👍 as I said, not really necessary. We can and should track all version changes based on the version increments made directly after branch.

Although a version bump doesn't hurt ...

Mostly they don't, but we have occasionally had some cross-branch fun with reverts and trying to stop versions going backwards! 😄

If nobody is making use of the global bumps anymore we could discuss to stop doing those ...

Personally, I don't think that's a good idea. Better to have the occasional double increment than miss something, and it makes the delivery branch strategy easier to work with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants