Re: Gratuitous selenium dependencies added to Maven projects

2020-05-24 Thread Tim Boudreau
Just reproduced it again on a NetBeans module project, on a different
machine than I usually use for coding - different userdir, version of
NetBeans, etc.  I'm curious if anyone else can.  Steps to reproduce:

1. Clone this repo:
git clone g...@github.com:timboudreau/ANTLR4-Plugins-for-NetBeans.git

2.  Check out the commit I was working against:
cd ANTLR4-Plugins-for-NetBeans
git checkout 6c0fd2dbd76ab09182cafc937a961d4ff5abe391

3. Build it once
mvn -Dmaven.test.skip.exec=true clean install

4.  Open the subproject antlr-utils in the IDE, let it load and expand its
one package

5.  Right click the class Criteria.java and choose *Tools | Create/Update
Tests*

6.  Accept the defaults, change nothing in the dialog (which contains no
mention of Selenium), just click *OK* (note this means you are selecting
JUnit as the test framework, even though the parent project depends on
JUnit 4 and that's what should be used - perhaps this is the trigger?).

then see if this pile of dependencies gets added to the pom.xml (and the
build will fail because of dependency convergence - Selenium is sloppy
about dependency management) - note both JUnit 4 and JUnit are added, *and *the
parent pom specifies a different version of JUnit 4 which the version spec
overrides:


org.junit.jupiter
junit-jupiter-api
5.6.0
test


org.junit.jupiter
junit-jupiter-params
5.6.0
test


org.junit.jupiter
junit-jupiter-engine
5.6.0
test


org.seleniumhq.selenium
selenium-java
test
2.44.0


com.opera
operadriver
test
1.5


org.seleniumhq.selenium
selenium-remote-driver




junit
junit
test
4.11



AW: MarkdownViewer module for NetBeans

2020-05-24 Thread Christian Lenz
Hey John,

first thx for contributing to NetBeans, this is cool 😊. Second, unfortunately I 
can’t see the images maybe you can upload them to an image hoster and add the 
links here 😊.

To your plugin, I downloaded it and tested it, now no real difference from 
yours to pegdown except from using flexmark, which is pretty cool.

I have a couple of things to improve your plugin, I will create tickets at your 
repo but maybe you can join the NetBeans slack room to chat about it first 😊. 
It is too long and a bit out of scope for this thread here. What do you think? 
Also we can talk via private mail if you want.


Cheers

Chris


Von: John Kostaras
Gesendet: Sonntag, 24. Mai 2020 15:45
An: dev@netbeans.apache.org
Betreff: MarkdownViewer module for NetBeans

Hallo all,

when you open a github project in Intellij IDEA, it automatically opens the 
README.md file.







When you open it in NetBeans, you only see the raw markdown text.

This simple NetBeans module 
(https://github.com/jkost/MarkdownViewerForNetBeans/) implements the first and 
third of the above screenshots (will provide an implementation of the middle 
screenshot soon). The result looks like so. I used flexmark-java (which is also 
used by NetBeans) to convert the markdown to HTML to be displayed to a 
JEditorPane.



Questions:

1. How to integrate it to NetBeans source code if it is found useful? Do I need 
to create a plugin, sign it etc, then import it NB or it is easier with a pull 
request?
2. Not sure which location it should be added. Inside editor, inside ide?

Any comments/suggestions are welcome.

Kind regards,

John.



Re: Potential blocker in 12.0 (and 11.3!)

2020-05-24 Thread John Mc
Hi,

I'm still awaiting the INFRA ticket to be actioned, so I can get an Apple
certificate, but I tried building an installer for beta-4 locally (with a
random text file, in place of the certificate file):

./installermac.sh /Users/john/Downloads/netbeans-12.0-beta4-bin.zip
12.0-beta4 200523 "/Users/john/Apache/testCert.txt"

I got the following error:

+ ERROR_CODE=0

+ '[' 0 '!=' 0 ']'

+ ERROR_CODE=0

+ '[' 0 '!=' 0 ']'

+ '[' '!' -z ']'

+ mv
/Users/john/Apache/WIP/12.0-beta4/distpreparation/netbeans/installer/dist/installers/bundles
/Users/john/Apache/WIP/12.0-beta4/distpreparation/netbeans/installer/dist

+ rmdir
/Users/john/Apache/WIP/12.0-beta4/distpreparation/netbeans/installer/dist/installers

+ '[' '!' -z ']'

+ '[' '!' -z 1 ']'

+ rsync -avz
'/Users/john/Apache/WIP/12.0-beta4/distpreparation/netbeans/installer/nbbuild/installer/mac/newbuild/dist_en/*.dmg'
/Users/john/Apache/WIP/12.0-beta4/distpreparation/netbeans/installer/dist/bundles

building file list ... rsync: link_stat
"/Users/john/Apache/WIP/12.0-beta4/distpreparation/netbeans/installer/nbbuild/installer/mac/newbuild/dist_en/*.dmg"
failed: No such file or directory (2)

done


sent 29 bytes  received 20 bytes  98.00 bytes/sec

total size is 0  speedup is 0.00

rsync error: some files could not be transferred (code 23) at
/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-54/rsync/main.c(996)
[sender=2.6.9]

+ ERROR_CODE=23

+ '[' 23 '!=' 0 ']'

+ exit 23


I'll investigate this tomorrow after work (might be that the test
certification file I'm using is the reason why its not working)...

We have at least a beta-5 and around another week or so of testing this,
correct?  Just want to make sure I have this resolved in time to avoid any
delays...

Regards

John


On Sat, 23 May 2020 at 06:20, Geertjan Wielenga  wrote:

> Very nice, thank you!
>
> Gj
>
> On Sat, 23 May 2020 at 01:38, John Mc  wrote:
>
> > Hi,
> >
> > I've found the information I need, and have made the appropriate request
> to
> > the Infrastructure Team.  I should be able to take on the Mac OSX
> installer
> > aspect for 12.0
> >
> > Regards
> >
> > John
> >
> > On Fri, 22 May 2020 at 22:22, John Mc  wrote:
> >
> > > Hi Eric/Geertjan,
> > >
> > > I was looking at whats involved here and I believe, we need someone
> with
> > > an Apple Developer Account which requires a yearly subscription fee of
> > €99.
> > >
> > > Is there an "Apache", or "Apache NetBeans" Apple Developer Account,
> that
> > > was used previously?  With this account, you gain access to a
> "Developer
> > ID
> > > Installer" certificate which I'm guessing is the same as an "Apple
> > > Developer Installer Certificate" as that is mentioned in [1], and I
> have
> > > found no record of this listed anywhere...
> > >
> > > Whose certificate was used for the 11.X releases?  Was this a personal
> > one
> > > or an Apache/NetBeans certificate?
> > >
> > > [1]:
> > >
> >
> https://cwiki.apache.org/confluence/display/NETBEANS/Installer+Build+Steps
> > >
> > > Regards
> > >
> > > John
> > >
> > > On Fri, 22 May 2020 at 19:26, Geertjan Wielenga 
> > > wrote:
> > >
> > >> I use a Mac, if you can point me in the right direction, I can do the
> > >> installer build and sign, unless someone else volunteers.
> > >>
> > >> Gj
> > >>
> > >> On Fri, 22 May 2020 at 11:59, Eric Barboni  wrote:
> > >>
> > >> > Hi,
> > >> >  Sorry for the delay.  We are a bit late but what can we do against.
> > >> >
> > >> >  The blocker was detected by Neil but Jaroslav first vetoed the
> > changes
> > >> > (maybe I overinterpret that but -1 on PR looks like a veto). By the
> > way
> > >> > Jaroslav change his mind. This fix is only a first step as far I
> know.
> > >> >
> > >> > It's better to have maybe until Wednesday or Friday the beta running
> > to
> > >> > avoid having to generate fix day one.
> > >> >
> > >> > If we can merge Neil PR, the beta can be at the end of the day.
> > >> >
> > >> > Best Regards
> > >> > Eric
> > >> >
> > >> > !!! help !!!
> > >> > And still important I have no volunteer to 12.0 macos installer
> build
> > >> and
> > >> > sign. (need to be a PMC, and I have no mac to do that :/ )
> > >> >
> > >> >
> > >> > -Message d'origine-
> > >> > De : Geertjan Wielenga 
> > >> > Envoyé : jeudi 21 mai 2020 21:13
> > >> > À : dev@netbeans.apache.org
> > >> > Objet : Re: Potential blocker in 12.0 (and 11.3!)
> > >> >
> > >> > Thanks, great. Let’s see Eric’s response to this indeed.
> > >> >
> > >> > Gj
> > >> >
> > >> > On Thu, 21 May 2020 at 10:47, Neil C Smith 
> > >> wrote:
> > >> >
> > >> > > On Thu, 21 May 2020 at 06:08, Geertjan Wielenga <
> > geert...@apache.org>
> > >> > > wrote:
> > >> > > > I must add that a sign of a big breakthrough in NetBeans
> progress
> > is
> > >> > > > historically always right at the point of my greatest despair —
> > >> > > > which is good because that point is now: we’ve missed our
> release
> > >> > > > date, might not make it at all this month, which will have knock
> >

Re: MarkdownViewer module for NetBeans

2020-05-24 Thread John Kostaras
Thank you for the bringing up the plugin Siddhesh. I was not aware of.
However, testing both my plugin and the flow-netbeans-markdown I noticed
that none of them manages to render tables correctly. flow-netbeans-markdown
fails to identify code that is next to each other, e.g. something like this:

```for```.
```bash

```
mixes up for with bash as they are in the same block even though they are
in different lines. It identifies it correctly in source view but not in
Preview! But for this Issues can be opened. :)

Anyway, thanks for pointing it out.

Kind regards,
John.



On Sun, 24 May 2020 at 18:50, Siddhesh Rane 
wrote:

> Hi John,
>
> There is a full fledged plugin for markdown support in netbeans at [1].
> This plugin provides syntax highliting, code structure, code templates,
> live preview and html export. Its based on the depracated pegdown
> processor.
> You can take a look at it and understand about further integration.
>
> [1]: https://github.com/madflow/flow-netbeans-markdown (
> https://github.com/madflow/flow-netbeans-markdown)
>
> Regards
> Siddhesh Rane
>
> May 24, 2020 9:45 AM, "John Kostaras"  jkosta...@gmail.com?to=%22John%20Kostaras%22%20)>
> wrote:
> Hallo all,
>
> when you open a github project in Intellij IDEA, it automatically opens
> the README.md file.
> When you open it in NetBeans, you only see the raw markdown text.
>
> This simple NetBeans module (
> https://github.com/jkost/MarkdownViewerForNetBeans/ (
> https://github.com/jkost/MarkdownViewerForNetBeans/)) implements the
> first and third of the above screenshots (will provide an implementation of
> the middle screenshot soon). The result looks like so. I used flexmark-java
> (https://github.com/vsch/flexmark-java) (which is also used by NetBeans)
> to convert the markdown to HTML to be displayed to a JEditorPane.
> Questions:
>
> 1. How to integrate it to NetBeans source code if it is found useful? Do I
> need to create a plugin, sign it etc, then import it NB or it is easier
> with a pull request?
> 2. Not sure which location it should be added. Inside editor, inside ide?
>
> Any comments/suggestions are welcome.
>
> Kind regards,
>
> John.
>


Re: MarkdownViewer module for NetBeans

2020-05-24 Thread Siddhesh Rane
Hi John, 

There is a full fledged plugin for markdown support in netbeans at [1]. This 
plugin provides syntax highliting, code structure, code templates, live preview 
and html export. Its based on the depracated pegdown processor. 
You can take a look at it and understand about further integration. 

[1]: https://github.com/madflow/flow-netbeans-markdown 
(https://github.com/madflow/flow-netbeans-markdown)

Regards 
Siddhesh Rane 

May 24, 2020 9:45 AM, "John Kostaras" mailto:jkosta...@gmail.com?to=%22John%20Kostaras%22%20)> 
wrote:
Hallo all,

when you open a github project in Intellij IDEA, it automatically opens the 
README.md file.
When you open it in NetBeans, you only see the raw markdown text.

This simple NetBeans module 
(https://github.com/jkost/MarkdownViewerForNetBeans/ 
(https://github.com/jkost/MarkdownViewerForNetBeans/)) implements the first and 
third of the above screenshots (will provide an implementation of the middle 
screenshot soon). The result looks like so. I used flexmark-java 
(https://github.com/vsch/flexmark-java) (which is also used by NetBeans) to 
convert the markdown to HTML to be displayed to a JEditorPane.
Questions:

1. How to integrate it to NetBeans source code if it is found useful? Do I need 
to create a plugin, sign it etc, then import it NB or it is easier with a pull 
request?
2. Not sure which location it should be added. Inside editor, inside ide?

Any comments/suggestions are welcome.

Kind regards,

John.


Re: TravisCI vs Jenkins vs GitHub Actions

2020-05-24 Thread Jan Lahoda
Hi,

I don't mind using a different service, but let me point out the build
currently consumes quite some resources (and is likely to consume more in
the future[1]). I believe ASF is contributing to Travis, so that there are
more concurrent builds available on Travis for us[2]. We should check that
whatever other service we use, we can still test in reasonable time. Also,
I would not want to test less - we should rather test more, to improve
stability.

[1] https://github.com/apache/netbeans/pull/2121
[2] https://blogs.apache.org/infra/entry/apache_gains_additional_travis_ci

Jan

On Sun, May 24, 2020 at 2:05 PM Hector Espert 
wrote:

>  Hi everybody.
>
> I would like to open a discussion about with continuous integration service
> we should use.
>
>
> I like Travis CI, but after deal with it in the Netbeans project, I start
> to think that they aren't a good couple.
>
> There are two Travis CI limits that are a pain in the neck, the log length
> limit and the job limit to 50 min. I found that is a common problem and
> other Apache projects are migrating his pipelines from Travis or are
> thinking about that.
>
>
> https://cwiki.apache.org/confluence/display/FLINK/2020/03/22/Migrating+Flink%27s+CI+Infrastructure+from+Travis+CI+to+Azure+Pipelines
>
>
> https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-23+Migrate+out+of+Travis+CI
>
>
> I would like to suggest two options.
>
> First , the most conservative option, migrate TravisCI pipeline to the
> Apache Jenkins infrastructure.
>
> The problem that i see with this option is if we can integrate the Apache
> Jenkins infrastructure with GitHub to run the test suite for every
> PR/commits and show the results in the GitHub ui.
>
> The other option, is start to test with the GitHub workflows and if they
> are better than TravisCI move to use GitHub workflows instead TravisCI.
>


Re: TravisCI vs Jenkins vs GitHub Actions

2020-05-24 Thread Mario Schroeder
A while ago, I migrated the CI service for my NetBeans plugin from Travis
CI to GitHub Actions. The setup for the new pipeline was quite easy.
I decided for it because:
- It felt natural to have everything in one place.
- No need to give permissions to an app outside.
- You can have several workflows which are separated by file.
- IMHO GitHub's UI looks neater.

Am So., 24. Mai 2020 um 14:05 Uhr schrieb Hector Espert <
hectorespertpa...@gmail.com>:

>  Hi everybody.
>
> I would like to open a discussion about with continuous integration service
> we should use.
>
>
> I like Travis CI, but after deal with it in the Netbeans project, I start
> to think that they aren't a good couple.
>
> There are two Travis CI limits that are a pain in the neck, the log length
> limit and the job limit to 50 min. I found that is a common problem and
> other Apache projects are migrating his pipelines from Travis or are
> thinking about that.
>
>
> https://cwiki.apache.org/confluence/display/FLINK/2020/03/22/Migrating+Flink%27s+CI+Infrastructure+from+Travis+CI+to+Azure+Pipelines
>
>
> https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-23+Migrate+out+of+Travis+CI
>
>
> I would like to suggest two options.
>
> First , the most conservative option, migrate TravisCI pipeline to the
> Apache Jenkins infrastructure.
>
> The problem that i see with this option is if we can integrate the Apache
> Jenkins infrastructure with GitHub to run the test suite for every
> PR/commits and show the results in the GitHub ui.
>
> The other option, is start to test with the GitHub workflows and if they
> are better than TravisCI move to use GitHub workflows instead TravisCI.
>


MarkdownViewer module for NetBeans

2020-05-24 Thread John Kostaras
Hallo all,

when you open a github project in Intellij IDEA, it automatically opens the
README.md file.

[image: Idea-Readme-1.png]


[image: Idea-Readme-2.png]

[image: Idea-Readme-3.png]
When you open it in NetBeans, you only see the raw markdown text.

This simple NetBeans module (
https://github.com/jkost/MarkdownViewerForNetBeans/) implements the first
and third of the above screenshots (will provide an implementation of the
middle screenshot soon). The result looks like so. I used flexmark-java
 (which is also used by NetBeans) to
convert the markdown to HTML to be displayed to a JEditorPane.

[image: NB-Readme.png]


Questions:

1. How to integrate it to NetBeans source code if it is found useful? Do I
need to create a plugin, sign it etc, then import it NB or it is easier
with a pull request?
2. Not sure which location it should be added. Inside editor, inside ide?

Any comments/suggestions are welcome.

Kind regards,

John.


TravisCI vs Jenkins vs GitHub Actions

2020-05-24 Thread Hector Espert
 Hi everybody.

I would like to open a discussion about with continuous integration service
we should use.


I like Travis CI, but after deal with it in the Netbeans project, I start
to think that they aren't a good couple.

There are two Travis CI limits that are a pain in the neck, the log length
limit and the job limit to 50 min. I found that is a common problem and
other Apache projects are migrating his pipelines from Travis or are
thinking about that.

https://cwiki.apache.org/confluence/display/FLINK/2020/03/22/Migrating+Flink%27s+CI+Infrastructure+from+Travis+CI+to+Azure+Pipelines

https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-23+Migrate+out+of+Travis+CI


I would like to suggest two options.

First , the most conservative option, migrate TravisCI pipeline to the
Apache Jenkins infrastructure.

The problem that i see with this option is if we can integrate the Apache
Jenkins infrastructure with GitHub to run the test suite for every
PR/commits and show the results in the GitHub ui.

The other option, is start to test with the GitHub workflows and if they
are better than TravisCI move to use GitHub workflows instead TravisCI.


Introduction

2020-05-24 Thread Tomáš Procházka

Hi,

I've been NetBeans IDE user since version 6.9. I use it mainly for PHP 
development with occasional HTML/JS/XML in my daily job.


I'd like to contribute to PHP editing and tools integration. I'm novice 
in Java and NetBeans development but I started with some smaller PRs.


With regards,

Tomáš Procházka



-
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