[jira] [Commented] (NETBEANS-6054) PHP Template missing Namespace option

2021-09-24 Thread Kevin Andrews (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-6054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17419671#comment-17419671
 ] 

Kevin Andrews commented on NETBEANS-6054:
-

Tested on 12.4 and 12.5 (12.5 missing from selection version for reporting 
issues).

> PHP Template missing Namespace option
> -
>
> Key: NETBEANS-6054
> URL: https://issues.apache.org/jira/browse/NETBEANS-6054
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Code, platform - Templates
>Affects Versions: 12.4
>Reporter: Kevin Andrews
>Priority: Minor
> Attachments: Screenshot from 2021-09-24 10-01-01.png, Screenshot from 
> 2021-09-24 10-01-40.png, Screenshot from 2021-09-24 10-02-43.png, Screenshot 
> from 2021-09-24 10-02-56.png, Screenshot from 2021-09-24 10-03-34.png, 
> Screenshot from 2021-09-24 10-04-15.png, Screenshot from 2021-09-24 
> 10-05-00.png, Screenshot from 2021-09-24 10-05-18.png, Screenshot from 
> 2021-09-24 10-05-27.png
>
>
> As a 
> PHP Developer
> I want to
> Create additional PHP Class template files which still allow entering 
> namespace in the file creation wizard after moving them to sub-directories 
> and restarting the IDE
> So that
> Namespaces are automatically entered into the file created.
> Issue Details:
> Creating a new template by going to:
> Tools -> Templates
> Navigating to the PHP folder
> Duplicate "PHP Class"
> Creating a new file from this template correctly fills out and asks about 
> Namespace (context is obtained when using the tree right click -> new).
> After restarting NetBeans it seems to lose this ability and no longer 
> displays the namespace box when creating a new file from this duplicated 
> template.
> Also moving the template into a sub folder loses this context as well.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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



[jira] [Created] (NETBEANS-6054) PHP Template missing Namespace option

2021-09-24 Thread Kevin Andrews (Jira)
Kevin Andrews created NETBEANS-6054:
---

 Summary: PHP Template missing Namespace option
 Key: NETBEANS-6054
 URL: https://issues.apache.org/jira/browse/NETBEANS-6054
 Project: NetBeans
  Issue Type: Bug
  Components: php - Code, platform - Templates
Affects Versions: 12.4
Reporter: Kevin Andrews
 Attachments: Screenshot from 2021-09-24 10-01-01.png, Screenshot from 
2021-09-24 10-01-40.png, Screenshot from 2021-09-24 10-02-43.png, Screenshot 
from 2021-09-24 10-02-56.png, Screenshot from 2021-09-24 10-03-34.png, 
Screenshot from 2021-09-24 10-04-15.png, Screenshot from 2021-09-24 
10-05-00.png, Screenshot from 2021-09-24 10-05-18.png, Screenshot from 
2021-09-24 10-05-27.png

As a 
PHP Developer

I want to

Create additional PHP Class template files which still allow entering namespace 
in the file creation wizard after moving them to sub-directories and restarting 
the IDE

So that

Namespaces are automatically entered into the file created.


Issue Details:

Creating a new template by going to:

Tools -> Templates

Navigating to the PHP folder

Duplicate "PHP Class"


Creating a new file from this template correctly fills out and asks about 
Namespace (context is obtained when using the tree right click -> new).

After restarting NetBeans it seems to lose this ability and no longer displays 
the namespace box when creating a new file from this duplicated template.

Also moving the template into a sub folder loses this context as well.




 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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



[jira] [Created] (NETBEANS-5903) Git Default Branch on "git init"

2021-08-06 Thread Kevin Andrews (Jira)
Kevin Andrews created NETBEANS-5903:
---

 Summary: Git Default Branch on "git init"
 Key: NETBEANS-5903
 URL: https://issues.apache.org/jira/browse/NETBEANS-5903
 Project: NetBeans
  Issue Type: New Feature
  Components: versioncontrol - Git
Reporter: Kevin Andrews
 Attachments: image-2021-08-06-16-10-35-431.png

Would like the ability to set the default branch when init is used inside 
netbeans, doesn't appear to respect system installed git defaults

!image-2021-08-06-16-10-35-431.png!

A new input box with the ability to set the default branch would be awesome.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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



[jira] [Updated] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-05-19 Thread Kevin Andrews (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Andrews updated NETBEANS-3972:

Labels: git gpg  (was: )

> Unable to git commit changes with GPG signing
> -
>
> Key: NETBEANS-3972
> URL: https://issues.apache.org/jira/browse/NETBEANS-3972
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Git
>Affects Versions: 12.0, 11.3
>Reporter: Kevin Andrews
>Priority: Minor
>  Labels: git, gpg
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> After setting up git GPG key signing on the repo config:
> {code:java}
> [user] 
> name = XX
> email =  XX
> signingkey = XX
> [commit] 
> gpgsign = true{code}
> I can commit in a terminal and commits are signed, however through NetBeans I 
> get the following error after entering a commit message and clicking commit:
> {code:java}
> 
>   2020-03-06T21:35:15
>   1583530515293
>   21894
>   org.netbeans.ui.focus
>   500
>   138
>   LOG_WINDOW_ACTIVATED
>   LOG_WINDOW_ACTIVATED
>   org.netbeans.core.ui.warmup.Bundle
>   25
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21895
>   org.netbeans.ui.actions
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   javax.swing.JMenuItem[Commit...]
>   javax.swing.JMenuItem
>   
> org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
>   org.netbeans.modules.versioning.util.SystemActionBridge
>   Commit...
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21896
>   org.netbeans.ui.SystemActionBridge
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   
>   
>   
> org.netbeans.modules.git.ui.commit.CommitAction[Commit...]
>   org.netbeans.modules.git.ui.commit.CommitAction
>   Commit...
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21898
>   org.netbeans.ui.vcs
>   800
>   138
>   USG_VCS_CMD
>   USG_VCS_CMD
>   org.netbeans.modules.versioning.util.Bundle
>   GIT
>   11
>   0
>   commit
>   INTERNAL
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21899
>   org.netbeans.modules.git
>   800
>   138
>   org.eclipse.jgit.api.errors.JGitInternalException: missing 
> credentials provider
>   
> org.netbeans.libs.git.GitException: 
> org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
> provider
> 
>   org.netbeans.libs.git.jgit.commands.CommitCommand
>   run
>   153
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   57
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   java.security.AccessController
>   doPrivileged
>   jrt:/java.base/java/security/AccessController.class
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand
>   execute
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.GitClient
>   commit
>   480
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   297
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   293
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1
>   call
>   933
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1
>   call
>   956
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.FilesystemInterceptor
>   runWithoutExternalEvents
>   473
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.Git
>   runWithoutExternalEvents
>   259
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethodIntern
>   966
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethod
>   893
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   access$300
>   869
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient
>   commit
>   293
>   

[jira] [Commented] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-04-23 Thread Kevin Andrews (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17091021#comment-17091021
 ] 

Kevin Andrews commented on NETBEANS-3972:
-

[https://github.com/apache/netbeans/pull/2103]

> Unable to git commit changes with GPG signing
> -
>
> Key: NETBEANS-3972
> URL: https://issues.apache.org/jira/browse/NETBEANS-3972
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Git
>Affects Versions: 12.0, 11.3
>Reporter: Kevin Andrews
>Priority: Minor
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> After setting up git GPG key signing on the repo config:
> {code:java}
> [user] 
> name = XX
> email =  XX
> signingkey = XX
> [commit] 
> gpgsign = true{code}
> I can commit in a terminal and commits are signed, however through NetBeans I 
> get the following error after entering a commit message and clicking commit:
> {code:java}
> 
>   2020-03-06T21:35:15
>   1583530515293
>   21894
>   org.netbeans.ui.focus
>   500
>   138
>   LOG_WINDOW_ACTIVATED
>   LOG_WINDOW_ACTIVATED
>   org.netbeans.core.ui.warmup.Bundle
>   25
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21895
>   org.netbeans.ui.actions
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   javax.swing.JMenuItem[Commit...]
>   javax.swing.JMenuItem
>   
> org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
>   org.netbeans.modules.versioning.util.SystemActionBridge
>   Commit...
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21896
>   org.netbeans.ui.SystemActionBridge
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   
>   
>   
> org.netbeans.modules.git.ui.commit.CommitAction[Commit...]
>   org.netbeans.modules.git.ui.commit.CommitAction
>   Commit...
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21898
>   org.netbeans.ui.vcs
>   800
>   138
>   USG_VCS_CMD
>   USG_VCS_CMD
>   org.netbeans.modules.versioning.util.Bundle
>   GIT
>   11
>   0
>   commit
>   INTERNAL
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21899
>   org.netbeans.modules.git
>   800
>   138
>   org.eclipse.jgit.api.errors.JGitInternalException: missing 
> credentials provider
>   
> org.netbeans.libs.git.GitException: 
> org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
> provider
> 
>   org.netbeans.libs.git.jgit.commands.CommitCommand
>   run
>   153
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   57
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   java.security.AccessController
>   doPrivileged
>   jrt:/java.base/java/security/AccessController.class
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand
>   execute
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.GitClient
>   commit
>   480
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   297
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   293
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1
>   call
>   933
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1
>   call
>   956
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.FilesystemInterceptor
>   runWithoutExternalEvents
>   473
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.Git
>   runWithoutExternalEvents
>   259
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethodIntern
>   966
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethod
>   893
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   access$300
>   869
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient
>   commit
>

[jira] [Commented] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-04-23 Thread Kevin Andrews (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17090997#comment-17090997
 ] 

Kevin Andrews commented on NETBEANS-3972:
-

[~geertjan] I've produced a successful implementation, which I'll pop up in a 
pull request to show the sample.

However personally i'm not happy with the implementation. It involves detecting 
gpgsign = true in the current repo being committed at the GIT UI module level, 
requesting the GPG Private Key Passphrase from the user then providing this to 
the commit() Command via a construct parameter (which changes the signature and 
breaks most of the unit tests (this is the bit i'm not happy with)) the command 
can then provide the gpg private key Passphrase to jgit which then uses 
bouncycastle to perform the gpg key access and signing.

Theoretically what would be a better way to provide this value from 
CommitAction.java through to CommitCommand.java?

The experience is also a little jaring as when selecting git -> commit you then 
get prompted for the GPG Passphrase before entering the commit message, 
selecting files and setting author/committer, so a few improvements needed but 
this is definitely a proof of concept at least :) 

> Unable to git commit changes with GPG signing
> -
>
> Key: NETBEANS-3972
> URL: https://issues.apache.org/jira/browse/NETBEANS-3972
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Git
>Affects Versions: 12.0, 11.3
>Reporter: Kevin Andrews
>Priority: Minor
>
> After setting up git GPG key signing on the repo config:
> {code:java}
> [user] 
> name = XX
> email =  XX
> signingkey = XX
> [commit] 
> gpgsign = true{code}
> I can commit in a terminal and commits are signed, however through NetBeans I 
> get the following error after entering a commit message and clicking commit:
> {code:java}
> 
>   2020-03-06T21:35:15
>   1583530515293
>   21894
>   org.netbeans.ui.focus
>   500
>   138
>   LOG_WINDOW_ACTIVATED
>   LOG_WINDOW_ACTIVATED
>   org.netbeans.core.ui.warmup.Bundle
>   25
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21895
>   org.netbeans.ui.actions
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   javax.swing.JMenuItem[Commit...]
>   javax.swing.JMenuItem
>   
> org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
>   org.netbeans.modules.versioning.util.SystemActionBridge
>   Commit...
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21896
>   org.netbeans.ui.SystemActionBridge
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   
>   
>   
> org.netbeans.modules.git.ui.commit.CommitAction[Commit...]
>   org.netbeans.modules.git.ui.commit.CommitAction
>   Commit...
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21898
>   org.netbeans.ui.vcs
>   800
>   138
>   USG_VCS_CMD
>   USG_VCS_CMD
>   org.netbeans.modules.versioning.util.Bundle
>   GIT
>   11
>   0
>   commit
>   INTERNAL
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21899
>   org.netbeans.modules.git
>   800
>   138
>   org.eclipse.jgit.api.errors.JGitInternalException: missing 
> credentials provider
>   
> org.netbeans.libs.git.GitException: 
> org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
> provider
> 
>   org.netbeans.libs.git.jgit.commands.CommitCommand
>   run
>   153
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   57
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   java.security.AccessController
>   doPrivileged
>   jrt:/java.base/java/security/AccessController.class
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand
>   execute
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.GitClient
>   commit
>   480
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   297
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   293
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1
>   call
>   933
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1
>   call
>   956
>   

[jira] [Commented] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-04-22 Thread Kevin Andrews (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17089995#comment-17089995
 ] 

Kevin Andrews commented on NETBEANS-3972:
-

My findings so far are with the following set inside CommitCommand.java:


{code:java}
commit.setSign();
commit.setSigningKey();
commit.setCredentialsProvider(credentialsProvider);
{code}
and the following git config settings:


{code:java}
signingkey = 234567890
gpgsign = true
{code}

with the credentials provider providing my GPG key password directly for 
testing, the commit successfully goes through and is correctly signed:


{code:java}
   v1.3 ●  git log --show-signature

commit 123456789 (HEAD -> v1.3)
gpg: Signature made Wed 22 Apr 2020 20:38:07 BST
gpg: using RSA key 234567890
gpg: Good signature from "Kevin Andrews " [ultimate]
Author: Kevin Andrews 
Date: Wed Apr 22 20:36:28 2020 +0100
{code}
So i think i'm onto a successful implementation, however could do with some 
guidance, what would be the best way inside NetBeans to handle GPG private 
passphrases to use the signing key? I'm guessing a simple password prompt, but 
would this need to be cached for the session for example? Should there be an 
option to save the password, or use a password storage lookup like seahorse / 
gnome passwords?

 

 

> Unable to git commit changes with GPG signing
> -
>
> Key: NETBEANS-3972
> URL: https://issues.apache.org/jira/browse/NETBEANS-3972
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Git
>Affects Versions: 12.0, 11.3
>Reporter: Kevin Andrews
>Priority: Minor
>
> After setting up git GPG key signing on the repo config:
> {code:java}
> [user] 
> name = XX
> email =  XX
> signingkey = XX
> [commit] 
> gpgsign = true{code}
> I can commit in a terminal and commits are signed, however through NetBeans I 
> get the following error after entering a commit message and clicking commit:
> {code:java}
> 
>   2020-03-06T21:35:15
>   1583530515293
>   21894
>   org.netbeans.ui.focus
>   500
>   138
>   LOG_WINDOW_ACTIVATED
>   LOG_WINDOW_ACTIVATED
>   org.netbeans.core.ui.warmup.Bundle
>   25
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21895
>   org.netbeans.ui.actions
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   javax.swing.JMenuItem[Commit...]
>   javax.swing.JMenuItem
>   
> org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
>   org.netbeans.modules.versioning.util.SystemActionBridge
>   Commit...
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21896
>   org.netbeans.ui.SystemActionBridge
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   
>   
>   
> org.netbeans.modules.git.ui.commit.CommitAction[Commit...]
>   org.netbeans.modules.git.ui.commit.CommitAction
>   Commit...
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21898
>   org.netbeans.ui.vcs
>   800
>   138
>   USG_VCS_CMD
>   USG_VCS_CMD
>   org.netbeans.modules.versioning.util.Bundle
>   GIT
>   11
>   0
>   commit
>   INTERNAL
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21899
>   org.netbeans.modules.git
>   800
>   138
>   org.eclipse.jgit.api.errors.JGitInternalException: missing 
> credentials provider
>   
> org.netbeans.libs.git.GitException: 
> org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
> provider
> 
>   org.netbeans.libs.git.jgit.commands.CommitCommand
>   run
>   153
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   57
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   java.security.AccessController
>   doPrivileged
>   jrt:/java.base/java/security/AccessController.class
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand
>   execute
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.GitClient
>   commit
>   480
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   297
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   293
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1
>   call
>   933
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> 

[jira] [Commented] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-04-17 Thread Kevin Andrews (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17085709#comment-17085709
 ] 

Kevin Andrews commented on NETBEANS-3972:
-

Got to the point of making bouncycastle (GPG/PGP lib) trying to find the 
private key via the public signing key last night. Mostly hardcoded dud code at 
the moment just to see if the underlying libraries work as intended, as i've 
seen a few bug reports and issues while Eclipse implemented this feature both 
in jGit and Eclipse the IDE.

At the moment it's failing to find the related private key, however it is 
finding the correct .gnupg/pubring.kbx file as i've seen this referenced while 
implementing a credential provider to pass to jgit->commit

> Unable to git commit changes with GPG signing
> -
>
> Key: NETBEANS-3972
> URL: https://issues.apache.org/jira/browse/NETBEANS-3972
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Git
>Affects Versions: 12.0, 11.3
>Reporter: Kevin Andrews
>Priority: Minor
>
> After setting up git GPG key signing on the repo config:
> {code:java}
> [user] 
> name = XX
> email =  XX
> signingkey = XX
> [commit] 
> gpgsign = true{code}
> I can commit in a terminal and commits are signed, however through NetBeans I 
> get the following error after entering a commit message and clicking commit:
> {code:java}
> 
>   2020-03-06T21:35:15
>   1583530515293
>   21894
>   org.netbeans.ui.focus
>   500
>   138
>   LOG_WINDOW_ACTIVATED
>   LOG_WINDOW_ACTIVATED
>   org.netbeans.core.ui.warmup.Bundle
>   25
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21895
>   org.netbeans.ui.actions
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   javax.swing.JMenuItem[Commit...]
>   javax.swing.JMenuItem
>   
> org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
>   org.netbeans.modules.versioning.util.SystemActionBridge
>   Commit...
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21896
>   org.netbeans.ui.SystemActionBridge
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   
>   
>   
> org.netbeans.modules.git.ui.commit.CommitAction[Commit...]
>   org.netbeans.modules.git.ui.commit.CommitAction
>   Commit...
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21898
>   org.netbeans.ui.vcs
>   800
>   138
>   USG_VCS_CMD
>   USG_VCS_CMD
>   org.netbeans.modules.versioning.util.Bundle
>   GIT
>   11
>   0
>   commit
>   INTERNAL
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21899
>   org.netbeans.modules.git
>   800
>   138
>   org.eclipse.jgit.api.errors.JGitInternalException: missing 
> credentials provider
>   
> org.netbeans.libs.git.GitException: 
> org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
> provider
> 
>   org.netbeans.libs.git.jgit.commands.CommitCommand
>   run
>   153
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   57
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   java.security.AccessController
>   doPrivileged
>   jrt:/java.base/java/security/AccessController.class
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand
>   execute
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.GitClient
>   commit
>   480
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   297
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   293
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1
>   call
>   933
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1
>   call
>   956
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.FilesystemInterceptor
>   runWithoutExternalEvents
>   473
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.Git
>   runWithoutExternalEvents
>   259
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethodIntern
>   966
>   

[jira] [Commented] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-04-16 Thread Kevin Andrews (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17084899#comment-17084899
 ] 

Kevin Andrews commented on NETBEANS-3972:
-

Thanks [~geertjan] i've followed your setup videos and can develop netbeans 
inside netbeans now! The most Java i've done before was the PHP Unit Watcher 
plugin.. 

I'm guessing a credentialProvider with a callback to show a password prompt 
(ability to cache the password may also be a nice to have if gpg-agent is 
ignored). Reading the signing boolean and public key config plus passing 
through to the command is within my skillset but not the credential provider 
bit.

> Unable to git commit changes with GPG signing
> -
>
> Key: NETBEANS-3972
> URL: https://issues.apache.org/jira/browse/NETBEANS-3972
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Git
>Affects Versions: 12.0, 11.3
>Reporter: Kevin Andrews
>Priority: Minor
>
> After setting up git GPG key signing on the repo config:
> {code:java}
> [user] 
> name = XX
> email =  XX
> signingkey = XX
> [commit] 
> gpgsign = true{code}
> I can commit in a terminal and commits are signed, however through NetBeans I 
> get the following error after entering a commit message and clicking commit:
> {code:java}
> 
>   2020-03-06T21:35:15
>   1583530515293
>   21894
>   org.netbeans.ui.focus
>   500
>   138
>   LOG_WINDOW_ACTIVATED
>   LOG_WINDOW_ACTIVATED
>   org.netbeans.core.ui.warmup.Bundle
>   25
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21895
>   org.netbeans.ui.actions
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   javax.swing.JMenuItem[Commit...]
>   javax.swing.JMenuItem
>   
> org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
>   org.netbeans.modules.versioning.util.SystemActionBridge
>   Commit...
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21896
>   org.netbeans.ui.SystemActionBridge
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   
>   
>   
> org.netbeans.modules.git.ui.commit.CommitAction[Commit...]
>   org.netbeans.modules.git.ui.commit.CommitAction
>   Commit...
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21898
>   org.netbeans.ui.vcs
>   800
>   138
>   USG_VCS_CMD
>   USG_VCS_CMD
>   org.netbeans.modules.versioning.util.Bundle
>   GIT
>   11
>   0
>   commit
>   INTERNAL
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21899
>   org.netbeans.modules.git
>   800
>   138
>   org.eclipse.jgit.api.errors.JGitInternalException: missing 
> credentials provider
>   
> org.netbeans.libs.git.GitException: 
> org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
> provider
> 
>   org.netbeans.libs.git.jgit.commands.CommitCommand
>   run
>   153
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   57
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   java.security.AccessController
>   doPrivileged
>   jrt:/java.base/java/security/AccessController.class
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand
>   execute
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.GitClient
>   commit
>   480
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   297
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   293
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1
>   call
>   933
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1
>   call
>   956
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.FilesystemInterceptor
>   runWithoutExternalEvents
>   473
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.Git
>   runWithoutExternalEvents
>   259
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethodIntern
>   966
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   

[jira] [Commented] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-04-16 Thread Kevin Andrews (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17084891#comment-17084891
 ] 

Kevin Andrews commented on NETBEANS-3972:
-

I'd suggest we need to implement:

org.netbeans.libs.git.jgit.commands.CommitCommand.java
 * detection and setting of `commit.setSign(repo.getConfig().commit.gpgsign);` 
when the current repo instance has a config setup of commit.gpgsign
 * commit.setSigningKey() should work with the public hash as the following 
comment was left on the end of the jgit gpg implementation task:

{code:java}
The changes that just went in allow signing commits in JGit. BouncyCastle will 
be used for signing. Signing will lookup GPG keys in the usual locations (eg., 
~/.gnupg/pubring.kbx). Support for 'user.signingkey' is included. Thus, if the 
config value is set it will be used for looking up an appropriate key. If it's 
not set, the committers email address will be used to find a suitable key.{code}

 * ideally being able to set this value on a per-repo bases should be good 
enough in the repo git config, i can't personally see a usecase for signing 
different commits in the same repo with different keys (however this could be 
handy for others?)
 * If the key is password protected (and gpg-agent isn't supported by 
bouncycastleGPG ) then we need to pass a credentialprovider to 
commit.setCredentialsProvider - this bit i'm stuck on and could do with some 
guidance before I can raise a pull request (java isn't my strong point)

> Unable to git commit changes with GPG signing
> -
>
> Key: NETBEANS-3972
> URL: https://issues.apache.org/jira/browse/NETBEANS-3972
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Git
>Affects Versions: 12.0, 11.3
>Reporter: Kevin Andrews
>Priority: Minor
>
> After setting up git GPG key signing on the repo config:
> {code:java}
> [user] 
> name = XX
> email =  XX
> signingkey = XX
> [commit] 
> gpgsign = true{code}
> I can commit in a terminal and commits are signed, however through NetBeans I 
> get the following error after entering a commit message and clicking commit:
> {code:java}
> 
>   2020-03-06T21:35:15
>   1583530515293
>   21894
>   org.netbeans.ui.focus
>   500
>   138
>   LOG_WINDOW_ACTIVATED
>   LOG_WINDOW_ACTIVATED
>   org.netbeans.core.ui.warmup.Bundle
>   25
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21895
>   org.netbeans.ui.actions
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   javax.swing.JMenuItem[Commit...]
>   javax.swing.JMenuItem
>   
> org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
>   org.netbeans.modules.versioning.util.SystemActionBridge
>   Commit...
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21896
>   org.netbeans.ui.SystemActionBridge
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   
>   
>   
> org.netbeans.modules.git.ui.commit.CommitAction[Commit...]
>   org.netbeans.modules.git.ui.commit.CommitAction
>   Commit...
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21898
>   org.netbeans.ui.vcs
>   800
>   138
>   USG_VCS_CMD
>   USG_VCS_CMD
>   org.netbeans.modules.versioning.util.Bundle
>   GIT
>   11
>   0
>   commit
>   INTERNAL
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21899
>   org.netbeans.modules.git
>   800
>   138
>   org.eclipse.jgit.api.errors.JGitInternalException: missing 
> credentials provider
>   
> org.netbeans.libs.git.GitException: 
> org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
> provider
> 
>   org.netbeans.libs.git.jgit.commands.CommitCommand
>   run
>   153
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   57
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   java.security.AccessController
>   doPrivileged
>   jrt:/java.base/java/security/AccessController.class
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand
>   execute
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.GitClient
>   commit
>   480
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   297
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   293
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> 

[jira] [Commented] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-04-16 Thread Kevin Andrews (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17084832#comment-17084832
 ] 

Kevin Andrews commented on NETBEANS-3972:
-

Bit more debugging while running as a development platform and the entire 
NetBeans project checked out and ant ran:


{code:java}
INFO [org.netbeans.modules.git]: 
org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
providerINFO [org.netbeans.modules.git]: 
org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
providerorg.bouncycastle.openpgp.PGPException: missing credentials provider at 
org.eclipse.jgit.lib.internal.BouncyCastleGpgKeyPassphrasePrompt.getPassphrase(BouncyCastleGpgKeyPassphrasePrompt.java:120)
 at 
org.eclipse.jgit.lib.internal.BouncyCastleGpgKeyLocator.findSecretKeyForKeyBoxPublicKey(BouncyCastleGpgKeyLocator.java:395)
 at 
org.eclipse.jgit.lib.internal.BouncyCastleGpgKeyLocator.findSecretKey(BouncyCastleGpgKeyLocator.java:292)
 at 
org.eclipse.jgit.lib.internal.BouncyCastleGpgSigner.locateSigningKey(BouncyCastleGpgSigner.java:124)
 at 
org.eclipse.jgit.lib.internal.BouncyCastleGpgSigner.sign(BouncyCastleGpgSigner.java:133)Caused:
 org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
provider at 
org.eclipse.jgit.lib.internal.BouncyCastleGpgSigner.sign(BouncyCastleGpgSigner.java:162)
 at org.eclipse.jgit.api.CommitCommand.call(CommitCommand.java:271) at 
org.netbeans.libs.git.jgit.commands.CommitCommand.run(CommitCommand.java:145)Caused:
 org.netbeans.libs.git.GitException at 
org.netbeans.libs.git.jgit.commands.CommitCommand.run(CommitCommand.java:160) 
at org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:57) at 
org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:54) at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:554)
 at org.netbeans.libs.git.jgit.commands.GitCommand.execute(GitCommand.java:54) 
at org.netbeans.libs.git.GitClient.commit(GitClient.java:480) at 
org.netbeans.modules.git.client.GitClient$9.call(GitClient.java:297) at 
org.netbeans.modules.git.client.GitClient$9.call(GitClient.java:293) at 
org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:933)
 at 
org.netbeans.modules.git.client.GitClient$CommandInvoker$1.call(GitClient.java:956)
 at 
org.netbeans.modules.git.FilesystemInterceptor.runWithoutExternalEvents(FilesystemInterceptor.java:473)
 at org.netbeans.modules.git.Git.runWithoutExternalEvents(Git.java:259) at 
org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethodIntern(GitClient.java:966)
 at 
org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:893)
 at 
org.netbeans.modules.git.client.GitClient$CommandInvoker.access$300(GitClient.java:869)
 at org.netbeans.modules.git.client.GitClient.commit(GitClient.java:293) at 
org.netbeans.modules.git.ui.commit.CommitAction$CommitProgressSupport.commit(CommitAction.java:342)[catch]
 at 
org.netbeans.modules.git.ui.commit.CommitAction$CommitProgressSupport.perform(CommitAction.java:233)
 at 
org.netbeans.modules.git.client.GitProgressSupport.performIntern(GitProgressSupport.java:92)
 at 
org.netbeans.modules.git.client.GitProgressSupport.run(GitProgressSupport.java:85)
 at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at 
org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
{code}

> Unable to git commit changes with GPG signing
> -
>
> Key: NETBEANS-3972
> URL: https://issues.apache.org/jira/browse/NETBEANS-3972
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Git
>Affects Versions: 12.0, 11.3
>Reporter: Kevin Andrews
>Priority: Minor
>
> After setting up git GPG key signing on the repo config:
> {code:java}
> [user] 
> name = XX
> email =  XX
> signingkey = XX
> [commit] 
> gpgsign = true{code}
> I can commit in a terminal and commits are signed, however through NetBeans I 
> get the following error after entering a commit message and clicking commit:
> {code:java}
> 
>   2020-03-06T21:35:15
>   1583530515293
>   21894
>   org.netbeans.ui.focus
>   500
>   138
>   LOG_WINDOW_ACTIVATED
>   LOG_WINDOW_ACTIVATED
>   org.netbeans.core.ui.warmup.Bundle
>   25
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21895
>   org.netbeans.ui.actions
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   javax.swing.JMenuItem[Commit...]
>   javax.swing.JMenuItem
>   
> org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
>   org.netbeans.modules.versioning.util.SystemActionBridge
>   Commit...
> 

[jira] [Commented] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-04-16 Thread Kevin Andrews (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17084760#comment-17084760
 ] 

Kevin Andrews commented on NETBEANS-3972:
-

Looking at the netbeans 11.3 checkout from github we are including jgit 5.5, 
GPG Signing was added in 5.3 
[https://git.eclipse.org/c/egit/egit.git/commit/?id=14978b622b54f7f602eafadb2926b73a9538d2c7])

Going to look into implementing signing via git config detection to begin with, 
however it may be nice to specify on a per repo basis the gpg key to be used 
(like the overriding of author/committer) and a flag on the commit window if to 
actually sign the commit this time.

> Unable to git commit changes with GPG signing
> -
>
> Key: NETBEANS-3972
> URL: https://issues.apache.org/jira/browse/NETBEANS-3972
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Git
>Affects Versions: 12.0, 11.3
>Reporter: Kevin Andrews
>Priority: Minor
>
> After setting up git GPG key signing on the repo config:
> {code:java}
> [user] 
> name = XX
> email =  XX
> signingkey = XX
> [commit] 
> gpgsign = true{code}
> I can commit in a terminal and commits are signed, however through NetBeans I 
> get the following error after entering a commit message and clicking commit:
> {code:java}
> 
>   2020-03-06T21:35:15
>   1583530515293
>   21894
>   org.netbeans.ui.focus
>   500
>   138
>   LOG_WINDOW_ACTIVATED
>   LOG_WINDOW_ACTIVATED
>   org.netbeans.core.ui.warmup.Bundle
>   25
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21895
>   org.netbeans.ui.actions
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   javax.swing.JMenuItem[Commit...]
>   javax.swing.JMenuItem
>   
> org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
>   org.netbeans.modules.versioning.util.SystemActionBridge
>   Commit...
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21896
>   org.netbeans.ui.SystemActionBridge
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   
>   
>   
> org.netbeans.modules.git.ui.commit.CommitAction[Commit...]
>   org.netbeans.modules.git.ui.commit.CommitAction
>   Commit...
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21898
>   org.netbeans.ui.vcs
>   800
>   138
>   USG_VCS_CMD
>   USG_VCS_CMD
>   org.netbeans.modules.versioning.util.Bundle
>   GIT
>   11
>   0
>   commit
>   INTERNAL
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21899
>   org.netbeans.modules.git
>   800
>   138
>   org.eclipse.jgit.api.errors.JGitInternalException: missing 
> credentials provider
>   
> org.netbeans.libs.git.GitException: 
> org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
> provider
> 
>   org.netbeans.libs.git.jgit.commands.CommitCommand
>   run
>   153
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   57
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   java.security.AccessController
>   doPrivileged
>   jrt:/java.base/java/security/AccessController.class
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand
>   execute
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.GitClient
>   commit
>   480
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   297
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   293
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1
>   call
>   933
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1
>   call
>   956
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.FilesystemInterceptor
>   runWithoutExternalEvents
>   473
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.Git
>   runWithoutExternalEvents
>   259
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethodIntern
>   966
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   

[jira] [Commented] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-04-15 Thread Kevin Andrews (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17084265#comment-17084265
 ] 

Kevin Andrews commented on NETBEANS-3972:
-

Looking at the output tab while commiting:


{code:java}
Git Commit
--
git commit -m "Message"
INFO: End of Commit{code}

looks like the command is missing the -S flag when gpg signing is set to true.

> Unable to git commit changes with GPG signing
> -
>
> Key: NETBEANS-3972
> URL: https://issues.apache.org/jira/browse/NETBEANS-3972
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Git
>Affects Versions: 12.0, 11.3
>Reporter: Kevin Andrews
>Priority: Minor
>
> After setting up git GPG key signing on the repo config:
> {code:java}
> [user] 
> name = XX
> email =  XX
> signingkey = XX
> [commit] 
> gpgsign = true{code}
> I can commit in a terminal and commits are signed, however through NetBeans I 
> get the following error after entering a commit message and clicking commit:
> {code:java}
> 
>   2020-03-06T21:35:15
>   1583530515293
>   21894
>   org.netbeans.ui.focus
>   500
>   138
>   LOG_WINDOW_ACTIVATED
>   LOG_WINDOW_ACTIVATED
>   org.netbeans.core.ui.warmup.Bundle
>   25
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21895
>   org.netbeans.ui.actions
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   javax.swing.JMenuItem[Commit...]
>   javax.swing.JMenuItem
>   
> org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
>   org.netbeans.modules.versioning.util.SystemActionBridge
>   Commit...
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21896
>   org.netbeans.ui.SystemActionBridge
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   
>   
>   
> org.netbeans.modules.git.ui.commit.CommitAction[Commit...]
>   org.netbeans.modules.git.ui.commit.CommitAction
>   Commit...
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21898
>   org.netbeans.ui.vcs
>   800
>   138
>   USG_VCS_CMD
>   USG_VCS_CMD
>   org.netbeans.modules.versioning.util.Bundle
>   GIT
>   11
>   0
>   commit
>   INTERNAL
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21899
>   org.netbeans.modules.git
>   800
>   138
>   org.eclipse.jgit.api.errors.JGitInternalException: missing 
> credentials provider
>   
> org.netbeans.libs.git.GitException: 
> org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
> provider
> 
>   org.netbeans.libs.git.jgit.commands.CommitCommand
>   run
>   153
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   57
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   java.security.AccessController
>   doPrivileged
>   jrt:/java.base/java/security/AccessController.class
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand
>   execute
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.GitClient
>   commit
>   480
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   297
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   293
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1
>   call
>   933
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1
>   call
>   956
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.FilesystemInterceptor
>   runWithoutExternalEvents
>   473
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.Git
>   runWithoutExternalEvents
>   259
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethodIntern
>   966
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethod
>   893
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   access$300
>   869
>   

[jira] [Commented] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-04-15 Thread Kevin Andrews (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17084196#comment-17084196
 ] 

Kevin Andrews commented on NETBEANS-3972:
-

Interestingly changing the GPG signing key value to something incorrect gives:

org.eclipse.jgit.api.errors.JGitInternalException: Unable to find a public-key 
with key or user id: xxx

 

Which indicates it is locating the public-key correctly

> Unable to git commit changes with GPG signing
> -
>
> Key: NETBEANS-3972
> URL: https://issues.apache.org/jira/browse/NETBEANS-3972
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Git
>Affects Versions: 12.0, 11.3
>Reporter: Kevin Andrews
>Priority: Minor
>
> After setting up git GPG key signing on the repo config:
> {code:java}
> [user] 
> name = XX
> email =  XX
> signingkey = XX
> [commit] 
> gpgsign = true{code}
> I can commit in a terminal and commits are signed, however through NetBeans I 
> get the following error after entering a commit message and clicking commit:
> {code:java}
> 
>   2020-03-06T21:35:15
>   1583530515293
>   21894
>   org.netbeans.ui.focus
>   500
>   138
>   LOG_WINDOW_ACTIVATED
>   LOG_WINDOW_ACTIVATED
>   org.netbeans.core.ui.warmup.Bundle
>   25
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21895
>   org.netbeans.ui.actions
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   javax.swing.JMenuItem[Commit...]
>   javax.swing.JMenuItem
>   
> org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
>   org.netbeans.modules.versioning.util.SystemActionBridge
>   Commit...
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21896
>   org.netbeans.ui.SystemActionBridge
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   
>   
>   
> org.netbeans.modules.git.ui.commit.CommitAction[Commit...]
>   org.netbeans.modules.git.ui.commit.CommitAction
>   Commit...
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21898
>   org.netbeans.ui.vcs
>   800
>   138
>   USG_VCS_CMD
>   USG_VCS_CMD
>   org.netbeans.modules.versioning.util.Bundle
>   GIT
>   11
>   0
>   commit
>   INTERNAL
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21899
>   org.netbeans.modules.git
>   800
>   138
>   org.eclipse.jgit.api.errors.JGitInternalException: missing 
> credentials provider
>   
> org.netbeans.libs.git.GitException: 
> org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
> provider
> 
>   org.netbeans.libs.git.jgit.commands.CommitCommand
>   run
>   153
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   57
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   java.security.AccessController
>   doPrivileged
>   jrt:/java.base/java/security/AccessController.class
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand
>   execute
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.GitClient
>   commit
>   480
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   297
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   293
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1
>   call
>   933
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1
>   call
>   956
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.FilesystemInterceptor
>   runWithoutExternalEvents
>   473
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.Git
>   runWithoutExternalEvents
>   259
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethodIntern
>   966
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethod
>   893
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   

[jira] [Updated] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-04-15 Thread Kevin Andrews (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Andrews updated NETBEANS-3972:

Affects Version/s: 12.0

> Unable to git commit changes with GPG signing
> -
>
> Key: NETBEANS-3972
> URL: https://issues.apache.org/jira/browse/NETBEANS-3972
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Git
>Affects Versions: 12.0, 11.3
>Reporter: Kevin Andrews
>Priority: Minor
>
> After setting up git GPG key signing on the repo config:
> {code:java}
> [user] 
> name = XX
> email =  XX
> signingkey = XX
> [commit] 
> gpgsign = true{code}
> I can commit in a terminal and commits are signed, however through NetBeans I 
> get the following error after entering a commit message and clicking commit:
> {code:java}
> 
>   2020-03-06T21:35:15
>   1583530515293
>   21894
>   org.netbeans.ui.focus
>   500
>   138
>   LOG_WINDOW_ACTIVATED
>   LOG_WINDOW_ACTIVATED
>   org.netbeans.core.ui.warmup.Bundle
>   25
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21895
>   org.netbeans.ui.actions
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   javax.swing.JMenuItem[Commit...]
>   javax.swing.JMenuItem
>   
> org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
>   org.netbeans.modules.versioning.util.SystemActionBridge
>   Commit...
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21896
>   org.netbeans.ui.SystemActionBridge
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   
>   
>   
> org.netbeans.modules.git.ui.commit.CommitAction[Commit...]
>   org.netbeans.modules.git.ui.commit.CommitAction
>   Commit...
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21898
>   org.netbeans.ui.vcs
>   800
>   138
>   USG_VCS_CMD
>   USG_VCS_CMD
>   org.netbeans.modules.versioning.util.Bundle
>   GIT
>   11
>   0
>   commit
>   INTERNAL
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21899
>   org.netbeans.modules.git
>   800
>   138
>   org.eclipse.jgit.api.errors.JGitInternalException: missing 
> credentials provider
>   
> org.netbeans.libs.git.GitException: 
> org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
> provider
> 
>   org.netbeans.libs.git.jgit.commands.CommitCommand
>   run
>   153
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   57
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   java.security.AccessController
>   doPrivileged
>   jrt:/java.base/java/security/AccessController.class
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand
>   execute
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.GitClient
>   commit
>   480
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   297
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   293
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1
>   call
>   933
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1
>   call
>   956
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.FilesystemInterceptor
>   runWithoutExternalEvents
>   473
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.Git
>   runWithoutExternalEvents
>   259
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethodIntern
>   966
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethod
>   893
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   access$300
>   869
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient
>   commit
>   293
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> 

[jira] [Commented] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-04-15 Thread Kevin Andrews (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17084165#comment-17084165
 ] 

Kevin Andrews commented on NETBEANS-3972:
-

Tested on the full 11.3 version instead of RC and still an issue.

Also just tried on 12.0-beta3 and still not working with an error popup of:


{code:java}
org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
provider{code}

After clicking commit.

> Unable to git commit changes with GPG signing
> -
>
> Key: NETBEANS-3972
> URL: https://issues.apache.org/jira/browse/NETBEANS-3972
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Git
>Affects Versions: 11.3
>Reporter: Kevin Andrews
>Priority: Minor
>
> After setting up git GPG key signing on the repo config:
> {code:java}
> [user] 
> name = XX
> email =  XX
> signingkey = XX
> [commit] 
> gpgsign = true{code}
> I can commit in a terminal and commits are signed, however through NetBeans I 
> get the following error after entering a commit message and clicking commit:
> {code:java}
> 
>   2020-03-06T21:35:15
>   1583530515293
>   21894
>   org.netbeans.ui.focus
>   500
>   138
>   LOG_WINDOW_ACTIVATED
>   LOG_WINDOW_ACTIVATED
>   org.netbeans.core.ui.warmup.Bundle
>   25
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21895
>   org.netbeans.ui.actions
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   javax.swing.JMenuItem[Commit...]
>   javax.swing.JMenuItem
>   
> org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
>   org.netbeans.modules.versioning.util.SystemActionBridge
>   Commit...
> 
> 
>   2020-03-06T21:35:17
>   1583530517740
>   21896
>   org.netbeans.ui.SystemActionBridge
>   400
>   22
>   UI_ACTION_BUTTON_PRESS
>   UI_ACTION_BUTTON_PRESS
>   org.openide.awt.Bundle
>   
>   
>   
> org.netbeans.modules.git.ui.commit.CommitAction[Commit...]
>   org.netbeans.modules.git.ui.commit.CommitAction
>   Commit...
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21898
>   org.netbeans.ui.vcs
>   800
>   138
>   USG_VCS_CMD
>   USG_VCS_CMD
>   org.netbeans.modules.versioning.util.Bundle
>   GIT
>   11
>   0
>   commit
>   INTERNAL
> 
> 
>   2020-03-06T21:35:19
>   1583530519266
>   21899
>   org.netbeans.modules.git
>   800
>   138
>   org.eclipse.jgit.api.errors.JGitInternalException: missing 
> credentials provider
>   
> org.netbeans.libs.git.GitException: 
> org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
> provider
> 
>   org.netbeans.libs.git.jgit.commands.CommitCommand
>   run
>   153
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   57
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand$1
>   run
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   java.security.AccessController
>   doPrivileged
>   jrt:/java.base/java/security/AccessController.class
> 
> 
>   org.netbeans.libs.git.jgit.commands.GitCommand
>   execute
>   54
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.libs.git.GitClient
>   commit
>   480
>   ${netBeansDir}modules/org-netbeans-libs-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   297
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$9
>   call
>   293
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1
>   call
>   933
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1
>   call
>   956
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.FilesystemInterceptor
>   runWithoutExternalEvents
>   473
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.Git
>   runWithoutExternalEvents
>   259
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethodIntern
>   966
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   runMethod
>   893
>   ${netBeansDir}modules/org-netbeans-modules-git.jar
> 
> 
>   org.netbeans.modules.git.client.GitClient$CommandInvoker
>   

[jira] [Updated] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-03-06 Thread Kevin Andrews (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Andrews updated NETBEANS-3972:

Description: 
After setting up git GPG key signing on the repo config:


{code:java}
[user] 
name = XX
email =  XX
signingkey = XX

[commit] 
gpgsign = true{code}

I can commit in a terminal and commits are signed, however through NetBeans I 
get the following error after entering a commit message and clicking commit:


{code:java}

  2020-03-06T21:35:15
  1583530515293
  21894
  org.netbeans.ui.focus
  500
  138
  LOG_WINDOW_ACTIVATED
  LOG_WINDOW_ACTIVATED
  org.netbeans.core.ui.warmup.Bundle
  25


  2020-03-06T21:35:17
  1583530517740
  21895
  org.netbeans.ui.actions
  400
  22
  UI_ACTION_BUTTON_PRESS
  UI_ACTION_BUTTON_PRESS
  org.openide.awt.Bundle
  javax.swing.JMenuItem[Commit...]
  javax.swing.JMenuItem
  
org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
  org.netbeans.modules.versioning.util.SystemActionBridge
  Commit...


  2020-03-06T21:35:17
  1583530517740
  21896
  org.netbeans.ui.SystemActionBridge
  400
  22
  UI_ACTION_BUTTON_PRESS
  UI_ACTION_BUTTON_PRESS
  org.openide.awt.Bundle
  
  
  org.netbeans.modules.git.ui.commit.CommitAction[Commit...]
  org.netbeans.modules.git.ui.commit.CommitAction
  Commit...


  2020-03-06T21:35:19
  1583530519266
  21898
  org.netbeans.ui.vcs
  800
  138
  USG_VCS_CMD
  USG_VCS_CMD
  org.netbeans.modules.versioning.util.Bundle
  GIT
  11
  0
  commit
  INTERNAL


  2020-03-06T21:35:19
  1583530519266
  21899
  org.netbeans.modules.git
  800
  138
  org.eclipse.jgit.api.errors.JGitInternalException: missing 
credentials provider
  
org.netbeans.libs.git.GitException: 
org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
provider

  org.netbeans.libs.git.jgit.commands.CommitCommand
  run
  153
  ${netBeansDir}modules/org-netbeans-libs-git.jar


  org.netbeans.libs.git.jgit.commands.GitCommand$1
  run
  57
  ${netBeansDir}modules/org-netbeans-libs-git.jar


  org.netbeans.libs.git.jgit.commands.GitCommand$1
  run
  54
  ${netBeansDir}modules/org-netbeans-libs-git.jar


  java.security.AccessController
  doPrivileged
  jrt:/java.base/java/security/AccessController.class


  org.netbeans.libs.git.jgit.commands.GitCommand
  execute
  54
  ${netBeansDir}modules/org-netbeans-libs-git.jar


  org.netbeans.libs.git.GitClient
  commit
  480
  ${netBeansDir}modules/org-netbeans-libs-git.jar


  org.netbeans.modules.git.client.GitClient$9
  call
  297
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  org.netbeans.modules.git.client.GitClient$9
  call
  293
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  
org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1
  call
  933
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  org.netbeans.modules.git.client.GitClient$CommandInvoker$1
  call
  956
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  org.netbeans.modules.git.FilesystemInterceptor
  runWithoutExternalEvents
  473
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  org.netbeans.modules.git.Git
  runWithoutExternalEvents
  259
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  org.netbeans.modules.git.client.GitClient$CommandInvoker
  runMethodIntern
  966
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  org.netbeans.modules.git.client.GitClient$CommandInvoker
  runMethod
  893
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  org.netbeans.modules.git.client.GitClient$CommandInvoker
  access$300
  869
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  org.netbeans.modules.git.client.GitClient
  commit
  293
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  
org.netbeans.modules.git.ui.commit.CommitAction$CommitProgressSupport
  commit
  342
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  
org.netbeans.modules.git.ui.commit.CommitAction$CommitProgressSupport
  perform
  233
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  org.netbeans.modules.git.client.GitProgressSupport
  performIntern
  92
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  org.netbeans.modules.git.client.GitProgressSupport
  run
  85
  ${netBeansDir}modules/org-netbeans-modules-git.jar


  org.openide.util.RequestProcessor$Task
  run
  1418
  ${netbeans.home}lib/org-openide-util.jar


  org.netbeans.modules.openide.util.GlobalLookup
  execute
  

[jira] [Created] (NETBEANS-3972) Unable to git commit changes with GPG signing

2020-03-06 Thread Kevin Andrews (Jira)
Kevin Andrews created NETBEANS-3972:
---

 Summary: Unable to git commit changes with GPG signing
 Key: NETBEANS-3972
 URL: https://issues.apache.org/jira/browse/NETBEANS-3972
 Project: NetBeans
  Issue Type: Bug
  Components: versioncontrol - Git
Affects Versions: 11.3
Reporter: Kevin Andrews


After setting up git GPG key signing on the repo config:


{code:java}
[user] 
name = XX
email =  XX
signingkey = XX

[commit] 
gpgsign = true{code}

I can commit in a terminal and commits are signed, however through NetBeans I 
get the following error after entering a commit message and clicking commit:


{code:java}
org.eclipse.jgit.api.errors.JGitInternalException: missing credentials provider
{code}

Commit fails and changes show uncommitted still.

NetBeans logs:


{code:java}
  2020-03-06T21:35:15  
1583530515293  21894  
org.netbeans.ui.focus  500  
138  LOG_WINDOW_ACTIVATED  
LOG_WINDOW_ACTIVATED  
org.netbeans.core.ui.warmup.Bundle  
25  2020-03-06T21:35:17  
1583530517740  21895  
org.netbeans.ui.actions  400  
22  UI_ACTION_BUTTON_PRESS  
UI_ACTION_BUTTON_PRESS  org.openide.awt.Bundle  
javax.swing.JMenuItem[Commit...]  
javax.swing.JMenuItem  
org.netbeans.modules.versioning.util.SystemActionBridge[Commit...]
  org.netbeans.modules.versioning.util.SystemActionBridge  
Commit...  2020-03-06T21:35:17  
1583530517740  21896  
org.netbeans.ui.SystemActionBridge  400  
22  UI_ACTION_BUTTON_PRESS  
UI_ACTION_BUTTON_PRESS  org.openide.awt.Bundle  
    
org.netbeans.modules.git.ui.commit.CommitAction[Commit...]  
org.netbeans.modules.git.ui.commit.CommitAction  
Commit...  
2020-03-06T21:35:19  1583530519266  
21898  org.netbeans.ui.vcs  
800  138  USG_VCS_CMD  
USG_VCS_CMD  
org.netbeans.modules.versioning.util.Bundle  
GIT  11  0  commit  
INTERNAL  2020-03-06T21:35:19  
1583530519266  21899  
org.netbeans.modules.git  800  
138  
org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
provider      org.netbeans.libs.git.GitException: 
org.eclipse.jgit.api.errors.JGitInternalException: missing credentials 
provider          
org.netbeans.libs.git.jgit.commands.CommitCommand      
run      153      
${netBeansDir}modules/org-netbeans-libs-git.jar        
      org.netbeans.libs.git.jgit.commands.GitCommand$1    
  run      57      
${netBeansDir}modules/org-netbeans-libs-git.jar        
      org.netbeans.libs.git.jgit.commands.GitCommand$1    
  run      54      
${netBeansDir}modules/org-netbeans-libs-git.jar        
      java.security.AccessController      
doPrivileged      
jrt:/java.base/java/security/AccessController.class        
      org.netbeans.libs.git.jgit.commands.GitCommand      
execute      54      
${netBeansDir}modules/org-netbeans-libs-git.jar        
      org.netbeans.libs.git.GitClient      
commit      480      
${netBeansDir}modules/org-netbeans-libs-git.jar        
      org.netbeans.modules.git.client.GitClient$9      
call      297      
${netBeansDir}modules/org-netbeans-modules-git.jar        
      org.netbeans.modules.git.client.GitClient$9      
call      293      
${netBeansDir}modules/org-netbeans-modules-git.jar        
      
org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1     
 call      933      
${netBeansDir}modules/org-netbeans-modules-git.jar        
      
org.netbeans.modules.git.client.GitClient$CommandInvoker$1      
call      956      
${netBeansDir}modules/org-netbeans-modules-git.jar        
      org.netbeans.modules.git.FilesystemInterceptor      
runWithoutExternalEvents      473      
${netBeansDir}modules/org-netbeans-modules-git.jar        
      org.netbeans.modules.git.Git      
runWithoutExternalEvents      259      
${netBeansDir}modules/org-netbeans-modules-git.jar        
      
org.netbeans.modules.git.client.GitClient$CommandInvoker      
runMethodIntern      966      
${netBeansDir}modules/org-netbeans-modules-git.jar        
      
org.netbeans.modules.git.client.GitClient$CommandInvoker      
runMethod      893      
${netBeansDir}modules/org-netbeans-modules-git.jar        
      
org.netbeans.modules.git.client.GitClient$CommandInvoker      
access$300      869      
${netBeansDir}modules/org-netbeans-modules-git.jar        
      org.netbeans.modules.git.client.GitClient      
commit      293      
${netBeansDir}modules/org-netbeans-modules-git.jar        
      
org.netbeans.modules.git.ui.commit.CommitAction$CommitProgressSupport
      commit      342      
${netBeansDir}modules/org-netbeans-modules-git.jar        
      
org.netbeans.modules.git.ui.commit.CommitAction$CommitProgressSupport
      perform      233      
${netBeansDir}modules/org-netbeans-modules-git.jar        
      org.netbeans.modules.git.client.GitProgressSupport  
    performIntern      92      
${netBeansDir}modules/org-netbeans-modules-git.jar        
      org.netbeans.modules.git.client.GitProgressSupport  
 

[jira] [Commented] (NETBEANS-1576) PHP autocompletion partially broken

2018-10-30 Thread Kevin Andrews (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16668572#comment-16668572
 ] 

Kevin Andrews commented on NETBEANS-1576:
-

Fair comment, i'll investigate further and raise a new issue if needed.

> PHP autocompletion partially broken
> ---
>
> Key: NETBEANS-1576
> URL: https://issues.apache.org/jira/browse/NETBEANS-1576
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 9.0, 10.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
>Reporter: Nameless
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: autocompletion, php
> Attachments: PhpAutocompletionProblems.zip, 
> autocompletion_problem_screencast.mp4
>
>
> It seems that autocompletion partially broken for PHP project.
> In project's properties PHP version 7.2 selected for my example.
> Here is [screencast|https://streamable.com/auldi] (attached also). 
> Screencast was made with NB v10#890, but I'm getting the same troubles with 
> Netbeans 9 (with installed PHP plugin from 8.2 dev) too, so both versions are 
> specified.
> Textual description (in comments):
> {code:php}
>  namespace Repo;
> 
> use Entity\EntityClass;
> 
> /**
>  * @method EntityClass[] getAll() 
>  */
> class RepoClass
> {
> /**
>  * 
>  * @param array $params
>  * @return EntityClass
>  */
> public function findOrCreate(array $params): EntityClass
> {
> return new EntityClass();
> }
> }
> {code}
> {code:php}
>  
> namespace App;
> 
> class App
> {
> public function exec()
> {
> $repo = $magick->getRepo();
> /* @var $repo \Repo\RepoClass */
> $obj = $repo->findOrCreate($params);
> // for now all goes fine, ctrl+space after `->` shows methods 
> // `getAll()` and  `findOrCreate(array $params)`
> $obj-> // but no autocompletion here :(
> }
> 
> }
> {code}
> {panel:title=Versions}
> Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
> {panel}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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



[jira] [Commented] (NETBEANS-1576) PHP autocompletion partially broken

2018-10-30 Thread Kevin Andrews (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16668506#comment-16668506
 ] 

Kevin Andrews commented on NETBEANS-1576:
-

Additional information which may help track when this regression started:

I've opened a previous build which works fine:

netbeans-20181014

And opened all subsequent builds in which this functionality has stopped 
working:

netbeans-20181022
netbeans-20181029

Hopefully this helps :) 

> PHP autocompletion partially broken
> ---
>
> Key: NETBEANS-1576
> URL: https://issues.apache.org/jira/browse/NETBEANS-1576
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 9.0, 10.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
>Reporter: Nameless
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: autocompletion, php
> Attachments: PhpAutocompletionProblems.zip, 
> autocompletion_problem_screencast.mp4
>
>
> It seems that autocompletion partially broken for PHP project.
> In project's properties PHP version 7.2 selected for my example.
> Here is [screencast|https://streamable.com/auldi] (attached also). 
> Screencast was made with NB v10#890, but I'm getting the same troubles with 
> Netbeans 9 (with installed PHP plugin from 8.2 dev) too, so both versions are 
> specified.
> Textual description (in comments):
> {code:php}
>  namespace Repo;
> 
> use Entity\EntityClass;
> 
> /**
>  * @method EntityClass[] getAll() 
>  */
> class RepoClass
> {
> /**
>  * 
>  * @param array $params
>  * @return EntityClass
>  */
> public function findOrCreate(array $params): EntityClass
> {
> return new EntityClass();
> }
> }
> {code}
> {code:php}
>  
> namespace App;
> 
> class App
> {
> public function exec()
> {
> $repo = $magick->getRepo();
> /* @var $repo \Repo\RepoClass */
> $obj = $repo->findOrCreate($params);
> // for now all goes fine, ctrl+space after `->` shows methods 
> // `getAll()` and  `findOrCreate(array $params)`
> $obj-> // but no autocompletion here :(
> }
> 
> }
> {code}
> {panel:title=Versions}
> Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
> {panel}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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



[jira] [Commented] (NETBEANS-1576) PHP autocompletion partially broken

2018-10-30 Thread Kevin Andrews (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16668393#comment-16668393
 ] 

Kevin Andrews commented on NETBEANS-1576:
-

I'm seeing the same for:
 * auto completing (ctrl+space) of classes and variables not in a currently 
open file
 * clicking through (ctrl + left click) to un-open class files via class names 
and method calls

Interestingly if I open the class file manually and click through / use 
auto-completion it starts working correctly (for just that class file i've 
opened manually).

> PHP autocompletion partially broken
> ---
>
> Key: NETBEANS-1576
> URL: https://issues.apache.org/jira/browse/NETBEANS-1576
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 9.0, 10.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
>Reporter: Nameless
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: autocompletion, php
> Attachments: PhpAutocompletionProblems.zip, 
> autocompletion_problem_screencast.mp4
>
>
> It seems that autocompletion partially broken for PHP project.
> In project's properties PHP version 7.2 selected for my example.
> Here is [screencast|https://streamable.com/auldi] (attached also). 
> Screencast was made with NB v10#890, but I'm getting the same troubles with 
> Netbeans 9 (with installed PHP plugin from 8.2 dev) too, so both versions are 
> specified.
> Textual description (in comments):
> {code:php}
>  namespace Repo;
> 
> use Entity\EntityClass;
> 
> /**
>  * @method EntityClass[] getAll() 
>  */
> class RepoClass
> {
> /**
>  * 
>  * @param array $params
>  * @return EntityClass
>  */
> public function findOrCreate(array $params): EntityClass
> {
> return new EntityClass();
> }
> }
> {code}
> {code:php}
>  
> namespace App;
> 
> class App
> {
> public function exec()
> {
> $repo = $magick->getRepo();
> /* @var $repo \Repo\RepoClass */
> $obj = $repo->findOrCreate($params);
> // for now all goes fine, ctrl+space after `->` shows methods 
> // `getAll()` and  `findOrCreate(array $params)`
> $obj-> // but no autocompletion here :(
> }
> 
> }
> {code}
> {panel:title=Versions}
> Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
> {panel}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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