Re: Status of unit tests in module org.netbeans.modules.websvc.editor.hints

2020-04-22 Thread Benjamin Graf
Hi together,

I finally got it working. One test case really seems to be broken!

Several additional modules are needed for unit testing (parsing.nb,
java.source.base)

And yes, also nb-javac is still needed! ;-)

Regards

Benjamin

On 22.04.2020 15:08, Hector Espert wrote:
> I don't know if they are runnable, probably, not.
>
> A piece of advice, check if this folder exists:
> https://github.com/apache/netbeans/blob/4d61753a0600bb555a4fea5a1f0b29f1b909dd5b/enterprise/websvc.editor.hints/nbproject/project.properties#L20
>
> El mié., 22 abr. 2020 a las 14:31, Benjamin Graf ()
> escribió:
>
>> Hi everybody,
>>
>> I try to add a new test case to a unit test in
>> org.netbeans.modules.websvc.editor.hints but the whole test suite actually
>> fails with an exception.
>>
>> Testcase: 
>> testRPCStyleWrappedParameterStyle(org.netbeans.modules.websvc.editor.hints.WSHintsTest):
>> Caused an ERROR
>> EnvironmentFactory missing
>> java.lang.UnsupportedOperationException: EnvironmentFactory missing
>> at 
>> org.netbeans.modules.parsing.impl.Utilities.getEnvFactory(Utilities.java:209)
>> at 
>> org.netbeans.modules.parsing.impl.Utilities.createEnvironment(Utilities.java:216)
>> at org.netbeans.modules.parsing.api.Source.(Source.java:530)
>> at org.netbeans.modules.parsing.api.Source.(Source.java:99)
>> at 
>> org.netbeans.modules.parsing.api.Source$MySourceAccessor.create(Source.java:868)
>> at 
>> org.netbeans.modules.parsing.implspi.SourceFactory.newSource(SourceFactory.java:66)
>> at 
>> org.netbeans.modules.parsing.implspi.SourceFactory$DefaultSourceFactory.createSource(SourceFactory.java:84)
>> at org.netbeans.modules.parsing.api.Source._get(Source.java:539)
>> at org.netbeans.modules.parsing.api.Source.create(Source.java:120)
>> at org.netbeans.api.java.source.JavaSource.(JavaSource.java:375)
>> at org.netbeans.api.java.source.JavaSource._create(JavaSource.java:193)
>> at 
>> org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:318)
>> at 
>> org.netbeans.modules.websvc.editor.hints.WSHintsTestBase.testRule(WSHintsTestBase.java:102)
>> at 
>> org.netbeans.modules.websvc.editor.hints.WSHintsTest.testRPCStyleWrappedParameterStyle(WSHintsTest.java:89)
>> at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
>> at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:460)
>> at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:386)
>> at java.lang.Thread.run(Thread.java:748)
>>
>>
>> Does anybody know if they actually are runable at all?
>>
>> Regards
>>
>> Benjamin
>>



signature.asc
Description: OpenPGP digital signature


Re: Missing DB module in Netbeans 11.3?

2020-04-22 Thread Jean-Marc Borer
Hi Eric,

Yes thank you for the help. That is the info I was looking for. I fixed it
and it works as expected.

Cheers,

JM

On Wed, Apr 22, 2020 at 1:19 PM Eric Barboni  wrote:

> Hi Jean-Marc,
>  Groupid shoud be changed to org.netbeans.api.
>  Because publicpackage were added in 11.3 triaging the module in different
> group.
>
> Best Regards
> Eric
> -Message d'origine-
> De : Jean-Marc Borer 
> Envoyé : mercredi 22 avril 2020 12:22
> À : dev@netbeans.apache.org
> Objet : Missing DB module in Netbeans 11.3?
>
> Hello everyone,
>
> Today I tried to update my NB platform app that is using the database
> function from the IDE cluster from 11.2 to 11.3. It is a Maven project.
>
> The following module is not longer available in 11.3 whereas it was in 11.2
>
> 
> org.netbeans.modules
> org-netbeans-modules-db-metadata-model
> RELEASE113
> 
>
> Strangely I checked my NB 11.3 installation to see if the module is gone
> during the update, but it is still there in the "ide" cluster.
>
> Any idea why this module is no longer found?
>
> Cheers,
>
> Jean-Marc
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


Re: Status of unit tests in module org.netbeans.modules.websvc.editor.hints

2020-04-22 Thread Hector Espert
I don't know if they are runnable, probably, not.

A piece of advice, check if this folder exists:
https://github.com/apache/netbeans/blob/4d61753a0600bb555a4fea5a1f0b29f1b909dd5b/enterprise/websvc.editor.hints/nbproject/project.properties#L20

El mié., 22 abr. 2020 a las 14:31, Benjamin Graf ()
escribió:

> Hi everybody,
>
> I try to add a new test case to a unit test in
> org.netbeans.modules.websvc.editor.hints but the whole test suite actually
> fails with an exception.
>
> Testcase: 
> testRPCStyleWrappedParameterStyle(org.netbeans.modules.websvc.editor.hints.WSHintsTest):
> Caused an ERROR
> EnvironmentFactory missing
> java.lang.UnsupportedOperationException: EnvironmentFactory missing
> at 
> org.netbeans.modules.parsing.impl.Utilities.getEnvFactory(Utilities.java:209)
> at 
> org.netbeans.modules.parsing.impl.Utilities.createEnvironment(Utilities.java:216)
> at org.netbeans.modules.parsing.api.Source.(Source.java:530)
> at org.netbeans.modules.parsing.api.Source.(Source.java:99)
> at 
> org.netbeans.modules.parsing.api.Source$MySourceAccessor.create(Source.java:868)
> at 
> org.netbeans.modules.parsing.implspi.SourceFactory.newSource(SourceFactory.java:66)
> at 
> org.netbeans.modules.parsing.implspi.SourceFactory$DefaultSourceFactory.createSource(SourceFactory.java:84)
> at org.netbeans.modules.parsing.api.Source._get(Source.java:539)
> at org.netbeans.modules.parsing.api.Source.create(Source.java:120)
> at org.netbeans.api.java.source.JavaSource.(JavaSource.java:375)
> at org.netbeans.api.java.source.JavaSource._create(JavaSource.java:193)
> at 
> org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:318)
> at 
> org.netbeans.modules.websvc.editor.hints.WSHintsTestBase.testRule(WSHintsTestBase.java:102)
> at 
> org.netbeans.modules.websvc.editor.hints.WSHintsTest.testRPCStyleWrappedParameterStyle(WSHintsTest.java:89)
> at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
> at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:460)
> at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:386)
> at java.lang.Thread.run(Thread.java:748)
>
>
> Does anybody know if they actually are runable at all?
>
> Regards
>
> Benjamin
>


Status of unit tests in module org.netbeans.modules.websvc.editor.hints

2020-04-22 Thread Benjamin Graf
Hi everybody,

I try to add a new test case to a unit test in
org.netbeans.modules.websvc.editor.hints but the whole test suite
actually fails with an exception.

Testcase: 
testRPCStyleWrappedParameterStyle(org.netbeans.modules.websvc.editor.hints.WSHintsTest):
    Caused an ERROR
EnvironmentFactory missing
java.lang.UnsupportedOperationException: EnvironmentFactory missing
    at 
org.netbeans.modules.parsing.impl.Utilities.getEnvFactory(Utilities.java:209)
    at 
org.netbeans.modules.parsing.impl.Utilities.createEnvironment(Utilities.java:216)
    at org.netbeans.modules.parsing.api.Source.(Source.java:530)
    at org.netbeans.modules.parsing.api.Source.(Source.java:99)
    at 
org.netbeans.modules.parsing.api.Source$MySourceAccessor.create(Source.java:868)
    at 
org.netbeans.modules.parsing.implspi.SourceFactory.newSource(SourceFactory.java:66)
    at 
org.netbeans.modules.parsing.implspi.SourceFactory$DefaultSourceFactory.createSource(SourceFactory.java:84)
    at org.netbeans.modules.parsing.api.Source._get(Source.java:539)
    at org.netbeans.modules.parsing.api.Source.create(Source.java:120)
    at org.netbeans.api.java.source.JavaSource.(JavaSource.java:375)
    at org.netbeans.api.java.source.JavaSource._create(JavaSource.java:193)
    at 
org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:318)
    at 
org.netbeans.modules.websvc.editor.hints.WSHintsTestBase.testRule(WSHintsTestBase.java:102)
    at 
org.netbeans.modules.websvc.editor.hints.WSHintsTest.testRPCStyleWrappedParameterStyle(WSHintsTest.java:89)
    at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
    at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:460)
    at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:386)
    at java.lang.Thread.run(Thread.java:748)

Does anybody know if they actually are runable at all?

Regards

Benjamin



signature.asc
Description: OpenPGP digital signature


Re: NoClassDefFoundError: CUP$ASTPHP5Parser$actions - why am I seeing this?

2020-04-22 Thread Korney Czukowski
Well, I believe that was as detailed as it can be, I did literally 
nothing except for those steps I've described, can't think of anything 
else...


This must be somehow related to platform (Windows - notoriously bad for 
some types of development), tools (Java, Ant versions listed below) or 
whatever else specific to the environment. Probably me doing something 
wrong, but given the very basic steps to reproduce for me, I'm currently 
out of ideas.



21.04.2020 22:03, Matthias Bläsing wrote:

Hi,

no I meant detailed steps to reproduce. As said, with the provided
steps I was not able to reproduce the issue.

Matthias

Am Montag, den 20.04.2020, 15:07 +0200 schrieb Korney Czukowski:

I've got all the Ant output from the full build, 1st run (before the
edit), 2nd run (after the edit, when the exception appears) and the
3rd
run (after reverting, exception still appears) as well as the diff
of
the edit. All made from the current master. It's too large to post as
a
gist at Github though and almost 1MB zipped. Is it okay to attach
the
zip to the mailing list?


20.04.2020 7:20, Korney Czukowski wrote:

Hi Matthias,

By being detailed, other than you've quoted, did you mean I am to
keep
track of all output from eg. ant? (at what level then?)

Thanks.

18.04.2020 22:11, Matthias Bläsing wrote:

Hi,

Am Dienstag, den 17.03.2020, 08:46 +0100 schrieb Korney
Czukowski:

I can reproduce the issue this way:

* ant clean build (build successful)
* open PHP Editor project, change a file (I tried
  InitializeFieldSuggestion.java from
  org.netbeans.modules.php.editor.verification), just added
an
extra
  new line, nothing else
* ant -f php/php.editor run
* open a small project with PHP sources, a dialog window
with the
  exception appears almost immediately
* I can still dismiss the dialog and click around NetBeans,
but the
  dialog keeps reapperaring every couple of clicks

My environment:

* Windows 10
* Apache Ant(TM) version 1.10.7 compiled on September 1 2019

Tested on Ubuntu and is not reproducible for me. Please start
with a
clean checkout from NetBeans master and be detailed what you do
and
how. Else it is pure speculation.

Greetings

Matthias


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

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




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

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





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

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






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

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





RE: Missing DB module in Netbeans 11.3?

2020-04-22 Thread Eric Barboni
Hi Jean-Marc,
 Groupid shoud be changed to org.netbeans.api.
 Because publicpackage were added in 11.3 triaging the module in different 
group.

Best Regards
Eric
-Message d'origine-
De : Jean-Marc Borer  
Envoyé : mercredi 22 avril 2020 12:22
À : dev@netbeans.apache.org
Objet : Missing DB module in Netbeans 11.3?

Hello everyone,

Today I tried to update my NB platform app that is using the database function 
from the IDE cluster from 11.2 to 11.3. It is a Maven project.

The following module is not longer available in 11.3 whereas it was in 11.2


org.netbeans.modules
org-netbeans-modules-db-metadata-model
RELEASE113


Strangely I checked my NB 11.3 installation to see if the module is gone during 
the update, but it is still there in the "ide" cluster.

Any idea why this module is no longer found?

Cheers,

Jean-Marc


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

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





Missing DB module in Netbeans 11.3?

2020-04-22 Thread Jean-Marc Borer
Hello everyone,

Today I tried to update my NB platform app that is using the database
function from the IDE cluster from 11.2 to 11.3. It is a Maven project.

The following module is not longer available in 11.3 whereas it was in 11.2


org.netbeans.modules
org-netbeans-modules-db-metadata-model
RELEASE113


Strangely I checked my NB 11.3 installation to see if the module is gone
during the update, but it is still there in the "ide" cluster.

Any idea why this module is no longer found?

Cheers,

Jean-Marc