You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Korney Czukowski <cz...@seznam.cz> on 2020/03/08 19:12:39 UTC
Issues building on Windows
Hi,
Is there anybody else out there who still uses Windows while working on
NetBeans? I'm asking because I've hit a notorious 'java.io.IOException:
CreateProcess error=206, The filename or extension is too long.' error
while trying to build PHP Editor module, the tests build to be more
specific. It doesn't occur with a full build and I've edited a few other
modules just as well, guess they were not large enough for this error to
appear.
The command I used to build: ant -v -f php/php.editor build (or ant -v
-f php/php.editor clean build, the result is the same). Note, without -v
it just says: "common.xml:627: Error running C:\Program
Files\Java\jdk1.8.0_212\bin\javac.exe compiler" without any details [1].
In verbose mode it shows large lists of files for '-classpath' and
'-processorpath' arguments in compilation arguments as well as the
actual exception.
I've tried to modify the build script to have it generate a jar file
with a manifest and use that in a classpath using Ant Manifestclasspath
task, but it didn't work as it's failed to generate relative paths to
all the jars in the original classpath.
It would also seem like Ant Javac task can use @argfile with the
compiler to pass long command line arguments, but apparently it doesn't
happen with Nb-javac. Is there anything I can do to enable it, is there
any other workaround, or am I out of luck?
Thanks.
[1]
https://github.com/apache/netbeans/blob/master/nbbuild/templates/common.xml#L625-L631
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Issues building on Windows
Posted by Korney Czukowski <cz...@seznam.cz>.
I did try just 'run', but then I'm getting an exception immediately
after I open a project in the dev build, about
java.lang.NoClassDefFoundError:
org/netbeans/modules/php/editor/parser/CUP$ASTPHP5Parser$actions. I've
no idea what it means (my edit was unrelated to the parser), but I found
some mentions of it in the old Bugzilla issues, saying that PHP editor
module should be rebuild, which led me to attempts to run build of that
module.
https://bz.apache.org/netbeans/show_bug.cgi?id=201749#c2
https://bz.apache.org/netbeans/show_bug.cgi?id=214409#c5
09.03.2020 8:31, Geertjan Wielenga wrote:
> You’re doing a build to try out any little change you make?
>
> Gj
>
> On Mon, 9 Mar 2020 at 06:43, Korney Czukowski <cz...@seznam.cz> wrote:
>
>> Mine is located at C:\Workspace\Netbeans\
>>
>> The full build works fine for me too, and the issue I have seems to be
>> with the build step for the unit tests of the PHP Editor module. I think
>> the full build probably doesn't build the tests by default (does it?),
>> but I can't wait for the full build each time I want to try out any
>> little change I make and even if I could, I guess I wouldn't be able to
>> edit and build the tests :(
>>
>>
>> 08.03.2020 23:19, Eirik Bakke wrote:
>>> I build NetBeans regularly on Windows, without problems. Where are your
>> NetBeans sources located? Perhaps the path is too deeply nested into
>> folders, breaking a path name limit somewhere.
>>> (In my case, my NetBeans sources are located in a folder called
>> "Z:\nbsrc\incubator-netbeans", and my Java folder is at "C:\Program
>> Files\Java\zulu-8.0.181".)
>>> -- Eirik
>>>
>>> -----Original Message-----
>>> From: Korney Czukowski <cz...@seznam.cz>
>>> Sent: Sunday, March 8, 2020 3:13 PM
>>> To: dev@netbeans.apache.org
>>> Subject: Issues building on Windows
>>>
>>> Hi,
>>>
>>> Is there anybody else out there who still uses Windows while working on
>> NetBeans? I'm asking because I've hit a notorious 'java.io.IOException:
>>> CreateProcess error=206, The filename or extension is too long.' error
>> while trying to build PHP Editor module, the tests build to be more
>> specific. It doesn't occur with a full build and I've edited a few other
>> modules just as well, guess they were not large enough for this error to
>> appear.
>>> The command I used to build: ant -v -f php/php.editor build (or ant -v
>> -f php/php.editor clean build, the result is the same). Note, without -v it
>> just says: "common.xml:627: Error running C:\Program
>> Files\Java\jdk1.8.0_212\bin\javac.exe compiler" without any details [1].
>>> In verbose mode it shows large lists of files for '-classpath' and
>> '-processorpath' arguments in compilation arguments as well as the actual
>> exception.
>>> I've tried to modify the build script to have it generate a jar file
>> with a manifest and use that in a classpath using Ant Manifestclasspath
>> task, but it didn't work as it's failed to generate relative paths to all
>> the jars in the original classpath.
>>> It would also seem like Ant Javac task can use @argfile with the
>> compiler to pass long command line arguments, but apparently it doesn't
>> happen with Nb-javac. Is there anything I can do to enable it, is there any
>> other workaround, or am I out of luck?
>>> Thanks.
>>>
>>> [1]
>>>
>> https://github.com/apache/netbeans/blob/master/nbbuild/templates/common.xml#L625-L631
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: dev-help@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-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: dev-help@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-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: dev-help@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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Issues building on Windows
Posted by Geertjan Wielenga <ge...@apache.org>.
You’re doing a build to try out any little change you make?
Gj
On Mon, 9 Mar 2020 at 06:43, Korney Czukowski <cz...@seznam.cz> wrote:
> Mine is located at C:\Workspace\Netbeans\
>
> The full build works fine for me too, and the issue I have seems to be
> with the build step for the unit tests of the PHP Editor module. I think
> the full build probably doesn't build the tests by default (does it?),
> but I can't wait for the full build each time I want to try out any
> little change I make and even if I could, I guess I wouldn't be able to
> edit and build the tests :(
>
>
> 08.03.2020 23:19, Eirik Bakke wrote:
> > I build NetBeans regularly on Windows, without problems. Where are your
> NetBeans sources located? Perhaps the path is too deeply nested into
> folders, breaking a path name limit somewhere.
> >
> > (In my case, my NetBeans sources are located in a folder called
> "Z:\nbsrc\incubator-netbeans", and my Java folder is at "C:\Program
> Files\Java\zulu-8.0.181".)
> >
> > -- Eirik
> >
> > -----Original Message-----
> > From: Korney Czukowski <cz...@seznam.cz>
> > Sent: Sunday, March 8, 2020 3:13 PM
> > To: dev@netbeans.apache.org
> > Subject: Issues building on Windows
> >
> > Hi,
> >
> > Is there anybody else out there who still uses Windows while working on
> NetBeans? I'm asking because I've hit a notorious 'java.io.IOException:
> > CreateProcess error=206, The filename or extension is too long.' error
> while trying to build PHP Editor module, the tests build to be more
> specific. It doesn't occur with a full build and I've edited a few other
> modules just as well, guess they were not large enough for this error to
> appear.
> >
> > The command I used to build: ant -v -f php/php.editor build (or ant -v
> -f php/php.editor clean build, the result is the same). Note, without -v it
> just says: "common.xml:627: Error running C:\Program
> Files\Java\jdk1.8.0_212\bin\javac.exe compiler" without any details [1].
> > In verbose mode it shows large lists of files for '-classpath' and
> '-processorpath' arguments in compilation arguments as well as the actual
> exception.
> >
> > I've tried to modify the build script to have it generate a jar file
> with a manifest and use that in a classpath using Ant Manifestclasspath
> task, but it didn't work as it's failed to generate relative paths to all
> the jars in the original classpath.
> >
> > It would also seem like Ant Javac task can use @argfile with the
> compiler to pass long command line arguments, but apparently it doesn't
> happen with Nb-javac. Is there anything I can do to enable it, is there any
> other workaround, or am I out of luck?
> >
> > Thanks.
> >
> > [1]
> >
> https://github.com/apache/netbeans/blob/master/nbbuild/templates/common.xml#L625-L631
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> > For additional commands, e-mail: dev-help@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-unsubscribe@netbeans.apache.org
> > For additional commands, e-mail: dev-help@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-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>
Re: Issues building on Windows
Posted by Korney Czukowski <cz...@seznam.cz>.
Mine is located at C:\Workspace\Netbeans\
The full build works fine for me too, and the issue I have seems to be
with the build step for the unit tests of the PHP Editor module. I think
the full build probably doesn't build the tests by default (does it?),
but I can't wait for the full build each time I want to try out any
little change I make and even if I could, I guess I wouldn't be able to
edit and build the tests :(
08.03.2020 23:19, Eirik Bakke wrote:
> I build NetBeans regularly on Windows, without problems. Where are your NetBeans sources located? Perhaps the path is too deeply nested into folders, breaking a path name limit somewhere.
>
> (In my case, my NetBeans sources are located in a folder called "Z:\nbsrc\incubator-netbeans", and my Java folder is at "C:\Program Files\Java\zulu-8.0.181".)
>
> -- Eirik
>
> -----Original Message-----
> From: Korney Czukowski <cz...@seznam.cz>
> Sent: Sunday, March 8, 2020 3:13 PM
> To: dev@netbeans.apache.org
> Subject: Issues building on Windows
>
> Hi,
>
> Is there anybody else out there who still uses Windows while working on NetBeans? I'm asking because I've hit a notorious 'java.io.IOException:
> CreateProcess error=206, The filename or extension is too long.' error while trying to build PHP Editor module, the tests build to be more specific. It doesn't occur with a full build and I've edited a few other modules just as well, guess they were not large enough for this error to appear.
>
> The command I used to build: ant -v -f php/php.editor build (or ant -v -f php/php.editor clean build, the result is the same). Note, without -v it just says: "common.xml:627: Error running C:\Program Files\Java\jdk1.8.0_212\bin\javac.exe compiler" without any details [1].
> In verbose mode it shows large lists of files for '-classpath' and '-processorpath' arguments in compilation arguments as well as the actual exception.
>
> I've tried to modify the build script to have it generate a jar file with a manifest and use that in a classpath using Ant Manifestclasspath task, but it didn't work as it's failed to generate relative paths to all the jars in the original classpath.
>
> It would also seem like Ant Javac task can use @argfile with the compiler to pass long command line arguments, but apparently it doesn't happen with Nb-javac. Is there anything I can do to enable it, is there any other workaround, or am I out of luck?
>
> Thanks.
>
> [1]
> https://github.com/apache/netbeans/blob/master/nbbuild/templates/common.xml#L625-L631
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@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-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
RE: Issues building on Windows
Posted by Eirik Bakke <eb...@ultorg.com>.
I build NetBeans regularly on Windows, without problems. Where are your NetBeans sources located? Perhaps the path is too deeply nested into folders, breaking a path name limit somewhere.
(In my case, my NetBeans sources are located in a folder called "Z:\nbsrc\incubator-netbeans", and my Java folder is at "C:\Program Files\Java\zulu-8.0.181".)
-- Eirik
-----Original Message-----
From: Korney Czukowski <cz...@seznam.cz>
Sent: Sunday, March 8, 2020 3:13 PM
To: dev@netbeans.apache.org
Subject: Issues building on Windows
Hi,
Is there anybody else out there who still uses Windows while working on NetBeans? I'm asking because I've hit a notorious 'java.io.IOException:
CreateProcess error=206, The filename or extension is too long.' error while trying to build PHP Editor module, the tests build to be more specific. It doesn't occur with a full build and I've edited a few other modules just as well, guess they were not large enough for this error to appear.
The command I used to build: ant -v -f php/php.editor build (or ant -v -f php/php.editor clean build, the result is the same). Note, without -v it just says: "common.xml:627: Error running C:\Program Files\Java\jdk1.8.0_212\bin\javac.exe compiler" without any details [1].
In verbose mode it shows large lists of files for '-classpath' and '-processorpath' arguments in compilation arguments as well as the actual exception.
I've tried to modify the build script to have it generate a jar file with a manifest and use that in a classpath using Ant Manifestclasspath task, but it didn't work as it's failed to generate relative paths to all the jars in the original classpath.
It would also seem like Ant Javac task can use @argfile with the compiler to pass long command line arguments, but apparently it doesn't happen with Nb-javac. Is there anything I can do to enable it, is there any other workaround, or am I out of luck?
Thanks.
[1]
https://github.com/apache/netbeans/blob/master/nbbuild/templates/common.xml#L625-L631
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Issues building on Windows
Posted by Korney Czukowski <cz...@seznam.cz>.
Unfortunately it didn't work for me.
My path is just a little longer: /c/Workspace/Netbeans/ (repo root)
The '-classpath' and '-processorpath' arguments all contain absolute
paths. I guess for the PHP editor module the command line turns out to
be around the border line of max command line length for Windows,
depending on the path to NetBeans repository...
08.03.2020 20:22, Ernie Rael wrote:
> I use Win7, haven't run into this, but...
>
> I just did
>
> * cd /f/repos/netbeans/php/php.editor
> * ant
>
> Finished OK. I recall seeing something about how deep the directory...
>
> -ernie
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Issues building on Windows
Posted by Ernie Rael <er...@raelity.com>.
On 3/8/2020 12:12 PM, Korney Czukowski wrote:
> Hi,
>
> Is there anybody else out there who still uses Windows while working
> on NetBeans? I'm asking because I've hit a notorious
> 'java.io.IOException: CreateProcess error=206, The filename or
> extension is too long.' error while trying to build PHP Editor module,
> the tests build to be more specific. It doesn't occur with a full
> build and I've edited a few other modules just as well, guess they
> were not large enough for this error to appear.
I use Win7, haven't run into this, but...
I just did
* cd /f/repos/netbeans/php/php.editor
* ant
Finished OK. I recall seeing something about how deep the directory...
-ernie
>
> The command I used to build: ant -v -f php/php.editor build (or ant -v
> -f php/php.editor clean build, the result is the same). Note, without
> -v it just says: "common.xml:627: Error running C:\Program
> Files\Java\jdk1.8.0_212\bin\javac.exe compiler" without any details
> [1]. In verbose mode it shows large lists of files for '-classpath'
> and '-processorpath' arguments in compilation arguments as well as the
> actual exception.
>
> I've tried to modify the build script to have it generate a jar file
> with a manifest and use that in a classpath using Ant
> Manifestclasspath task, but it didn't work as it's failed to generate
> relative paths to all the jars in the original classpath.
>
> It would also seem like Ant Javac task can use @argfile with the
> compiler to pass long command line arguments, but apparently it
> doesn't happen with Nb-javac. Is there anything I can do to enable it,
> is there any other workaround, or am I out of luck?
>
> Thanks.
>
> [1]
> https://github.com/apache/netbeans/blob/master/nbbuild/templates/common.xml#L625-L631
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists