Re: Refactoring Error when moving/renaming class.

2019-07-04 Thread Mark J Koch
I found this log under Notifications tab in the IDE and it seems to have the stack trace near the end. --- >Log Session: Thursday, July 4, 2019 at 1:12:34 PM Pacific Daylight Time >System Info: Product Version

Refactoring Error when moving/renaming class.

2019-07-04 Thread Mark J Koch
On NB 10 and also 11.1. I get this popup error when attempting to rename a Java class or move it to a new package. It tells me to look in var/logs for any error message but I’m not seeing any Java or NB related logs. OSX Mohave does not seem to have a /var/log/messages at all on my system.

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Geertjan Wielenga
Well, the solution is like always — start again with a fresh userdir and recreate the problem, then you'll have log files that we can look at to see the errors generated when the problem occurs. Also consider using a different version of gdb to see if that makes a difference or switch from gdb to c

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Ulf Zibis
Hi, now I installed NB 11.1 beta-3 from here: https://github.com/rtaneja1/netbeans/blob/installer-bin-11-1/nbbuild/installer/binaries/Apache-NetBeans-11.1-bin-linux-x64.sh With this I have the same bad results when running the debugger. :-( Aside: I said the installer to install into /opt/netbea

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Ulf Zibis
Hi Geertjan, please note, that I use NetBeans 10 (not 11.1) and I have installed it into "/opt/netbeans/10.0/" as root. Then I started it as root and added the C/C++ plugin besides few others with "Force install into shared directories". Hope that doesn't hurt. The starter is in "/usr/share/appli

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Ulf Zibis
Much thanks Geertjan, have a good afterwork. I'll try it and response tomorrow. -Ulf Am 04.07.19 um 20:30 schrieb Geertjan Wielenga: > https://youtu.be/xPvasdbFJAw > > There it is. Tell me what to do differently as specifically as > possible, if needed, and I'll do it to reproduce your requiremen

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Geertjan Wielenga
https://youtu.be/xPvasdbFJAw There it is. Tell me what to do differently as specifically as possible, if needed, and I'll do it to reproduce your requirements. Gj On Thu, Jul 4, 2019 at 8:08 PM Ulf Zibis wrote: > Sorry, I think I don't understand your question. > > If you were able to run the

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Ulf Zibis
Sorry, I think I don't understand your question. If you were able to run the bebugger with "./ffmpeg --version" then with "./ffmpeg_g -i sample.jpg result.jpg" it should be the same ... if you have prepared a "sample.jpg" in start dir. -Ulf Am 04.07.19 um 19:59 schrieb Geertjan Wielenga: > But h

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Ulf Zibis
Hey great. Does it work without changing anything in "Project from existing sources"? YouTube clip would be nice if not too much work. Thanks -Ulf Am 04.07.19 um 19:53 schrieb Geertjan Wielenga: > Line 4850, i.e., 'register_exit(ffmpeg_cleanup);' works better for this. > > Works without a probl

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Geertjan Wielenga
But how to run the debugger on that? Gj On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis wrote: > The simplest command line for real world is: > ./ffmpeg_g -i sample.jpg result.jpg > > -Ulf > Am 04.07.19 um 19:29 schrieb Ulf Zibis: > > The main() function is in fftools/ffmpeg.c > I think you can set a

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Ulf Zibis
The simplest command line for real world is: ./ffmpeg_g -i sample.jpg result.jpg -Ulf Am 04.07.19 um 19:29 schrieb Ulf Zibis: > > The main() function is in fftools/ffmpeg.c > I think you can set a breakpoint there for a first test. Maybe set it > at line 4869 where show_banner(argc, argv, options

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Geertjan Wielenga
Line 4850, i.e., 'register_exit(ffmpeg_cleanup);' works better for this. Works without a problem, I can make a YouTube clip of this if you like. Gj On Thu, Jul 4, 2019 at 7:29 PM Ulf Zibis wrote: > The main() function is in fftools/ffmpeg.c > I think you can set a breakpoint there for a first

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Ulf Zibis
The main() function is in fftools/ffmpeg.c I think you can set a breakpoint there for a first test. Maybe set it at line 4869 where show_banner(argc, argv, options); is called, so you can test what happens when jumping in. For first try just run ./ffmpeg_g (stands for gdb and includes symbols) with

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Geertjan Wielenga
Where should I place the breakpoint for the debugger? Gj On Thu, 4 Jul 2019 at 19:14, Ulf Zibis wrote: > 1.) This is not my project, so I have no authority to change anything on > the site. > > 2.) In NetBeans I set "Pre-Build" to ./configure and "Build" to make, > nothing more. (Didn't you see

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Ulf Zibis
1.) This is not my project, so I have no authority to change anything on the site. 2.) In NetBeans I set "Pre-Build" to ./configure and "Build" to make, nothing more. (Didn't you see that from my nbproject.zip ?) 3.) If it's the GNU debugger aka gdb, then I assume, the same configuration for Mac

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Ulf Zibis
Hi, I'm on Ubuntu 18.04 64 bit. The debugger should be gdb. -Ulf Am 04.07.19 um 16:23 schrieb Geertjan Wielenga: > Which debugger do you use and which operating system? > > Gj > > On Thu, Jul 4, 2019 at 3:57 PM Ulf Zibis > wrote: > > Thanks! > > I'd tried tha

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Geertjan Wielenga
OK, I ran ./configure and then built in NetBeans, so now I have binaries and I can run them etc. Where do I need to place a breakpoint when trying to set up the Debugger? Gj On Thu, Jul 4, 2019 at 4:56 PM Geertjan Wielenga wrote: > Maybe you can provide instructions on the site about how to set

Re: ...and now I can't build

2019-07-04 Thread Laszlo Kishalmi
Well it might even be a javac issue in JDK 12. I just run into something like this a few days ago building a NetBeans module. Though I did not find the issue and had no time to deep dive into the details. Switching the Project to use OpenJDK 8 has solved this issue. So I'd recommend to insta

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Geertjan Wielenga
Maybe you can provide instructions on the site about how to set up the sources so they can be run in NetBeans (and then once I have that working, I'll work on how to debug from there, using GNU debugger on Mac, which I have working now for standard C/C++ projects, but can't start applying to your p

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Geertjan Wielenga
Which debugger do you use and which operating system? Gj On Thu, Jul 4, 2019 at 3:57 PM Ulf Zibis wrote: > Thanks! > > I'd tried that for a while, but was lost in the huge config files. It > would be really great, if there were a tutorial or documentation on that. > > If you find some time agai

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Ulf Zibis
Thanks! I'd tried that for a while, but was lost in the huge config files. It would be really great, if there were a tutorial or documentation on that. If you find some time again, that would be great, and let me know your findings then. Aside: You need not to CC: me privately, otherwise I get y

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Geertjan Wielenga
Yes, but there's a lot to figure out and I'm not a C/C++ programmer, I'll look at this when I can, but I'd recommend seeing as you have the debugger working for a standard C/C++ project to try and work your code into that structure rather than using the 'from existing sources' approach. Gj On Thu

Re: ...and now I can't build

2019-07-04 Thread Peter Toye
Dear Geertjan, That's right. The main app is KillerSudoku. There's a separate class (which is used by another project as well) called Partitions5. That hasn't changed for years. You're probably right. It'll take me a bit of time to sort that out as I have to go offline now for a few hours - may

Re: ...and now I can't build

2019-07-04 Thread Geertjan Wielenga
Also, what you're showing in your screenshot looks pretty strange -- that .txt extension is odd and will break things. Gj On Thu, Jul 4, 2019 at 1:48 PM Geertjan Wielenga wrote: > Maybe just create a brand new project and copy your 6 files and one form > into that? > > Gj > > On Thu, Jul 4, 201

Re: ...and now I can't build

2019-07-04 Thread Geertjan Wielenga
Maybe just create a brand new project and copy your 6 files and one form into that? Gj On Thu, Jul 4, 2019 at 1:47 PM Peter Toye wrote: > Dear Geertjan, > > No. There are 6 .java files and one form. See screenshot. > > Best regards, > > Peter > mailto:netbe...@ptoye.com > www.ptoye.com > >

Re: ...and now I can't build

2019-07-04 Thread Geertjan Wielenga
Also, there appear to be two separate applications here, one named 'KillerSudoku11' and the other one named 'Partitions5'. Not sure what this means, but something seems strange, aside from there being two Java source files in total. Maybe you need to check javac.source and javac.target in the pro

Re: ...and now I can't build

2019-07-04 Thread Geertjan Wielenga
Your application consists of two Java source files? Gj On Thu, Jul 4, 2019 at 12:52 PM Peter Toye wrote: > Dear Geertjan, > > Here's the output from a clean build. > > ant -f D:\\Peter\\Netbeans\\KillerSudoku11 -Dnb.internal.action.name=rebuild > clean jar > init: > deps-clean: > Updating prope

Re: ...and now I can't build

2019-07-04 Thread Peter Toye
Dear Geertjan, Here's the output from a clean build. ant -f D:\\Peter\\Netbeans\\KillerSudoku11 -Dnb.internal.action.name=rebuild clean jar init: deps-clean: Updating property file: D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties Partitions5.init: Partitions5.deps-clean: Updating

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Ulf Zibis
Hey Geertjan, this is a great offer, thanks. Here the Git clone command: git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg The documentations for developers: https://ffmpeg.org/developer.html Did you get my current settings in the attachment from my other thread 2 days ago? -Ulf Am 04.07.19 u

Re: ...and now I can't build

2019-07-04 Thread Geertjan Wielenga
Can you do this: copy and paste the build error message into the response to this e-mail and then press Send? Gj On Thu, 4 Jul 2019 at 12:32, Peter Toye wrote: > Dear Geertjan, > > Both javac.source and javac.target are set to 12. If I change the > source/target to 8 they change accordingly. Se

Re: Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Geertjan Wielenga
I’ll look into it if you provide the starting point of an application on GitHub, i.e., the sources that are to be imported as a C/C++ project. Then I’ll have a scenario to use as a starting point to figure this out. Gj On Thu, 4 Jul 2019 at 12:28, Ulf Zibis wrote: > Hi, > > I'm wondering if the

Re: ...and now I can't build

2019-07-04 Thread Peter Toye
Dear Geertjan, Both javac.source and javac.target are set to 12. If I change the source/target to 8 they change accordingly. See the attached if you don't believe me! Whichever I choose the build fails. Best regards, Peter mailto:netbe...@ptoye.com www.ptoye.com - Thur

Debugger doesn't work with C/C++ "Project from existing sources"

2019-07-04 Thread Ulf Zibis
Hi, I'm wondering if there would be a tutorial on how to configure a C/C++ "Project from existing sources" to enable the debugger facility of NetBeans IDE. With a project created from the inbuild NetBeans templates it works fine, but not with a "Project from existing sources". Can one give me so

Re: ...and now I can't build

2019-07-04 Thread Geertjan Wielenga
Can you open the Files window and look in the nbproject folder, where you’ll find the project.properties file? There you will find javac.source and javac.target, which you can set directly within that file. Gj On Thu, 4 Jul 2019 at 12:11, Peter Toye wrote: > Dear Laszlo, > > Yes - that was

Re: ...and now I can't build

2019-07-04 Thread Peter Toye
Dear Laszlo, Yes - that was my point. I had opened the project (well, a copy of it so as not to disturb the original which works in NB version 8) in NB 11 and gone through the error resolution. Changing the source/target to JDK8 doesn't change anything - see attached screenshot. Best regards,

Re: Another installation issue

2019-07-04 Thread Geertjan Wielenga
Can you please provide the error messages you’re encountering or the build errors so that we can try to help? Gj On Thu, 4 Jul 2019 at 12:00, Peter Toye wrote: > Dear Geertjan, > > I've been sending you screenshots. Shall we continue this conversation > under the original track? > > > Best reg

Re: Another installation issue

2019-07-04 Thread Peter Toye
Dear Geertjan, I've been sending you screenshots. Shall we continue this conversation under the original track? Best regards, Peter mailto:netbe...@ptoye.com www.ptoye.com - Thursday, July 4, 2019, 10:49:43 AM, you wrote: No one can help with this without error messag

Re: Another installation issue

2019-07-04 Thread Geertjan Wielenga
No one can help with this without error messages, steps to reproduce, some clues from your end. Gj On Thu, 4 Jul 2019 at 11:36, Peter Toye wrote: > Dear Geertjan, > > I was referring to the track called ' ...and now I can't build' which > you've been helping me with. That problem remains in 11.

Re: Another installation issue

2019-07-04 Thread Peter Toye
Dear Geertjan, I was referring to the track called ' ...and now I can't build' which you've been helping me with. That problem remains in 11.1. Best regards, Peter mailto:netbe...@ptoye.com www.ptoye.com - Wednesday, July 3, 2019, 7:03:26 PM, you wrote: How can we he