Re: GenAI for Netbeans

2023-12-20 Thread Oliver Rettig
Hi,
Is there any concrete idea how the functionality should looks like? UI? To 
realise the ability to put  in an text line and to get result answer and  if 
it is code put it into an text editor automatically is not a big deal for a 
netbeans-plugin. But also the benefit is not very big. I use such tools with a 
browser and copy and paste works fine for me.
best regards
Oliver
> Are there any attempts to add GenAi, Github Copilot or ChatGPT to Netbeans?
> Our company is pushing developers to switch to IntelliJ with Github Copilot,
> but I do not want to leave Netbeans that I am using for almost quarter of a
> century.
> 
> 
> Gary Greenberg
> 
> Staff Software Engineer





-
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



Module com.jcraft.jsch in ide requests the token libs.c.kohlschutter.junixsocket but there are no known providers.

2023-03-10 Thread Oliver Rettig
Hi,

after upgrading my netbeans RCP application to netbeans-17 I got the following 
unsresolved module problem:

Module com.jcraft.jsch in ide requests the token 
libs.c.kohlschutter.junixsocket but there are no known providers.

I do not know in which module this token is defined. I think I have tried out 
all of the module in the clusters ide, nb, platform but cauld not find it. 

Does somebody knows which modules implement the requested token?

Or any idea how to find out which module contains it?

best regards
Oliver



-
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: Embedded Language Question

2023-01-08 Thread Oliver Rettig
Hi,

maybe I have not correctly understand what "Admin Netcrystals" wants to do and 
it is not the same what I am interested. 

ok, we are both interested in embedding a new language. My specific interest is 
to embed code written in my new language into a java source file.

Similar things with embedding sql, e.g.

https://www.ibm.com/docs/en/i/7.2?topic=essiyja-example-embedding-sql-statements-in-your-java-application


>Here is a sample of Language embedding:
>
>https://github.com/apache/netbeans/blob/
>40c25f50231290122f559a4f598624843662ee32/java/languages.antlr/src/org/
>netbeans/modules/languages/antlr/AntlrTokenId.java#L70

The module languages.antlr. What is its functionality in the netbeans ide?

best regards
Oliver
best regards
Oliver

> ???
> 
> On 1/8/23 20:47, Tim de Vries wrote:
> > If I had to weigh in, it would be nice to be able to contribute some
> > of the code I don’t understand.
> > 
> > I would like to be able to provide, for example, class and method names
> > from jars, similar to IntelliJ, but for all on classpath. There will
> > probably always be straggler jars.
> > 
> > Also, stopping the auto class path scanning. It says it should be
> > background, but isn’t. Also removing jars from the classpath for
> > plain java projects, that’s a real bear but wrote a class to ctrl then
> > click the shit out of that.
> > 
> > Tim
> > 
> > Sent from my iPhone
> > 
> >> On Jan 8, 2023, at 1:59 PM, Oliver Rettig  wrote:
> >> 
> >> Hi,
> >> 
> >> I am also interested in such functionality to put code written in our
> >> DSLs
> >> into java source code. In the meantime we put the code in extra files
> >> with
> >> specific filesuffix and use the netbeans api for syntax highlighting etc.
> >> 
> >> best regards
> >> Oliver
> >> 
> >>> Hi,
> >>> I have got a question regarding the embedded language support of
> >>> Netbeans.
> >>> 
> >>> 
> >>> If I write my own grammer/dsl with JavaCC and my language contains a
> >>> specific tag that marks the beginning and ending of an embedded
> >>> language,
> >>> lets say Java, does Netbeans automatically take Lexer, Parsers,
> >>> CodeCompletion etc. from the embedded language?
> >>> 
> >>> 
> >>> What I found out is that there are two possibilities. The first uses the
> >>> xml file for defining the start/end tag. The second way is the
> >>> programmatical approach, I think using the Lexer class. Does anyone of
> >>> you know a short example for both strategies? Are there any tutorials
> >>> available? I would specially be interested in the xml approach Thanks.
> >>> 
> >>> 
> >>> Gesendet vonOutlook für iOS
> >>> -
> >>> 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
> >> 
> >> -
> >> 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
> > 
> > -
> > 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
> 
> -
> 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





-
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: Embedded Language Question

2023-01-08 Thread Oliver Rettig
Hi,

I am also interested in such functionality to put code written in our DSLs 
into java source code. In the meantime we put the code in extra files with 
specific filesuffix and use the netbeans api for syntax highlighting etc.

best regards
Oliver

> Hi,
> I have got a question regarding the embedded language support of Netbeans.
> 
> 
> If I write my own grammer/dsl with JavaCC and my language contains a
> specific tag that marks the beginning and ending of an embedded language,
> lets say Java, does Netbeans automatically take Lexer, Parsers,
> CodeCompletion etc. from the embedded language?
> 
> 
> What I found out is that there are two possibilities. The first uses the xml
> file for defining the start/end tag. The second way is the programmatical
> approach, I think using the Lexer class. Does anyone of you know a short
> example for both strategies? Are there any tutorials available? I would
> specially be interested in the xml approach Thanks.
> 
> 
> Gesendet vonOutlook für iOS
> -
> 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





-
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: removing the "new project" support for Ant projects

2021-04-23 Thread Oliver Rettig
+1 for better ivy integration
> On 23.04.2021 15:22, Laszlo Kishalmi wrote:
> > Ant projects can be fairly simply can be migrated to Gradle. It can
> > support your current folder structure. Your file/directory based library
> > dependencies, and occasional customization you made.
> 
> Been there, tried that, and failed.
> If you have a working Ant project keep it. To convert it to Gradle only
> because it is the new-kid-on-the-block is, in my opinion, a wrong move.
> 
> I considered to convert to Gradle to get dependency management but in
> the end it was easier to add Ivy instead of working out how to convert
> some tweaks and tricks, if possible at all. And I would love to have a
> better Ivy integration in NB instead of making Ant a 2nd-class citizen.
> 
> Just my 2 cent.
> 
> 
> --
> Christoph
> 
> -
> 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: removing the "new project" support for Ant projects

2021-04-22 Thread Oliver Rettig
+1
> On Thu, 22 Apr 2021 at 08:15, Geertjan Wielenga
> 
>  wrote:
> > should we consider downplaying the prominence of Ant by removing from
> > NetBeans the ability to create new Ant projects
> -1 from me.  I think we made the right steps previously, and perhaps
> should look at whether particular templates need updating or removing
> entirely.  But Ant still has its place, particularly with regard to
> the platform.
> 
> I'd also prefer an unopinionated IDE.  And from an ASF perspective,
> Ant is still an active project here - Apache's IDE should possibly not
> be deciding when it's time to retire it! :-)
> 
> 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




Re: master password

2021-03-22 Thread Oliver Rettig
If I remember correct the password requests can come from 
proxy-configuration.

> I recently switched from KDE to MATE (on Linux) and now I'm 
frequently
> seeing the "enter master password" dialog. Mr Google has 
offered various
> exotic manual methods to make it go away, but is there a 
way from within
> NetBeans?




Re: Netbeans + Prolog

2021-01-30 Thread Oliver Rettig
Hi Dawn,

the tutorial  describes how to make Syntax-Highlighting with the Schliemann 
tool but this is 
dead. I think Syntaxhighlighting+FileType-Def in netbeans for Prolog should be 
very easy to 
implement by TextMate.

We have some students at the DHBW-Karlsruhe working on Netbeans-Support of our 
DSL 
"prepro". This is based on LSP but this is much more complex but this way  
looks also very 
promising.

I also think about tooling for AI programming with java and netbeans for our 
students. So I 
am interested in what your are planed and your experiences. We have expierences 
with DL4J 
and we think about to try mlib.  

best regards
Oliver


---
https://www.karlsruhe.dhbw.de/dr-rettig.html

Hi folks, 
As part of my AI and AI Programming module this coming semester, we'll be doing 
a fair 
chunk of Prolog experimentation + development, and I'd really like to use NB 
for this if 
possible. I really don't fancy learning a new editor and a new language at the 
same time.


I've had a bit of a scout about, and there are lots of 10 year old posts on the 
subject of 
integrating NB and Prolog, but nothing newer pops up than a stray plugin 
claiming to be for 
NB 7.1, but it's homepage is long gone so I can't verify it's veracity. 
There is this - https://platform.netbeans.org/tutorials/60/nbm-prolog.html[1], 
but the links to 
other resources at the bottom are all long dead too.


Does anyone have experience of setting anything up like this within NB? Happy 
to work on a 
shared plugin and bring it up to 12.x compatibility if anyone has any pointers 
to do so? 
Thanks, 
Dawn Raison






[1] https://platform.netbeans.org/tutorials/60/nbm-prolog.html


Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-21 Thread Oliver Rettig
Hi, 

It is only a warning that the file maybe is too big. There are lots of 
configuration possibilities 
available for experiences users. 

Maybe a central page in the wiki which collects all the settings/properties 
would be fine.

Is there such a collection somewhere? Where can it place in the apache netbeans 
site?

Oliver


I think the software program sucks if the software did not advise user in the 
error message 
to adjust  the parameter.
 J-Dorg.openide.text.big.file.size=10.
















On Mon, 21 Dec 2020, 08:34 Oliver Rettig,  wrote:


Hi all,
 
Neil is completely right - thanks for the hint.
 
The warning is opened if a configurable maximum file size is reached. The 
default value for 
this is 1MB and can be increased by by adding system property, e.g.
 
-J-Dorg.openide.text.big.file.size=10
 
I will think about to use this mechanism also for my scientific netbeans 
platform 
applications, if i open data files to be plotted.
 
best regards
Oliver
> On Sun, 20 Dec 2020 at 16:25, Oliver Rettig <_Oliver.Rettig@orat.de_> wrote:
> > I remember also got such messages in the past during opening big text
> > files in my netbeans-platform applications and with increasing heap-size
> > I cauld not get rid of the message. In my cases after closing the dialog
> > all works fine. So I dont have a closer look at this. Maybe there is
> > simple somewhere hardcoded a maximum file size and after reaching this
> > size the dialog is thrown.
> > 
> > I am also interested in, if you can fix this.
> 
> It's probably this?
> https://github.com/apache/netbeans/blob/master/platform/openide.loaders/src/[2]
> org/openide/text/DataEditorSupport.java#L853
> 
> Should be able to set that system properly to a MB value greater than
> 1 by the look of it.
> 
> Best wishes,
> 
> Neil
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org[3]
> For additional commands, e-mail: users-h...@netbeans.apache.org[4]
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists[5]

Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-21 Thread Oliver Rettig
Hi all,

Neil is completely right - thanks for the hint.

The warning is opened if a configurable maximum file size is reached. The 
default value for 
this is 1MB and can be increased by by adding system property, e.g.

-J-Dorg.openide.text.big.file.size=10

I will think about to use this mechanism also for my scientific netbeans 
platform 
applications, if i open data files to be plotted.

best regards
Oliver
> On Sun, 20 Dec 2020 at 16:25, Oliver Rettig  wrote:
> > I remember also got such messages in the past during opening big text
> > files in my netbeans-platform applications and with increasing heap-size
> > I cauld not get rid of the message. In my cases after closing the dialog
> > all works fine. So I dont have a closer look at this. Maybe there is
> > simple somewhere hardcoded a maximum file size and after reaching this
> > size the dialog is thrown.
> > 
> > I am also interested in, if you can fix this.
> 
> It's probably this?
> https://github.com/apache/netbeans/blob/master/platform/openide.loaders/src/
> org/openide/text/DataEditorSupport.java#L853
> 
> Should be able to set that system properly to a MB value greater than
> 1 by the look of it.
> 
> 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




Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-20 Thread Oliver Rettig
Hi,

I remember also got such messages in the past during opening big text files in 
my netbeans-
platform applications and with increasing heap-size I cauld not get rid of the 
message. In my 
cases after closing the dialog all works fine. So I dont have a closer look at 
this. Maybe there 
is simple somewhere hardcoded a maximum file size and after reaching this size 
the dialog 
is thrown. 

I am also interested in, if you can fix this.

best regards
Oliver


Hello,
I am running NetBeans 12 in Ubuntu 14.04. When trying to load a file of text, I 
get the 
message "It seems that the file is too big to open safely...etc...". I have 
changed the 
netbeans.conf and app.conf files to include


-J-Xms512m -J-Xmx2048m


but I still get the error. I want to try increasing the allocation(s) for the 
JVM itself, but I can't 
find instructions to do that when you're using NetBeans, only for times when 
you're running 
"javac" and "java" commands in a terminal -- my installation doesn't recognize 
the "java" 
command - if it did I'd enter




java -J-Xms512m -J-Xmx2048m 




Any suggestions?


Thanks.




Chris Lanz
Department of Computer Science
340 Dunn Hall, SUNY Potsdam
lan...@potsdam.edu
315 267 2407
315 268 1547


Nature and nature's laws lay hid in night:God said, /Let Newton be!/ and all 
was light. (Pope)

It did not last: the Devil howling "Ho!Let Einstein be!" restored the status 
quo. (Squire)








Re: Dead code detection

2020-09-15 Thread Oliver Rettig
Hi Mark,

thanks for the link but this is not the code - not even an Netbeans plugin. But 
it is interesting 
to have a look into the source code. The code can be used by an ant-task, so 
maybe it is 
usable in the netbeans IDE.

best regards
Oliver
> The code appears to be here:
> 
> https://github.com/evernat/dead-code-detector
> 
> I just found it with a little searching. I have no idea what state the
> code is in, how to create a plugin from it, or how it handles newer
> versions of Java.
> 
> . . . just my two cents
> /mde/
> 
> On 9/15/2020 12:28 PM, Oliver Rettig wrote:
> > Hi all,
> > 
> > I need functionality in Netbeans to find dead code. Andy ideas about a
> > plugin?
> > 
> > I have found
> > 
> > https://blogs.oracle.com/geertjan/dead-code-detection-with-netbeans-ide
> > 
> > but it is outdated and I can not find the source code. Maybe this plugin
> > can help
> > 
> > @Geertjan have you saved this code somewhere?
> > 
> > In concrete we have a java library project which is a Wrapper to a c++
> > native lib. To create a platform independent jar-file we want to add the
> > native code build for several operating systems into the the jar.
> > 
> > We found that the
> > 
> > https://jogamp.org/
> > 
> > project includes great code to do this but the code is part of a big
> > project. Not the state is that we have a copy a subset of the classes
> > which seems to be needed into our project. But most of this code is not
> > needed. There are too many classes/methods we have now to check if they
> > are really needed. Thats why we need a tool in the Netbeans IDE to
> > automatize this.
> > 
> > best regards
> > Oliver




Re: Dead code detection

2020-09-15 Thread Oliver Rettig
Hi Neil,

thanks for the hint to LWJGL. Do you know where in the repository 
https://github.com/LWJGL 
the code for jative-jar building resides?

I think it makes sense to evaluate other possibilities for us. We are often in 
the situation 
native-jars would be great. So we think about to create a seperate open source 
project with 
libs and tools to do this.

best regards
Oliver




On Tue, 15 Sep 2020, 20:29 Oliver Rettig,  wrote:




In concrete we have a java library project which is a Wrapper to a c++ native 
lib. To create a 
platform independent jar-file we want to add the native code build for several 
operating 
systems into the the jar.
 
We found that the
 
https://jogamp.org/[2] 
 
project includes great code to do this but the code is part of a big project.


Partly OT - JogAmp might not be the best starting point. Pretty sure LWJGL Core 
will do this, 
and it's much more modularized so this bit might be small enough as is. JNA 
also has some 
code that does this IIRC.


Best wishes, 


Neil





[1] mailto:oliver.ret...@orat.de
[2] https://jogamp.org/


Dead code detection

2020-09-15 Thread Oliver Rettig
Hi all,

I need functionality in Netbeans to find dead code. Andy ideas about a plugin?

I have found

https://blogs.oracle.com/geertjan/dead-code-detection-with-netbeans-ide

but it is outdated and I can not find the source code. Maybe this plugin can 
help

@Geertjan have you saved this code somewhere?

In concrete we have a java library project which is a Wrapper to a c++ native 
lib. To create a 
platform independent jar-file we want to add the native code build for several 
operating 
systems into the the jar. 

We found that the

https://jogamp.org/ 

project includes great code to do this but the code is part of a big project. 
Not the state is 
that we have a copy a subset of the classes which seems to be needed into our 
project. But 
most of this code is not needed. There are too many classes/methods we have now 
to check 
if they are really needed. Thats why we need a tool in the Netbeans IDE to 
automatize this.

best regards
Oliver


Re: MissingResourceException

2020-01-14 Thread Oliver Rettig
Hi Marco,

sometimes I get also the "MissingResource" exceptions for @Message annotations 
in bigger 
ant based platform apps. I cauld resolve this by invocing clean-build by hand 
for single 
modules. The difficulty was to find out the sequence of modules I have to do 
this. This was 
difficult because the update of the tagged icon to show that an error was 
resolved is not 
working in all cases. 

So it would be great if somebody can figure out the origin of this problem. 
Thanks for writing 
the sequence of steps to reproduce the problem. I think this is a good starting 
point. 

Is there anybody who has an idea why this cauld happen.

best regards
Oliver


Is this an ant or maven-based project?
 
Does doing a clean build fix the problem?
 
(When working with NetBeans platform applications, I find that many annotation 
changes 
will require a complete clean build of the entire project. For this reason I 
will probably move 
away from @Message annotations, and just write my own Bundle files.)
 
-- Eirik
 
*From:* Marco Rossi  

*Sent:* Tuesday, January 14, 2020 4:52 AM

*To:* List NetBeans Mailing 

*Subject:* MissingResourceException
 
Hi guys,
I’ve started to use Apache Netbeans 11.2 and I’m issuing an annoying strange 
behaviour that 
I can reproduce following these steps:
 1. created a new project of type Netbeans Platform Application;
 2. added a new module to my application;
 3. added a new TopComponent window with a button on it;
 4. localized the Bundle.properties to my language Bundle_it_IT.properties;
 5. localized the button of my TopComponent. Build and Run and everything 
works well as 
expected…
 6. … now added a new JPanel form, with a JLabel that I localized… try to 
build again but it 
fails with the error 
 
It seems to be an issue related to the @Message annotations and other keys in 
Bundle.properties file. Due to this I’m unable to put a TopComponent and a 
JPanel in the 
same package.
Anyone else has got this problem?
 
Marco Rossi 
Inviato dal suo MacBookPro
 
 
 
  




[1] mailto:ma...@markreds.it


Re: Auto-backup of unsaved source files

2019-12-10 Thread Oliver Rettig
I have just found an other one:

http://plugins.netbeans.org/plugin/63714/autosavemodified


I just installed it in 11.1. No objections from the IDE but I have it turned on 
in Options/
Miscellaneous and a file I have open and edited is not being auto-saved. Based 
on this, I'd 
say it does not appear to work. :(
---






On 2019-12-10 12:26, John Barrow wrote:
Slim,
 
Thanks, that plug in appears to describe exactly what I was after, just one 
minor issue, I am 
running Netbeans 10.0, shortly to upgrade to version 11. There doesn't appear 
to be a 
version to support these instances of NetBeans.
 
However, I have bookmarked the page and will keep an eye on when that version 
becomes 
available unless there is another AutoSave plug-in that is more up-to-date.
 
John
 
*From: *Paul "TheSlimDude" Morris[1]
*Sent: *10 December 2019 16:42

*To: *users@netbeans.apache.org[2]
*Subject: *Re: Auto-backup of unsaved source files
 
You mean this on ehere?
http://plugins.netbeans.org/plugin/37077/autosave-module-for-6-9-and-later[3]
---


 
On 2019-12-10 11:39, Oliver Rettig wrote:
Hi,
I remember there was a Autosave-Plugin but I can not find it any more. Any body 
else 
remembering on such plugin?
best regards
Oliver
Emilian,
 
Thanks for the suggestion. I tried this option (as was hinted during a Google 
search) before 
emailing but there wasn't anything in the list. I assume that this is because 
it was a new file 
and I hadn't saved it yet.
 
I ideally wanted something that did an auto-snapshot every x minutes (user 
specified) 
somewhere external to the main source folder, specifically for the case where I 
hadn't yet 
saved my current set of changes so I then had the option to retrieve these 
latest 'in progress' 
edits, or start back with the last version that was saved in Netbeans.
 
The way I read it, the "Local History" allows you to see all the previous saved 
snapshots of 
your source (a bit like you get for each committed change to a source control 
system).
 
John
 
*From: *Emilian Bold[4]
*Sent: *10 December 2019 15:36

*To: *John Barrow[5]
*Cc: *NetBeans Mailing[2]
*Subject: *Re: Auto-backup of unsaved source files
 
See Local History.
--emi
 
mar., 10 dec. 2019, 16:58 John Barrow  a scris:
Is there an option for Netbeans to auto-save your work every (say) 5 minutes so 
that if 
Windows reboots (for example after an update) and you have forgotten to 
formally save 
work to date, there is a place to go (e.g. specified folder) that will have the 
version of source 
just before (or near enough if set the snapshot to be taken every minute) the 
application was 
closed / killed?

Re: Auto-backup of unsaved source files

2019-12-10 Thread Oliver Rettig
Hi,
I remember there was a Autosave-Plugin but I can not find it any more. Any body 
else 
remembering on such plugin?
best regards
Oliver


Emilian,
 
Thanks for the suggestion. I tried this option (as was hinted during a Google 
search) before 
emailing but there wasn’t anything in the list. I assume that this is because 
it was a new file 
and I hadn’t saved it yet.
 
I ideally wanted something that did an auto-snapshot every x minutes (user 
specified) 
somewhere external to the main source folder, specifically for the case where I 
hadn’t yet 
saved my current set of changes so I then had the option to retrieve these 
latest ‘in progress’ 
edits, or start back with the last version that was saved in Netbeans. 
 
The way I read it, the “Local History” allows you to see all the previous saved 
snapshots of 
your source (a bit like you get for each committed change to a source control 
system).
 
John
 
*From: *Emilian Bold[1]
*Sent: *10 December 2019 15:36

*To: *John Barrow[2]
*Cc: *NetBeans Mailing[3]
*Subject: *Re: Auto-backup of unsaved source files
 
See Local History.
--emi
 
mar., 10 dec. 2019, 16:58 John Barrow  a scris:
Is there an option for Netbeans to auto-save your work every (say) 5 minutes so 
that if 
Windows reboots (for example after an update) and you have forgotten to 
formally save 
work to date, there is a place to go (e.g. specified folder) that will have the 
version of source 
just before (or near enough if set the snapshot to be taken every minute) the 
application was 
closed / killed?
 
My previous development environment had this option which made you lazy but MS 
Office 
also has something similar. While it may not save every last word, it is a 
useful background 
task that minimises the effect of any external activities.
 
I ask, as have just lost ½ hours typing due to performing a Windows Update that 
required a 
restart and I forgot to first check that I had explicitly saved all my changes 
in Netbeans (force 
of habit based on old development environment). 
 
I googled to see if there was an obvious answer and had a look at the Editor 
Options in 
Netbeans but couldn’t see any support for this.
 
Thanks (for the next time it happens)!
 
John
 
- To 
unsubscribe, e-mail: users-
unsubscr...@netbeans.apache.org[4] For additional commands, e-mail: users-
h...@netbeans.apache.org[5] For further information about the NetBeans mailing 
lists, visit: 
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists[6] 
 
- 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 




[1] mailto:emilian.b...@gmail.com
[2] mailto:jbarrow...@gmail.com
[3] mailto:users@netbeans.apache.org
[4] mailto:users-unsubscr...@netbeans.apache.org
[5] mailto:users-h...@netbeans.apache.org
[6] https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: Printing from IDE 11.0

2019-09-14 Thread Oliver Rettig
Hi,
I have also played a bit with print functionality. I have tried with Netbeans 
8.2. Print with 
selection works fine in the projects tab but not with a selection in the Files 
tab. A selected file 
in the files-tab is not shown in the print preview. It is also not working if 
selection is done in 
the Favorites-tab. So I think this is an old bug.
In my platform apps I have a projects-tab and a favorites-tab. In both print of 
selected files 
does not work. I hasnt attract attention for me because print works fine if the 
file is opened 
in the editor. If the editor has the focus print works fine.
It will be great if somebody can figure out some more this behavoir.
best regards
Oliver


HI David,
I hadn't tried it from the projects view, only the file view.


Having tried it (after your suggestion) I can confirm it works the same way as 
you are 
describing. If I select a file in the project list and go to File->Print, the 
preview box opens and 
the file is visible and I am able to print it. Moving back into the file view 
and then selecting a 
file, File->Print also gives me the preview with the file available to print. 
(NB11.1).


If I restart netbeans, open a file in file view and go to File->Print it works 
properly (or as 
expected).


The question now I guess is - How does it lose the ability to print 
occasionally?


Phil




On Sunday, 8 September 2019, 18:22:46 BST, David Green  
wrote: 




On MacOS and NetBeans 11.1, I see two behaviors:


1. When I am in the Files View, there is an attempt to show me a print page 
preview by 
NetBeans.  This is unreliable, mostly it comes up empty.
2. When I am in the Projects View, the OS print dialog comes up reliability and 
prints.


(After I have printed the file with option 2, then option 1 starts "working" by 
going directly to 
the OS print dialog.  The "healing" behavior seems to be preserved across a 
quit and reopen 
of NetBeans.)


Dave


On Sun, Sep 8, 2019 at 5:05 AM philip.burn...@sky.com[1] 
<_philip.burness@sky.com_> 
wrote:


Thanks all,
Printing works for me as it should on my other station with netbeans 11.0, so 
it's something 
outside of netbeans I feel.
Printing works OK with other software though (notepad++, word, excel etc.) so 
I'm unsure 
where to look for the problem [2]:(


I can open the code in notepad++ to print, but that's a bit defeatist [3], or 
just edit with my 
laptop all the time...


Phil


On Sunday, 8 September 2019, 07:05:58 BST, Laszlo Kishalmi 
 
wrote: 

Re: Plug-in support and compatibility suggestion

2018-08-07 Thread Oliver Rettig
Hi, 

Can we establish a page in the wiki with the problematic libraries:

org.jdesktop.beansbinding
org.jdesktop.swingx
javahelp

Are there others?

What is to do? How can the functionality in the first two be substituted?

What can we do to substitute javahelp.

best regards
Oliver
> The owner is Oracle. And the JSR for BeansBinding is dead.
> 
> And that is not my point — my point is that any plugin using that JAR needs
> to be rewritten to not use it.
> 
> Gj
> 
> 
> On Friday, August 3, 2018, Boris Heithecker 
> 
> wrote:
> > Hi,
> > does anybody know who's the owner of org.jdesktop.beansbinding? Whom
> > should I contact? Is the license really GPL, or LGPL? Same question
> > applies to org.jdesktop.swingx: GPL oder LGPL? Who's the owner?
> > Havn't found any robust information about these libraries so far.
> > Am I allowed to ship them with my platform application?
> > Boris
> > 
> > 2018-08-03 9:59 GMT+02:00 Geertjan Wielenga
> > 
> > :
> > > And the solution is to get hold of the owners of the plugins that do not
> > > work with 9.0 and ask them/work with them to make them compatible with
> > 
> > 9.0.
> > 
> > > Gj
> > > 
> > > On Fri, Aug 3, 2018 at 9:57 AM, Geertjan Wielenga
> > > 
> > >  wrote:
> > >> The problems are a bit more complex than how you describe them, in the
> > >> case of Apache NetBeans.
> > >> 
> > >> Take for example 'org.jdesktop.beansbinding'.
> > >> 
> > >> This is a library that has been part of NetBeans for many years. And
> > 
> > it's
> > 
> > >> been used by a variety of plugins as well, such as some of those you
> > 
> > seem to
> > 
> > >> be trying to install.
> > >> 
> > >> However, the licensing of that library is GPL. The Apache Software
> > >> Foundation does not allow Apache projects to distribute GPL-based
> > 
> > libraries.
> > 
> > >> So, we had to remove it from Apache NetBeans.
> > >> 
> > >> And now some of the plugins that rely on that library will not work.
> > >> 
> > >> There are other similar cases, though not too many. Another example is
> > >> Hibernate (http://hibernate.org/community/license), which had to be
> > 

Re: Starting netbeans 8.0.2 launches KDE Wallet

2018-03-09 Thread Oliver Rettig
Hi,

the described problems remembers me on 

https://bitbucket.org/phansson/netbeansnetworkauthenticator

This plugin solved some years ago my isues inside an intranet with a specific 
proxy between 
the internet. I cauld find that the origin of the problem which results in 
opening a dialog 
which asks for credentials was the proxy but the company dont investigate in 
fixing the 
proxy issue. 

With the above plugin the problem cault be workaround.

Does anybody knows if the plugin can be integrated into Nebeans 9 platform?

best regards
Oliver

> Hello List,
> 
> Whenever I start netbeans-8.0.2 the KDE Wallet is launched and
> regardless of the look-and-feel, GTK+ or otherwise. How can I stop this
> from happening? My Os is Ubuntu Linux 17.10.
> 
> Regards,
> 
> - Olumide
> 
> -
> 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




An other NB's split pane question

2018-01-25 Thread Oliver Rettig
Hi, 

the question from Tom let me remember an other very old split-pane problem for 
me. In my platform-apps I have a TopComponent that I want to split into two 
parts. 

For this I use the swing split-pane component. This works, but it looks 
different to 
the split planes between the editor and output-window 

I think there should be a specific netbeans platform splin-pane implementation.

Where it is? Can I reuse it?

best regards
Oliver


Re: OutOfMemoryError: Java heap space

2018-01-08 Thread Oliver Rettig
Hi Thomas,
thanks for revision, of course you are right:-)
Oliver
> Oliver,
> Why would the starting heap size matter (and according to his log, it's
> already 512m)?  I think the option he should modify is the max heap size,
> -Xmx.  His log says it's currently 1024m - maybe he should set it to
> "-J-Xmx2048m" in his netbeans.conf file.
> 
> tom
> 
> On Mon, Jan 8, 2018 at 11:36 AM, Oliver Rettig <oliver.ret...@orat.de>
> 
> wrote:
> > Hi,
> > 
> > 
> > 
> > this can be happen, if you have installed too many modules, which needs
> > more memory than you have configures in the netbeans.conf file. Maye there
> > is a module with a memory leak ...
> > 
> > 
> > 
> > Try to give netbeans more memory:
> > 
> > 
> > 
> > edit the config file in etc/netbeans.conf
> > 
> > 
> > 
> > default: -J-Xms32m
> > 
> > 
> > 
> > to -j-xms500m
> > 
> > 
> > 
> > Hope this helps
> > 
> > Oliver
> > 
> > > Hi all,
> > > 
> > > I'm running Netbeans 8.2 on a Debian jessie box. Everytime I launch
> > > 
> > > Netbeans i got the following error: "OutOfMemoryError: Java heap
> > > 
> > > space".
> > > 
> > > Everything seems working, but in one PHP project CTRL+Click,
> > > 
> > > autocomplete and other useful things stopped working.
> > > 
> > > 
> > > 
> > > I googled a lot, but I can't find a solution.
> > > 
> > > 
> > > 
> > > Attached the netbeans startup log.
> > > 
> > > 
> > > 
> > > Any help/hint is really appreciated, thanks in advance.
> > > 
> > > 
> > > 
> > > g4b0