RE: Re: Re: Re: How to change text colour in the console

2023-02-25 Thread Peter Ream
FYI

ANSI_RESET has no effect.

System.out.println(ANSI_RED + "This text should be red!" +
ANSI_RESET);
System.out.println("Hello World!”);

Hello World! Is white with / without ANSI_RESET.


Re: Re: Re: How to change text colour in the console

2023-02-25 Thread Peter Ream
Works perfect!

Thank you.

Peter


On Feb 25, 2023 at 9:57:31 AM, Neil C Smith  wrote:

> On Sat, 25 Feb 2023 at 14:47, Peter Ream  wrote:
>
> I can’t get this to work. Probably user error, although I have used NB for
> about 5 years, I’m not too handy into changing a lot of the parameters.
> Here is my simple test copied from Bob T:
>
>
> No, just make sure you're using NetBeans 17, or change the exec plugin
> version to 3.1.0.  I'd missed the relevance of the update in NB17
> here, sorry, https://github.com/apache/netbeans/pull/5111
>
> Neil
>


RE: Re: How to change text colour in the console

2023-02-23 Thread Peter Ream
"Using Maven, it works if passing -DinheritIo=true."

Out of curiosity, can you set this within NB?

On 2023/02/23 14:17:52 Neil C Smith wrote:

On Thu, 23 Feb 2023 at 13:47, Neil C Smith  wrote:

>

> On Thu, 23 Feb 2023 at 12:57, Bob T  wrote:

> >

> > Thank you Neil. It works if I run via the Netbeans terminal as you
suggest. I've created a feature request for consideration by the team:
https://github.com/apache/netbeans/issues/5552

>

> Great!  I've added the contribution welcome label for now.

>

> It could be a good addition, although there are other reasons for

> wanting to run projects in a full terminal as well eg. Console, JLine,

> etc.


Incidentally, just had a quick look and noticed that there is some

support for ANSI colours in the output window - your problem is build

system dependent.  Added a comment to the issue - can track it there.


Best wishes,


Neil


-

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




Thank you.

Peter Ream


RE: Re: How to increase NB Search limit ?

2022-05-07 Thread Peter Ream
Thanks Michael. I have no need for the property changes, just wondering how
it was done.

Peter

On 2022/05/07 17:35:01 Michael Bien wrote:

Hi Peter,


there should be a netbeans_default_options property in your

netbeans.conf with a long line of arguments.


Thats where you can add more JVM arguments, but you have to prefix each

with -J so that the launcher knows that it is for the JVM and not for

the launcher.


-J-Dnetbeans.search.count.limit=2000


would set a property


-J-Xmx3G


would be a JVM flag.



-mbien



On 07.05.22 16:43, Peter Ream wrote:

> I hate to ask such a dumb question, but where are the properties found

> (/Applications/NetBeans/Apache NetBeans

> 13.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf?

> <http://13.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf?>)?

> I don’t see those properties there.

>

> On 2022/05/06 22:36:16 Michael Bien wrote:

>> actually I was wrong - it has been indeed changed into properties not

>> too long ago.

>>

>> try setting the

>> "netbeans.search.count.limit" property. This is the file count limit for

>> results which is set to 500 by default.

>> "netbeans.search.details.count.limit" would be the limit for individual

>> results, its set to 5k by default.

>>

>> there might be good arguments to bump those numbers by default since

>> systems have quite a lot of RAM these days.

>>

>> regards,

>> michael

>>

>> On 06.05.22 19:52, Bilu wrote:

>> >

>> > /this is likely hardcoded, I think I remember seeing some runaway

>> > limits in search code./

>> >

>> > => too bad

>> >

>> > /you could run the same search/replace action multiple times, right?/

>> >

>> > /=> /this /is what i was doing since the morning. it is not very

>> > helpfull with remote folders like smb sharing (very slow)/

>> >

>> > /

>> > /

>> >

>> > Le 06/05/2022 à 19:30, Michael Bien a écrit :

>> >> Hi,

>> >>

>> >> this is likely hardcoded, I think I remember seeing some runaway

>> >> limits in search code.

>> >>

>> >> you could run the same search/replace action multiple times, right?

>> >>

>> >> -mbien

>> >>

>> >>

>> >> On 06.05.22 16:50, Bilu wrote:

>> >>>

>> >>> Hello,

>> >>>

>> >>> When Replacing in a large project i get: *the search was stopped

>> >>> because the limit for number of matching files (500) was reached.*

>> >>>

>> >>> Is there any propertie to override this behavior in the

>> netbeans.conf?

>> >>>

>> >>> Please advise. Same for the 5000 occurrences matches

>> >>>

>> >>

>


RE: Re: How to increase NB Search limit ?

2022-05-07 Thread Peter Ream
I hate to ask such a dumb question, but where are the properties found
(/Applications/NetBeans/Apache
NetBeans 13.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf?)? I
don’t see those properties there.

On 2022/05/06 22:36:16 Michael Bien wrote:

actually I was wrong - it has been indeed changed into properties not

too long ago.


try setting the

"netbeans.search.count.limit" property. This is the file count limit for

results which is set to 500 by default.

"netbeans.search.details.count.limit" would be the limit for individual

results, its set to 5k by default.


there might be good arguments to bump those numbers by default since

systems have quite a lot of RAM these days.


regards,

michael


On 06.05.22 19:52, Bilu wrote:

>

> /this is likely hardcoded, I think I remember seeing some runaway

> limits in search code./

>

> => too bad

>

> /you could run the same search/replace action multiple times, right?/

>

> /=> /this /is what i was doing since the morning. it is not very

> helpfull with remote folders like smb sharing (very slow)/

>

> /

> /

>

> Le 06/05/2022 à 19:30, Michael Bien a écrit :

>> Hi,

>>

>> this is likely hardcoded, I think I remember seeing some runaway

>> limits in search code.

>>

>> you could run the same search/replace action multiple times, right?

>>

>> -mbien

>>

>>

>> On 06.05.22 16:50, Bilu wrote:

>>>

>>> Hello,

>>>

>>> When Replacing in a large project i get: *the search was stopped

>>> because the limit for number of matching files (500) was reached.*

>>>

>>> Is there any propertie to override this behavior in the netbeans.conf?

>>>

>>> Please advise. Same for the 5000 occurrences matches

>>>

>>


RE: RE: [NB13] [Maven] [POM] Netbeans 13 Maven POM problem

2022-03-08 Thread Peter Ream
Dave, thanks for your input. It is not necessary to have Security & Privacy
unlocked before the trigger. Unlocking is necessary for deleting the app
from Files and Folders. I was able to delete NB12.6 from Files and Folders,
and get the retriggerr on first ~/Documents access. This mechanism I didn’t
understand and now is clear. Installing NB13 thru Carl’s installer
(basically downloading and manually building “Apache Netbeans 13.app) does
not get this trigger mechanism. I am able to move forward with NB13, just
with my projects outside ~/Documents, no big deal. Hopefully, the MacOS
installer will resolve that when it is ready.


RE: Re: Re: [NB13] [Maven] [POM] Netbeans 13 Maven POM problem

2022-03-06 Thread Peter Ream
Are you running same environment as me? Latest release Monterey 12.2.1 on
Apple Silicon? I modified init.sh as I outlined in my last post with xattr.
I don’t think this had any affect.

Gj, this has to be an installer issue and not related to the project. I
created a “Java with Maven | Java Application” on NB13. This generates main
class “Hello World.” It runs, no problem. I opened on NB12.6 and it ran
fine. I changed it on NB12.6, no problem and opened on NB13, no problem.
Deleted project. Created on NB12.6 same way, but had to make my own main
class as it does not. It ran no problem. Opened on NB13, unloadable. None
of my NB12.6 projects will load on NB13. Either there is a problem with
this method of installation or there is a problem with NB13 in my
environment.

On 2022/03/06 21:03:15 Carl Mosca wrote:

What were the modifications?  The script has a fair number of options that

folks contributed so that it shouldn’t need modification.


I used it to install 13 unmodified and I am not having application, file or

directory read write or execute permission issues.


But it’s difficult to diagnose without an example as Gj has pointed out.





On 2022/03/06 21:03:15 Carl Mosca wrote:

What were the modifications?  The script has a fair number of options tha,

folks contributed so that it shouldn’t need modification.


I used it to install 13 unmodified and I am not having application, file or

directory read write or execute permission issues.


But it’s difficult to diagnose without an example as Gj has pointed out.


RE: Re: [NB13] [Maven] [POM] Netbeans 13 Maven POM problem

2022-03-06 Thread Peter Ream
Still not there, but have a different result. I’m still using
carljmosca/netbeans-macos-bundle:
NetBeans installation script for Mac OS X (github.com)
. After downloading
the code, I modified install.sh. After the netbeans download, I added xattr
to downloaded zip.

.
.
.
echo "Unpacking Netbeans archive..."
*xattr -dr com.apple.quarantine "${TMPFILE}"*
${SUDO_COMMAND}unzip ${QUIETUNZIP} "${TMPFILE}" -d
"${INSTALL_DIR}/NetBeans/Apache NetBeans
${NETBEANS_VERSION}.app/Contents/Resources/“
.
.
.

Now when I try to open an existing project, I get, “project is not a valid
Netbeans project.”

Might just have to wait for MacOS installer.

On 2022/03/06 17:16:59 Giles Winstanley wrote:

The downloaded zip file would likely be flagged by macOS as quarantined,

so it's very likely needs the flag removed for the application to

function as expected. This can either be done on the zip file before

unzipping, or on the contents afterwards.

 xattr -r -d com.apple.quarantine 


Clearly you need to have trust in the contents of the folder to take

this avenue, so I'm assuming the PGP/SHA checks have been done as

appropriate. Once the quarantine flag is removed it should hopefully be

back working as expected, although since you've already tried opening

the application previously, it's probably worth giving it a fresh start

before launch by deleting the new configuration it made and letting it

import from a previous version as needed:

 rm -rf "$HOME/Library/Application Support/NetBeans/13"


Hope that helps,


Stan





On 2022/03/06 17:16:59 Giles Winstanley wrote:

The downloaded zip file would likely be flagged by macOS as quarantined,

so it's very likely needs the flag removed for the application to

function as expected. This can either be done on the zip file before

unzipping, or on the contents afterwards.

 xattr -r -d com.apple.quarantine


Clearly you need to have trust in the contents of the folder to take

this avenue, so I'm assuming the PGP/SHA checks have been done as

appropriate. Once the quarantine flag is removed it should hopefully be

back working as expected, although since you've already tried opening

the application previously, it's probably worth giving it a fresh start

before launch by deleting the new configuration it made and letting it

import from a previous version as needed:

 rm -rf "$HOME/Library/Application Support/NetBeans/13"


Hope that helps,


Stan


RE: Re: Re: [NB13] [Maven] [POM] Netbeans 13 Maven POM problem

2022-03-06 Thread Peter Ream
Last login: Sun Mar  6 12:42:40 on ttys000

userid@Peters-MacBook-Air Handicap % ls -l

total 32

-rw-r--r--  1 userid  staff  1028 Jan 25 12:42 nb-configuration.xml

-rw-r--r--  1 userid  staff  2309 Jan 25 12:42 nbactions.xml

-rw-r--r--  1 userid  staff  5336 Nov 16 14:14 pom.xml

drwxr-xr-x  5 userid  staff   160 Jan 25 12:42 src

userid@Peters-MacBook-Air Handicap %


Userid is me.


RE: Re: [NB13] [Maven] [POM] Netbeans 13 Maven POM problem

2022-03-06 Thread Peter Ream
Carl, I think permission/ownership is the problem. Not sure what I need to
do. I substituted “user” for my userid.

Stan. I think you are onto something. I have always used the installers to
install NB. Used this script for the first time. Took awhile to figure it
out. I do see this:

userid@Peters-MacBook-Air NetBeans % ls -l

total 0

drwxrwxr-x  4 userid admin  128 Dec  6 13:50 Apache NetBeans 12.6.app

drwxr-xr-x  3 root   wheel   96 Mar  6 10:56 Apache NetBeans 13.app

userid@Peters-MacBook-Air NetBeans %


I see NB13 is owned by root where NB12.6 is owned by me. Could this be
causing the issue?


All checksums are in order. I have run into that quarantining issue before,
but not sure that is the issue here.

Peter


[NB13] [Maven] [POM] Netbeans 13 Maven POM problem

2022-03-06 Thread Peter Ream
I installed NB13 using carljmosca/netbeans-macos-bundle: NetBeans
installation script for Mac OS X (github.com)
 on MacOS 12.2.1 on
MacBook Air M1. The install went without a hitch. However none of my maven
projects will open. I get:

1 problem was encountered while building the effective model
[FATAL] Non-readable POM /Users/user/Documents/Java
Projects/NetBeansProjects/Maven/Test/DRHandicapMonitor/pom.xml:
/Users/user/Documents/Java
Projects/NetBeansProjects/Maven/Test/DRHandicapMonitor/pom.xml (Operation
not permitted) @
 for project  at /Users/user/Documents/Java
Projects/NetBeansProjects/Maven/Test/DRHandicapMonitor/pom.xml

When I try “Resolve Problem”, I get:

cd /Users/user/Documents/Java
Projects/NetBeansProjects/Maven/Test/Handicap;
JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
"/Applications/NetBeans/Apache NetBeans
13.app/Contents/Resources/NetBeans/java/maven/bin/mvn" -DskipTests=true
--fail-at-end package
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: Operation not permitted
pwd: error retrieving current directory: getcwd: cannot access parent
directories: Operation not permitted
pwd: error retrieving current directory: getcwd: cannot access parent
directories: Operation not permitted
chdir: error retrieving current directory: getcwd: cannot access parent
directories: Operation not permitted
chdir: error retrieving current directory: getcwd: cannot access parent
directories: Operation not permitted
pwd: error retrieving current directory: getcwd: cannot access parent
directories: Operation not permitted
Scanning for projects…

There appears to be a problem with accessing the POM. I have “Files and
Folders” and “Full Disk Access” set for NB13.

Any ideas?


RE: Re: NetBeans freezes randomly

2022-01-12 Thread Peter Ream
ansmitida está destinada únicamente a la persona o

> entidad a quien que va dirigida y puede contener información confidencial

> y/o material privilegiado. Cualquier revisión, retransmisión, difusión u

> otros usos, o cualquier acción tomada por personas o entidades distintas
al

> destinatario basándose en esta información está prohibida. Si usted recibe

> este mensaje por error, por favor contacte al remitente y elimine el

> material de cualquier computadora.

>



Thank you.

Peter Ream


RE: Blank Terminal window on M1 Mac with Netbeans 12.5

2021-11-13 Thread Peter Ream
This works fine on M1 Macbook Air with Big Sur 11.6.1.

On 2021/11/12 20:34:54 Tim Mullé wrote:
> Hi,
> 
> Just found something interesting when running Netbeans on my new M1 Mac 
> (Silicon) Monterey 12.0.1 with JDK 11 or JDK17 where
> the “Open in Terminal” option under the Tools menu opens a blank terminal.
> 
> This didn’t happen on Big Sur x86_64 with either JDK..
> 
> Plus, I don’t seem to get any errors in the IDE LOG.
> 
> 
-
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



Deployment Tutorial Source Files

2021-04-21 Thread Peter Ream
I am looking at the netbeans website “Java SE Learning Trail”, specifically
“Packaging and Distributing Java Desktop Application.” There is a reference
to “Deployment Tutorial Source Files” :

https://netbeans.org/projects/samples/downloads/download/Samples%252FJava%252FDeploymentTutorial.zip

Does this zip file exist somewhere since decommissioning netbeans.org?

Thank you.


Java - System.out.print("Command: "); problem

2020-09-18 Thread Peter Ream
 I had a java program that worked in mood.fi’s plugin in netbeans. I tried
it in Netbeans 12.0, but it would not work. Here is an example that does
not work in Netbeans 12:

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner scanner = new Scanner(System.in);
while (true) {
System.out.print("Command: ");
String command = scanner.nextLine();
System.out.println("Bye bye!");
break;
}
}
}
}

I have prior versions of Netbeans lying around. I found this works up
through 11.1, but does not work in 11.3.

Any ideas?

Thank you.

Peter


_remote.repositories FileLockInterruptionException NB 12.0

2020-08-27 Thread Peter Ream
I'm having a problem on Netbeans 12.0 using maven. I have an internal class
Icontils that I use in several projects. Everytime I try to delete or move
a project with this dependency, I get the error below. If I do the move or
delete from Netbeans 11.3, no problem. I am using maven bundled with both.
I have maven 3.6.1 installed and tried it. Works on 11.3, but not on 12.0.
The permissions for _remote.repositories look fine.

Mac OSX 10.15.6.

[exec_Delete Project_1] WARNING
org.eclipse.aether.internal.impl.TrackingFileManager - Failed to read
tracking file
/Users/USER/.m2/repository/org/todivefor/IconUtils/1.0/_remote.repositories
java.nio.channels.FileLockInterruptionException
at sun.nio.ch.FileChannelImpl.lock (FileChannelImpl.java:1138)
at org.eclipse.aether.internal.impl.TrackingFileManager.lock
(TrackingFileManager.java:207)
at org.eclipse.aether.internal.impl.TrackingFileManager.read
(TrackingFileManager.java:61)
at
org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManager.readRepos
(EnhancedLocalRepositoryManager.java:169)
at org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManager.find
(EnhancedLocalRepositoryManager.java:93)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve
(DefaultArtifactResolver.java:317)
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts
(DefaultArtifactResolver.java:229)
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact
(DefaultArtifactResolver.java:207)
at
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom
(DefaultArtifactDescriptorReader.java:240)
at
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor
(DefaultArtifactDescriptorReader.java:171)
at
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.resolveCachedArtifactDescriptor
(DefaultDependencyCollector.java:541)
at
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.getArtifactDescriptorResult
(DefaultDependencyCollector.java:524)
at
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.processDependency
(DefaultDependencyCollector.java:412)
at
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.processDependency
(DefaultDependencyCollector.java:365)
at
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.process
(DefaultDependencyCollector.java:352)
at
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.collectDependencies
(DefaultDependencyCollector.java:254)
at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies
(DefaultRepositorySystem.java:284)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve
(DefaultProjectDependenciesResolver.java:169)
at org.apache.maven.project.DefaultProjectBuilder.resolveDependencies
(DefaultProjectBuilder.java:227)
at org.apache.maven.project.DefaultProjectBuilder.build
(DefaultProjectBuilder.java:200)
at org.apache.maven.project.DefaultProjectBuilder.build
(DefaultProjectBuilder.java:124)
at
org.netbeans.modules.maven.embedder.MavenEmbedder.readProjectWithDependencies
(MavenEmbedder.java:240)
at org.netbeans.modules.maven.NbMavenProjectImpl.loadMavenProject
(NbMavenProjectImpl.java:302)
at org.netbeans.modules.maven.execute.BeanRunConfig.getMavenProject
(BeanRunConfig.java:153)
at
org.netbeans.modules.maven.execute.MavenCommandLineExecutor$ExecuteMaven$1.taskFinished
(MavenCommandLineExecutor.java:152)
at org.openide.util.Task.notifyFinished (Task.java:215)
at org.netbeans.core.execution.ExecutorTaskImpl.finished
(ExecutorTaskImpl.java:64)
at org.netbeans.core.execution.RunClassThread.run
(RunClassThread.java:150)

Thank you.

Peter