Re: Using a language server (PHP)

2019-01-22 Thread Jan Lahoda
I wonder if there is a particular example on how to user the checker. I.e.
ideally a sample project on which psalm produces a reasonable warnings for
testing. And any command lines needed to do that. It would help people who
are not PHP developers themselves to experiment.

Thanks,
Jan

On Fri, Jan 18, 2019 at 8:36 PM Bo Andersen  wrote:

> Is this something we can get support for in netbeans (PHP)? Is it
> difficult to implement? :-)
>
> https://github.com/vimeo/psalm
>
> IDE supported: https://getpsalm.org/docs/language_server/
>


Re: Netbeans Day

2019-01-22 Thread Luff,Chris
Hey,

I have just had meeting with the executive in my organisation who has the final 
say and we are good to go. We have confirmed that the event can take place on 
the Cerner presentation floor in our Paddington office. I have suggested late 
summer, as per your query, to the space organiser; they are going to look for a 
Friday when there are no commercial activities going on around that timeframe.

They have authorised up 50 to 60 people at this stage to gather in our 
presentation suite and one other breakout room with presenting facilities; free 
unlimited internet access, screens, audio etc. Tea, coffee and biscuits 
throughout the day. Given our location in Paddington and the availability of 
food vendors we would not be able to supply lunch. If demand exceeds the 
aforementioned number I will revisit the possibilities.

We will need to organise registration so a list of names are available to the 
building the space facilitators. Without pre-registration, attendance will not 
be possible as access cards are created for each attendee. They would likely be 
on Cerner branded lanyards, is that ok within the rules?

I will let y’all know what dates come from the space organisers.

Thanks
C



On 20 Jan 2019, at 11:17, Geertjan Wielenga 
mailto:geertjan.wiele...@googlemail.com.INVALID>>
 wrote:

When would you suggest for this event?

(Sorry, I keep getting '.invalid' in your e-mail address, so not sure if you're 
getting responses from me.)

Gj


On Thu, Jan 17, 2019 at 2:18 PM Geertjan Wielenga 
mailto:geertjan.wiele...@googlemail.com>> 
wrote:
Excellent, when would you suggest?

Maybe September?

Gj

On Tue, Jan 15, 2019 at 6:01 PM Luff,Chris 
mailto:chris.l...@cerner.com.invalid>> wrote:
I have an agreement in principle from my organisation's hierarchy to host a 
Netbeans day. The organisation is based in Paddington London with hosting 
facilities. Cerner.com

Do we have any ideas on dates; the space is heavily utilised so this will be 
the difficult part, but I feel sure it can be done. I don’t think we can meet 
the usual April timeframe so perhaps later in the year.

How does registration/invite usually function?

Thanks
C

On 11 Jan 2019, at 15:56, Luff,Chris 
mailto:chris.l...@cerner.com.INVALID>> wrote:

Sweet…will work within the parameters and see what is possible! 
Standby…commercial organisation!


On 11 Jan 2019, at 15:49, Geertjan Wielenga 
mailto:geertjan.wiele...@googlemail.com.INVALID>>
 wrote:

Awesome!

Requirements: 
https://cwiki.apache.org/confluence/display/NETBEANS/NetBeans+Events

Gj

On Fri, Jan 11, 2019 at 4:47 PM Luff,Chris 
mailto:chris.l...@cerner.com.invalid>> wrote:
@Geertjan and others; Netbeans Day…if I had a venue, what are the prerequisites?


CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, Registered in 
England no 2519305, Registered Office 37 North Wharf Road, London W2 1AF.

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

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





Re: Netbeans Day

2019-01-22 Thread Geertjan Wielenga
Awesome!

Gj

On Tue, Jan 22, 2019 at 2:58 PM Luff,Chris  wrote:

> Hey,
>
> I have just had meeting with the executive in my organisation who has the
> final say and we are good to go. We have confirmed that the event can take
> place on the Cerner presentation floor in our Paddington office. I have
> suggested late summer, as per your query, to the space organiser; they are
> going to look for a Friday when there are no commercial activities going on
> around that timeframe.
>
> They have authorised up 50 to 60 people at this stage to gather in our
> presentation suite and one other breakout room with presenting facilities;
> free unlimited internet access, screens, audio etc. Tea, coffee and
> biscuits throughout the day. Given our location in Paddington and the
> availability of food vendors we would not be able to supply lunch. If
> demand exceeds the aforementioned number I will revisit the possibilities.
>
> We will need to organise registration so a list of names are available to
> the building the space facilitators. Without pre-registration, attendance
> will not be possible as access cards are created for each attendee. They
> would likely be on Cerner branded lanyards, is that ok within the rules?
>
> I will let y’all know what dates come from the space organisers.
>
> Thanks
> C
>
>
>
> On 20 Jan 2019, at 11:17, Geertjan Wielenga <
> geertjan.wiele...@googlemail.com.INVALID> wrote:
>
> When would you suggest for this event?
>
> (Sorry, I keep getting '.invalid' in your e-mail address, so not sure if
> you're getting responses from me.)
>
> Gj
>
>
> On Thu, Jan 17, 2019 at 2:18 PM Geertjan Wielenga <
> geertjan.wiele...@googlemail.com> wrote:
>
>> Excellent, when would you suggest?
>>
>> Maybe September?
>>
>> Gj
>>
>> On Tue, Jan 15, 2019 at 6:01 PM Luff,Chris 
>> wrote:
>>
>>> I have an agreement in principle from my organisation's hierarchy to
>>> host a Netbeans day. The organisation is based in Paddington London with
>>> hosting facilities. Cerner.com 
>>>
>>> Do we have any ideas on dates; the space is heavily utilised so this
>>> will be the difficult part, but I feel sure it can be done. I don’t think
>>> we can meet the usual April timeframe so perhaps later in the year.
>>>
>>> How does registration/invite usually function?
>>>
>>> Thanks
>>> C
>>>
>>> On 11 Jan 2019, at 15:56, Luff,Chris 
>>> wrote:
>>>
>>> Sweet…will work within the parameters and see what is possible!
>>> Standby…commercial organisation!
>>>
>>>
>>> On 11 Jan 2019, at 15:49, Geertjan Wielenga <
>>> geertjan.wiele...@googlemail.com.INVALID> wrote:
>>>
>>> Awesome!
>>>
>>> Requirements:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/NetBeans+Events
>>> 
>>>
>>> Gj
>>>
>>> On Fri, Jan 11, 2019 at 4:47 PM Luff,Chris <
>>> chris.l...@cerner.com.invalid> wrote:
>>>
 @Geertjan and others; Netbeans Day…if I had a venue, what are the
 prerequisites?


 CONFIDENTIALITY NOTICE This message and any included attachments are
 from Cerner Corporation and are intended only for the addressee. The
 information contained in this message is confidential and may constitute
 inside or non-public information under international, federal, or state
 securities laws. Unauthorized forwarding, printing, copying, distribution,
 or use of such information is strictly prohibited and may be unlawful. If
 you are not the addressee, please promptly delete this message and notify
 the sender of the delivery error by e-mail or you may call Cerner's
 corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
 Cerner Limited, Registered in England no 2519305, Registered Office 37
 North Wharf Road, London W2 1AF.

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

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


Re: How to Push NetBeans Plugins Silently to End Users?

2019-01-22 Thread Geertjan Wielenga
Very cool, thanks!

Gj

On Tue, Jan 22, 2019 at 12:31 PM Mark Phipps  wrote:

> Hi all,
>
> I have put the code with an example "Installer extends ModuleInstall" here:
>
> https://gist.github.com/phipma/c1fd613a3ef455d748998b0055ca7c71
>
> I hope it is useful.
>
> Thanks
>
> Mark
> On 23/12/2018 08:44, Geertjan Wielenga wrote:
>
> Hi Mark,
>
> Would be great if you’d blog or document somehow how you did this, could
> be useful for many others.
>
> Gj
>
> On Wed, 19 Dec 2018 at 14:57, Mark Phipps  wrote:
>
>> Thanks Emilian, I was able to use that class as the outline of an
>> auto-updater-and-restarter mechanism in my client.
>>
>> I am not really sure what is going on inside all of the InstallSupport,
>> OperationContainer and UpdateElement stuff, but I now have effectively the
>> same behaviour as the Java Web Start application which my Platform client
>> is ultimately replacing.
>>
>> Thanks
>>
>> Mark
>> On 12/12/18 19:40, Emilian Bold wrote:
>>
>> That UpdateHandler seems to be the right thing.
>>
>> Making a rolling release Platform app sounds the kind of use case we
>> should support out of the box (maybe even for the IDE?)
>>
>> I haven't looked much into this (other that using that class you found)
>> but there are some odd corner cases too study: I remember I had an app
>> kinda looping after I killed it right before it wanted to restart for the
>> auto-update. Worked rather flawlessly other than that though, so don't
>> worry too much about it.
>>
>> --emi
>>
>> http://coolbeans.xyz/ - CoolBeans: An IDE for Java, JavaEE, PHP and more!
>>
>>
>> On Wed, Dec 12, 2018 at 7:26 PM Mark Phipps 
>> wrote:
>>
>>> Hi all,
>>>
>>> I am keen to follow the way of "pushing" updates to my NB platform app,
>>> that Geertjan and Jiri Rechtacek described a few years ago, in their blog
>>> posts and which is referred to in several other places.
>>>
>>>
>>> https://blogs.oracle.com/geertjan/how-to-push-netbeans-plugins-silently-to-end-users
>>>
>>> https://www.pellissier.co.za/hermien/?p=496
>>>
>>> However Jiri's blogpost with details of his plugin and technique seems
>>> to have disappeared. Can anyone point me to where I can find that plugin or
>>> details/example code to make this happen?
>>>
>>> Searching for Jiri himself, I came across the WakaTime netbeans plugin -
>>> is this the same/similar thing?
>>> https://github.com/wakatime/netbeans-wakatime/blob/master/src/org/wakatime/netbeans/plugin/UpdateHandler.java
>>>
>>> Any help is much appreciated
>>>
>>> Thanks
>>>
>>> Mark
>>>
>>> *Mark Phipps |* Front Office Development Manager
>>> *Sucden Financial Limited |* Plantation Place South *|* 60 Great Tower
>>> Street
>>> *
>>> **|
>>> *London
>>> EC3R 5AZ
>>> 
>>>
>>> *Telephone (DDI): *+44 (0)20 3207 5140* | Switchboard:* +44 (0)20 3207
>>> 5000
>>> *Email: *mark.phi...@sucfin.com | *Website:* www.sucdenfinancial.com
>>>
>>>
>>> [image: Description: signature20170705.jpg]
>>> 
>>>
>>> Twitter  | LinkedIn
>>> 
>>>
>>> www.sucdenfinancial.com
>>>
>>> Sucden Financial Limited, Plantation Place South, 60 Great Tower
>>> Street, London EC3R 5AZ
>>> 
>>> Telephone +44 203 207 5000
>>>
>>> Registered in England no. 1095841
>>> VAT registration no. GB 446 9061 33
>>>
>>> Authorised and Regulated by the Financial Conduct Authority (FCA) and
>>> entered in the FCA register under no. 114239
>>>
>>> This email, including any files transmitted with it, is confidential and
>>> may be privileged. It may be read, copied and used only by the intended
>>> recipient. If you are not the intended recipient of this message, please
>>> notify *postmas...@sucfin.com * immediately and
>>> delete it from your computer system.
>>>
>>> We believe, but do not warrant, that this email and its attachments are
>>> virus-free, but you should check.
>>>
>>>
>>>
>>> Sucden Financial Limited may monitor traffic data of both business and
>>> personal emails. By replying to this email, you consent to Sucden
>>> Financial's monitoring the content of any emails you send to or receive
>>> from Sucden Financial. Sucden Financial is not liable for any opinions
>>> expressed by the sender where this is a 

Re: How to Push NetBeans Plugins Silently to End Users?

2019-01-22 Thread Mark Phipps

Hi all,

I have put the code with an example "Installer extends ModuleInstall" here:

https://gist.github.com/phipma/c1fd613a3ef455d748998b0055ca7c71

I hope it is useful.

Thanks

Mark

On 23/12/2018 08:44, Geertjan Wielenga wrote:

Hi Mark,

Would be great if you’d blog or document somehow how you did this, 
could be useful for many others.


Gj

On Wed, 19 Dec 2018 at 14:57, Mark Phipps > wrote:


Thanks Emilian, I was able to use that class as the outline of an
auto-updater-and-restarter mechanism in my client.

I am not really sure what is going on inside all of the
InstallSupport, OperationContainer and UpdateElement stuff, but I
now have effectively the same behaviour as the Java Web Start
application which my Platform client is ultimately replacing.

Thanks

Mark

On 12/12/18 19:40, Emilian Bold wrote:

That UpdateHandler seems to be the right thing.

Making a rolling release Platform app sounds the kind of use case
we should support out of the box (maybe even for the IDE?)

I haven't looked much into this (other that using that class you
found) but there are some odd corner cases too study: I remember
I had an app kinda looping after I killed it right before it
wanted to restart for the auto-update. Worked rather flawlessly
other than that though, so don't worry too much about it.

--emi

http://coolbeans.xyz/ - CoolBeans: An IDE for Java, JavaEE, PHP
and more!


On Wed, Dec 12, 2018 at 7:26 PM Mark Phipps
mailto:mark.phi...@sucfin.com>> wrote:

Hi all,

I am keen to follow the way of "pushing" updates to my NB
platform app, that Geertjan and Jiri Rechtacek described a
few years ago, in their blog posts and which is referred to
in several other places.


https://blogs.oracle.com/geertjan/how-to-push-netbeans-plugins-silently-to-end-users

https://www.pellissier.co.za/hermien/?p=496

However Jiri's blogpost with details of his plugin and
technique seems to have disappeared. Can anyone point me to
where I can find that plugin or details/example code to make
this happen?

Searching for Jiri himself, I came across the WakaTime
netbeans plugin - is this the same/similar thing?

https://github.com/wakatime/netbeans-wakatime/blob/master/src/org/wakatime/netbeans/plugin/UpdateHandler.java

Any help is much appreciated

Thanks

Mark

*Mark Phipps |***Front Office Development Manager
*Sucden Financial Limited |*Plantation Place South***|***60
Great Tower Street

***|

*London
EC3R 5AZ



*Telephone (DDI): *+44 (0)20 3207 5140* | Switchboard:***+44
(0)20 3207 5000
*Email: *mark.phi...@sucfin.com
 | *Website:*
www.sucdenfinancial.com 


Description: signature20170705.jpg


Twitter | LinkedIn


www.sucdenfinancial.com 

Sucden Financial Limited, Plantation Place South, 60 Great
Tower Street, London EC3R 5AZ


Telephone +44 203 207 5000

Registered in England no. 1095841
VAT registration no. GB 446 9061 33

Authorised and Regulated by the Financial Conduct Authority
(FCA) and entered in the FCA register under no. 114239

This email, including any files transmitted with it, is
confidential and may be privileged. It may be read, copied
and used only by the intended recipient. If you are not the
intended recipient of this message, please notify
_postmas...@sucfin.com _
immediately and delete it from your computer system.

We believe, but do not warrant, that this email and its
attachments are virus-free, but you should check.

Sucden Financial Limited may monitor traffic data of both
business and personal emails. By replying to 

Re: java home configuration in maven

2019-01-22 Thread Emilian Bold
In Project Properties | Build | Compile you can configure the 'Java
Platform' for the project. I see that switching to Java 8 makes the
compilation work for me:

cd /Users/apache/CoolBeansProjects/deleletmeee;
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home
"/Users/apache/work/coolbeans/CoolBeans-2018.12-20190110-235217/CoolBeans/CoolBeans
2018.12.app/Contents/Resources/coolbeans/java/maven/bin/mvn" clean
install



com.sun
tools
1.8
system
${java.home}/../lib/tools.jar



OTOH, using the default Java 10 breaks the build:

cd /Users/apache/CoolBeansProjects/deleletmeee;
"JAVA_HOME=/Users/apache/work/coolbeans/CoolBeans-2018.12-20190110-235217/CoolBeans/CoolBeans
2018.12.app/Contents/Resources/coolbeans/jre"
"/Users/apache/work/coolbeans/CoolBeans-2018.12-20190110-235217/CoolBeans/CoolBeans
2018.12.app/Contents/Resources/coolbeans/java/maven/bin/mvn" clean
install

Failed to execute goal on project deleletmeee: Could not resolve
dependencies for project com.mycompany:deleletmeee:jar:1.0-SNAPSHOT:
Could not find artifact com.sun:tools:jar:1.8 at specified path
/Users/apache/work/coolbeans/CoolBeans-2018.12-20190110-235217/CoolBeans/CoolBeans
2018.12.app/Contents/Resources/coolbeans/jre/../lib/tools.jar -> [Help
1]

So the only remaining issue is that, indeed, you cannot globally
change the default Java Platform from Tools | Java Platforms.

--emi

http://coolbeans.xyz/ - CoolBeans: An IDE for Java, JavaEE, PHP and more!

On Tue, Jan 22, 2019 at 12:37 PM Geertjan Wielenga
 wrote:
>>
>> - NetBeans 10 "requires" (prefers) Java 11
>
>
> No, it does not. It runs on JDK 8 or above, to the current JDK, which is JDK 
> 11.
>
> Gj
>
> On Tue, Jan 22, 2019 at 11:35 AM  wrote:
>>
>> Hi, I have a problem with the java home configuration when I work with 
>> Netbeans 10 (but I guess that also other versions are affected).
>>
>> - In my company we still use JDK 8 so I configured the JAVA_HOME system 
>> variable to point to the JDK 8 folder. This configuration seems correct, I 
>> can see from the prompt that typing java -version the correct version of 
>> java is taken in account.
>>
>> - NetBeans 10 "requires" (prefers) Java 11 so I downloaded the OpenJDK11, 
>> extracted it on a folder and configured the path on the netbeans.conf file 
>> (netbeans_jdkhome="D:\java\jdk11") also this configuration seems to be ok.
>>
>> - One of the maven project on which I'm working (remind we use java 8) has 
>> an external dependency like this:
>>   
>> com.sun
>> tools
>> ${jdk.version}
>> system
>> ${java.home}/../lib/tools.jar
>> 
>>
>>   The problem is that ${java.home} is translated using the netbeans_jdkhome 
>> path and not the system JAVA_HOME variable so it points to jdk 11 and not 
>> jdk 8 and it doesn't find the path.
>>
>>
>> In Netbeans Java Platform Manager I have both the java version jdk 8 and jdk 
>> 11(default) but the default version can't be changed.
>>
>> How can I workaround this limitation so that I can work on the maven project 
>> using the jdk 8 home?
>>
>> Kind regards,

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

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



Re: java home configuration in maven

2019-01-22 Thread Geertjan Wielenga
>
> - NetBeans 10 "requires" (prefers) Java 11
>

No, it does not. It runs on JDK 8 or above, to the current JDK, which is
JDK 11.

Gj

On Tue, Jan 22, 2019 at 11:35 AM  wrote:

> Hi, I have a problem with the java home configuration when I work with
> Netbeans 10 (but I guess that also other versions are affected).
>
> - In my company we still use JDK 8 so I configured the JAVA_HOME system
> variable to point to the JDK 8 folder. This configuration seems correct, I
> can see from the prompt that typing java -version the correct version of
> java is taken in account.
>
> - NetBeans 10 "requires" (prefers) Java 11 so I downloaded the OpenJDK11,
> extracted it on a folder and configured the path on the netbeans.conf file
> (netbeans_jdkhome="D:\java\jdk11") also this configuration seems to be ok.
>
> - One of the maven project on which I'm working (remind we use java 8) has
> an external dependency like this:
>   
> com.sun
> tools
> ${jdk.version}
> system
> ${java.home}/../lib/tools.jar
> 
>
>   The problem is that ${java.home} is translated using the
> netbeans_jdkhome path and not the system JAVA_HOME variable so it points to
> jdk 11 and not jdk 8 and it doesn't find the path.
>
>
> In Netbeans Java Platform Manager I have both the java version jdk 8 and
> jdk 11(default) but the default version can't be changed.
>
> How can I workaround this limitation so that I can work on the maven
> project using the jdk 8 home?
>
> Kind regards,
>


java home configuration in maven

2019-01-22 Thread giutino
Hi, I have a problem with the java home configuration when I work with Netbeans 
10 (but I guess that also other versions are affected).

- In my company we still use JDK 8 so I configured the JAVA_HOME system 
variable to point to the JDK 8 folder. This configuration seems correct, I can 
see from the prompt that typing java -version the correct version of java is 
taken in account.

- NetBeans 10 "requires" (prefers) Java 11 so I downloaded the OpenJDK11, 
extracted it on a folder and configured the path on the netbeans.conf file 
(netbeans_jdkhome="D:\java\jdk11") also this configuration seems to be ok.

- One of the maven project on which I'm working (remind we use java 8) has an 
external dependency like this:
  
com.sun
tools
${jdk.version}
system
${java.home}/../lib/tools.jar


  The problem is that ${java.home} is translated using the netbeans_jdkhome 
path and not the system JAVA_HOME variable so it points to jdk 11 and not jdk 8 
and it doesn't find the path. 


In Netbeans Java Platform Manager I have both the java version jdk 8 and jdk 
11(default) but the default version can't be changed.

How can I workaround this limitation so that I can work on the maven project 
using the jdk 8 home?

Kind regards,