Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

12-06-2017 , 07:01 PM
For git I do everything on the command line except I use gitx to stage lines/files. GUI obvious winner when it comes to doing that.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 08:09 PM
God I hate this IDE, seriously wtf.



How do I view what is in the stack trace? How can I not figure out completely basic debugging functions? This thing drives me insane.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 08:18 PM
try the CLI version

Last edited by _dave_; 12-06-2017 at 08:19 PM. Reason: sorry, I can't offer any actual help
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 08:35 PM
Quote:
Originally Posted by daveT
I"m in the total opposite camp. I truly abhor GUI for anything programming related. ...
Couldn't imagine debugging a "low level" embedded type firmware issue without an IDE that has a GUI efficiently FWIW but ymmv.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 08:39 PM
Quote:
Originally Posted by Grue
Most of my in depth debugging involves figuring out exactly where it broke which usually involves a ton of both checking out commits and comparisons
git bisect is good for finding which commit broke something
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 09:37 PM
Quote:
Originally Posted by adios
Couldn't imagine debugging a "low level" embedded type firmware issue without an IDE that has a GUI efficiently FWIW but ymmv.
I agree: I'd rather use an GUI for assembly.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 09:41 PM
Quote:
Originally Posted by ChrisV
God I hate this IDE, seriously wtf.



How do I view what is in the stack trace? How can I not figure out completely basic debugging functions? This thing drives me insane.
Is this IntelliJ and you're doing Java? Honestly it's a fantastic IDE once you get used to it. I made my one and probably only ever Android game with Java. I also use IntelliJ PyCharm for Python (although also experimenting with straight vim) and they have a nice Rust plugin for Rust as well if you're into that sort of thing.

You probably want to be looking at the Console tab, the Debugger is really only useful to inspect variables during debugging execution. The stack trace should be shown in the console in the traditional way. Not sure I understand your confusion with the debugging, as with any other IDE find the start/stop/step over/step into/etc. buttons, learn their hotkeys, and then gogogo.

Those are the basics; I'm down to answer more questions if you need.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 09:43 PM
Quote:
Originally Posted by ChrisV
God I hate this IDE, seriously wtf.



How do I view what is in the stack trace? How can I not figure out completely basic debugging functions? This thing drives me insane.
Do you normally program in Java?

This seems to be saying the issue is in line 90 of the "scrape" file.

Java.lang.NullPointerExceptoin means you inserted an empty collection or value. This would be either forgetting to unpack an array, unpacking an empty array, or a off-by-one error. Most likely unpacking an empty array.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 10:52 PM
Quote:
Originally Posted by saw7988
You probably want to be looking at the Console tab, the Debugger is really only useful to inspect variables during debugging execution. The stack trace should be shown in the console in the traditional way. Not sure I understand your confusion with the debugging, as with any other IDE find the start/stop/step over/step into/etc. buttons, learn their hotkeys, and then gogogo.
The exception was getting handled further up the stack, so no stack trace in the console. I was therefore trying to look at it at a breakpoint in the catch block. The point isn't about exception handling though, it's that I have an object with a property and I want to see the property and can't drill down into it. Is this just not a thing I can do in Java or something? Coming from .NET/Visual Studio.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-06-2017 , 10:59 PM
While you're here saw, any idea about this?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 09:30 AM
I guess take my "expertise" (lack thereof, really though) and personal experience with a grain of salt, I'm not a software dev or anything, so I probably am not using it at as high a level as you. I basically made 1 game and then mostly do scientific computing/signal processing/machine learning stuffs. I will say though, the IntelliJ software does seem unanimously loved.

Quote:
Originally Posted by ChrisV
The exception was getting handled further up the stack, so no stack trace in the console. I was therefore trying to look at it at a breakpoint in the catch block. The point isn't about exception handling though, it's that I have an object with a property and I want to see the property and can't drill down into it. Is this just not a thing I can do in Java or something? Coming from .NET/Visual Studio.
Oh I get it. You were debugging though, so that's good. I honestly haven't handled exceptions in Java in like 10 years haha. Yea I guess I would think you should be able to expand the stack trace object as well. I really don't know though, sorry.

Quote:
Originally Posted by ChrisV
While you're here saw, any idea about this?
I also do not understand mostly everything in that screenshot lol.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 10:51 AM
Quote:
Originally Posted by saw7988
I guess take my "expertise" (lack thereof, really though) and personal experience with a grain of salt, I'm not a software dev or anything, so I probably am not using it at as high a level as you. I basically made 1 game and then mostly do scientific computing/signal processing/machine learning stuffs. I will say though, the IntelliJ software does seem unanimously loved.
From what I understand, the other Java IDEs are worse.

It's probably fine software once you understand how to use it, but it's hellishly unintuitive. As one trivial example, when you mouse over stuff in Visual Studio, let's say a method, it will pop up a tooltip with method signature. To get a similar thing in IntelliJ, you hold down Ctrl and mouse over stuff. I know that because I googled it. The most obviously annoying thing there is how undiscoverable it is - who tries holding down Ctrl and mousing over stuff? But the thing that really blows my mind is that this wasn't done to make way for some other function - just mousing over stuff doesn't do anything. They apparently just decided to make the IDE miles less intuitive and discoverable for no reason at all.

Quote:
I also do not understand mostly everything in that screenshot lol.
The Project Structure dialog has a different version of a library specified than everywhere else in the project. My project was failing at runtime because it was trying to find a version of the library that no longer existed. I have no clue where IntelliJ stores the information it shows in Project Structure and so far nobody has been able to tell me. I have tried running a search on my whole hard drive and reading documentation and I still have no idea. The problem happened after someone else updated the libraries in the project, so apparently source control doesn't have the files it needs to update the version specs. I was able to fix it manually within IntelliJ, but it will probably just break again next time libraries are updated. As a soapboxy aside, every settings editor should have a little thing you can click that says "show me the file where these settings are stored".
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 10:53 AM
I have also now had three people tell me that IntelliJ is a good IDE and zero of them have been able to tell me why I can't drill down to stack trace in that screenshot above, which to me kind of undermines their opinions
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 04:32 PM
Meh, I sort of view it like the command line argument with suzzer. IDEs are trying to do lots of complex things so everything isn’t going to be super intuitive.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 05:38 PM
No sane human reads Java stack traces.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 05:47 PM
Quote:
Originally Posted by goofyballer
Disagree, I'm with Wolfram. Superior diff visualization is literally the only advantage I can think of for a GUI. Checking out detached head on the command line isn't hard, not sure what you're referring to...
+1
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 05:54 PM
Quote:
Originally Posted by suzzer99



Also no one's ever shown me a good command line way to selectively back out (discard) changes that remotely matches what you can do visually in source tree.
Code:
git checkout -p file/to/partially/revert
Until now...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 07:00 PM
git add -p likewise for staging lines (Grue mentioned that earlier)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 07:40 PM
Git add -p is nowhere close to as nice as a good git GUI.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 08:06 PM
I wonder if it's that these tools lead you to particular workflows, or that particular workflows lead you to these tools. I have never wanted to selectively stage lines, or selectively back out changes.

I suspect in part it may be a javascript frontend thing? The guy who does FE on my project, I feel like every commit he does touches 30 files minimum. It's not uncommon for a feature or a bug fix or whatever of mine to be 2-3 files.

My most commonly used git command line is "git commit -a -m mymessage"

which takes everything you got, adds it to the commit and commits it. I basically never even stage/unstage individual files.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 08:19 PM
Quote:
Originally Posted by ChrisV
From what I understand, the other Java IDEs are worse.

It's probably fine software once you understand how to use it, but it's hellishly unintuitive. As one trivial example, when you mouse over stuff in Visual Studio, let's say a method, it will pop up a tooltip with method signature. To get a similar thing in IntelliJ, you hold down Ctrl and mouse over stuff. I know that because I googled it. The most obviously annoying thing there is how undiscoverable it is - who tries holding down Ctrl and mousing over stuff? But the thing that really blows my mind is that this wasn't done to make way for some other function - just mousing over stuff doesn't do anything. They apparently just decided to make the IDE miles less intuitive and discoverable for no reason at all.



The Project Structure dialog has a different version of a library specified than everywhere else in the project. My project was failing at runtime because it was trying to find a version of the library that no longer existed. I have no clue where IntelliJ stores the information it shows in Project Structure and so far nobody has been able to tell me. I have tried running a search on my whole hard drive and reading documentation and I still have no idea. The problem happened after someone else updated the libraries in the project, so apparently source control doesn't have the files it needs to update the version specs. I was able to fix it manually within IntelliJ, but it will probably just break again next time libraries are updated. As a soapboxy aside, every settings editor should have a little thing you can click that says "show me the file where these settings are stored".
There's a setting to chose how long you mouse over before it auto pops up. I personally find the auto pop up annoying but in general there's an option for almost anything you want from other editors and more is configured out of the box. That's why people like it. Its a piece of software so it's going to take some time to learn but if you're doing Java (ewwwww) it's far and away the best choice. Take a deep breath and get ready to be annoyed

Sent from my SM-N950U using Tapatalk
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 08:35 PM
Quote:
Originally Posted by jjshabado
Git add -p is nowhere close to as nice as a good git GUI.
Quote:
Originally Posted by RustyBrooks
I wonder if it's that these tools lead you to particular workflows, or that particular workflows lead you to these tools. I have never wanted to selectively stage lines, or selectively back out changes.
Yeah, I'll agree git add -p isn't as nice as a GUI but it works plenty well for the one time every two months that I use it
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 10:08 PM
Quote:
Originally Posted by RustyBrooks
My most commonly used git command line is "git commit -a -m mymessage"
git commit -am

I just blew. Your. Mind.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 10:21 PM
What kind of witchcraft is this
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-07-2017 , 11:33 PM
I commit by each file. I like to state what each change is.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m