Re: Compile on Save for a Kotlin/Maven project

2018-02-15 Thread Mátyás Bene
Hi Emilian,

Thank you for your response. I had thought that my email got completely 
unnoticed, or worse, simply ignored, for the reason you touched below: it's not 
something that you (officially) support. Just one more reason to be more than 
happy for any response I get.

To get to the topic: I have already posted this in the plugin's site on Github 
(https://github.com/JetBrains/kotlin-netbeans/issues/126) but that plugin is 
not maintained any more (cited reason: lack of users, but obviously there's 
more to this than meets the eye). So i thought I may try my chances getting 
some guidance in the netbeans group and perhaps, really just perhaps I could 
get it work - as long as it would not involve changing netbeans internals, just 
adding some callbacks to the plugin - or what not.

Anyway, I'll try as you suggested on JIRA. The Compile on Save feature is one 
of the best features of netbeans which makes my productivity with Java EE an 
order of magnitude higher. Now if I could combine this with the sparseness and 
advanced capabilities of Kotlin, that would be a killer combination. This would 
be something that would not be possible (AFAIK) with any other IDE today.

M.

From: Emilian Bold 
Sent: Thursday, February 15, 2018 13:28
To: Mátyás Bene
Cc: us...@netbeans.incubator.apache.org
Subject: Re: Compile on Save for a Kotlin/Maven project

We don't officially support Kotlin out of the box, so it's might be worth also 
bothering the Kotlin plugin authors so they see they also have NetBeans users 
and have to support other IDEs too.

I don't believe Compile on Save for Maven projects really executes Maven as it 
would be too slow I guess. It might do something more low level which explains 
why it probably doesn't work for Kotlin projects. This might be a workaround we 
could do on NetBeans side. Please report it on JIRA and reference in it the 
Kotlin-NetBeans plugin issue you also posted.

--emi

 Original Message 
On 13 February 2018 1:15 AM, Mátyás Bene  wrote:


Dear Netbeans pros,

Assuming I have a maven based KOTLIN project by following the guide here: 
https://kotlinlang.org/docs/reference/using-maven.html and using the Kotlin 
plugin for NB.

I am wondering how to enable to Compile On Save in Netbeans 8.2 so that changes 
in .kt files are picked up and recompiled automatically?

While the FAQ http://wiki.netbeans.org/FaqCompileOnSave states that for maven 
projects it actually executes the corresponding maven goals (phases?),  it does 
not really seem like the kotlin-maven-plugin was called.

Any ideas? Or is Netbeans filtering files that actually trigger the CoS feature 
to those with the '.java' extension?

M.



UinserverZ for Netbeans for PHP development

2018-02-15 Thread Ed Sowell
Newbie here. this it the first time I've used a mail list in a decade or
more, so hope I'm doing it right.

 

I'm trying to set up Netbeans for online app development using
PHP/JavaScript. Tried using XAMPP for local server but things didn't go
well. Now trying UniserverZ, but no luck so far. Uniserver has a tool called
UniController.exe with which one can choose from 3 different php.ini files,
php_test.ini, php_development.ini, or php_production.ini. The tool also
allows viewing  of settings and stuff, with which I can see that the default
place to look for php.ini is C:\Windows. Therefore I think a copy of the
selected ini is renamed php.ini and put in C:\windows.  HOWEVER, in Netbeans
one must browse to the wanted php.ini, but its' not there.

 

So, my first question is has anyone here ever used UniserverZ with NetBeans?

 

Ed



svn plugin issue

2018-02-15 Thread Mike Billman
I migrated machines and now I have a strange svn issue.  It is showing all of 
my repositories as being ignored from the root level, but if I un-ignore, it 
says not under version control.  If I go to command line tools, it is clear 
everything is correct.

Thoughts?

Mike Billman
Software Engineer

[qclogo]

11800 Conrey Rd
Suite 150
Cincinnati, OH 45249

T +1 513 469 1424
E mikebill...@qcsoftware.com
F +1 513 469 1425



RE: Migrating all settings from one computer to another

2018-02-15 Thread Mike Billman
Thanks…seems to have worked for the most part.

Mike

From: Martin Wildam [mailto:mwil...@gmail.com]
Sent: Wednesday, February 14, 2018 4:58 PM
To: stephen cumminger 
Cc: Mike Billman ; 
us...@netbeans.incubator.apache.org
Subject: Re: Migrating all settings from one computer to another

Hi,
for me in the past (NetBeans v8.1 and below) it was sufficient to copy the 
.netbeans folder under profile. There is a second folder .netbeans-derby - I 
don't remember well, but probably that should be copied either.
Of course on the other machine your Java path (or other linked paths) should be 
then the same either. I did not use Tools->Options Export so far (I wasn't even 
aware that there is such a function).
Best regards, Martin.

On Wed, Feb 14, 2018 at 10:18 PM, stephen cumminger 
> wrote:
I would suggest using the Export Option under Tools->Options. I know it 
captures most things.

Regards,


Stephen

From: Mike Billman 
[mailto:mikebill...@qcsoftware.com]
Sent: Wednesday, February 14, 2018 5:03 PM
To: 
us...@netbeans.incubator.apache.org
Subject: Migrating all settings from one computer to another

Are there specific instructions for migrating all settings from one computer to 
another?  It has been quite a while since I have done this and I want to make 
sure I pull over all plugins and whatnot.

Thanks for your help!

Mike Billman
Software Engineer

[qclogo]

11800 Conrey 
Rd
Suite 
150
Cincinnati, OH 
45249

T +1 513 469 1424
E mikebill...@qcsoftware.com
F +1 513 469 1425




Re: java.lang.LinkageError: loader constraint violation: loader

2018-02-15 Thread Emilian Bold
My guess is that you are bunding twice 
org/apache/commons/configuration/Configuration (ie. commons-configuration).

Maybe you have two modules that have a library wrapper? Or some other external 
JAR that also bundles it in a fat jar?

​--emi


 Original Message 
 On 13 February 2018 4:21 PM, GRYSPEERDT Bastien [CLEMESSY] 
 wrote:

>
>Hi,
>
>
>
>
>
>I have an application build on the Netbeans Platform that uses some netbeans 
>modules.
>
>
>These netbeans modules import some subprojects (that are not Netbeans 
>modules). In one of the subproject, I need to call the 
>org.apache.configuration.Configuration (from “commons-configuration” Apache 
>project) class to
> check that a parameter is true (if it is, I display some field on a HMI).
>
>
>To set the Configuration install, I do it like this : 
>VariableSelectorGuiManager.setConfiguration(myInstance) è this is passed as 
>static.
>
>
>Then, The VariableSelectorGui class gets the configuration instance an display 
>the fields depending on the parameters of the configuration instance.
>
>
>
>
>
>The problem is the following :
>
>
>-We have a standard Java HMI (not integrated in Netbeans) in which everything 
>works fine.
>
>
>-With the Netbeans platform, the 
>“VariableSelectorGuiManager.setConfiguration(myInstance)” is done in the 
>register method of our “ModuleInstall” class. When we try to display the 
>VariableSelectorGui, this error
> is thrown :
>
>
>
>
>
>java.lang.LinkageError: loader constraint violation: loader (instance of 
>org/netbeans/StandardModule$OneModuleClassLoader) previously initiated loading 
>for a different type with name "org/apache/commons/configuration/Configuration"
>
>
>    at java.lang.ClassLoader.defineClass1(Native Method)
>
>
>    at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
>
>
>    at 
>org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:311)
>
>
>    at 
>org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:259)
>
>
>    at 
>org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:217)
>
>
>    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>
>
>    at 
>fr.variable.selector.component.VariableSelectorGui.getCenterPane(VariableSelectorGui.java:562)
>
>
>    at 
>fr.variable.selector.component.VariableSelectorGui.createComponent(VariableSelectorGui.java:821)
>
>
>    at 
>fr.variable.selector.component.VariableSelectorGui.lambda$getComponent$1(VariableSelectorGui.java:181)
>
>
>    at 
>fr.variable.selector.component.VariableSelectorGui$$Lambda$116/700934246.run(Unknown
> Source)
>
>
>    at 
>com.sun.javafx.application.PlatformImpl.lambda$null$164(PlatformImpl.java:292)
>
>
>    at 
>com.sun.javafx.application.PlatformImpl$$Lambda$64/1862576770.run(Unknown 
>Source)
>
>
>    at java.security.AccessController.doPrivileged(Native Method)
>
>
>    at 
>com.sun.javafx.application.PlatformImpl.lambda$runLater$165(PlatformImpl.java:291)
>
>
>    at 
>com.sun.javafx.application.PlatformImpl$$Lambda$63/2029243975.run(Unknown 
>Source)
>
>
>[catch] at 
>com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
>
>
>    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
>
>
>    at 
>com.sun.glass.ui.win.WinApplication.lambda$null$141(WinApplication.java:102)
>
>
>    at 
>com.sun.glass.ui.win.WinApplication$$Lambda$54/1859224790.run(Unknown Source)
>
>
>    at java.lang.Thread.run(Thread.java:745)
>
>
>The error is thrown when trying to access a method of the Configuration 
>interface.
>
>
>
>
>
>I already tried to add 
>“org.apache.commons.configuration” but it does 
>not work.
>
>
>I also tried to add exclusions but it does not work too.
>
>
>
>
>
>When I remove the code from the ModuleInstall>>register, the error is not 
>thrown.
>
>
>
>
>
>All the modules/projects inherit from the same version of the 
>“commons-configuration” project.
>
>
>
>
>
>Thanks,
>
>
>
>
>
>Bastien
>
>
>
> Cet e-mail et ses éventuelles pièces jointes peuvent contenir des 
> informations confidentielles et sont exclusivement adressés au(x) 
> destinataire(s) mentionné(s) ci-dessus. Toute diffusion, exploitation ou 
> copie sans autorisation de cet e-mail et de ses pièces
> jointes est strictement interdite. Si vous recevez ce message par erreur, 
> merci de le détruire et d' avertir immédiatement l'expéditeur. EIFFAGE 
> décline toute responsabilité si ce message a été modifié ou falsifié. 
> This message and any attachments may contain confidential information and are 
> established exclusively for his or its recipients. Any use of this message, 
> for which it was not intended, any distribution or any total or partial 
> publication is prohibited unless
> previously approved. If you receive this