Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > >

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 12-06-2017, 07:01 PM   #31176
jjshabado
Carpal Tunnel
 
jjshabado's Avatar
 
Join Date: Jul 2006
Posts: 21,854
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

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.
jjshabado is offline   Reply With Quote
Old 12-06-2017, 08:09 PM   #31177
ChrisV
Carpal \'Tunnel
 
ChrisV's Avatar
 
Join Date: Jul 2004
Location: Adelaide, Australia
Posts: 34,906
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

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.
ChrisV is offline   Reply With Quote
Old 12-06-2017, 08:18 PM   #31178
_dave_
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK (or what remains of it)
Posts: 12,406
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

try the CLI version

Last edited by _dave_; 12-06-2017 at 08:19 PM. Reason: sorry, I can't offer any actual help
_dave_ is offline   Reply With Quote
Old 12-06-2017, 08:35 PM   #31179
adios
Carpal \'Tunnel
 
Join Date: Sep 2002
Location: Russian Troll
Posts: 20,921
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by daveT View Post
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.
adios is offline   Reply With Quote
Old 12-06-2017, 08:39 PM   #31180
lostmypw
newbie
 
Join Date: Mar 2017
Posts: 47
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Grue View Post
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
lostmypw is offline   Reply With Quote
Old 12-06-2017, 09:37 PM   #31181
daveT
S.A.G.E. Master
 
daveT's Avatar
 
Join Date: Jun 2005
Location: Why didn't I use Clojure instead?
Posts: 21,917
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by adios View Post
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.
daveT is offline   Reply With Quote
Old 12-06-2017, 09:41 PM   #31182
saw7988
Carpal \'Tunnel
 
saw7988's Avatar
 
Join Date: Jul 2005
Posts: 11,362
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by ChrisV View Post
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.
saw7988 is offline   Reply With Quote
Old 12-06-2017, 09:43 PM   #31183
daveT
S.A.G.E. Master
 
daveT's Avatar
 
Join Date: Jun 2005
Location: Why didn't I use Clojure instead?
Posts: 21,917
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by ChrisV View Post
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.
daveT is offline   Reply With Quote
Old 12-06-2017, 10:52 PM   #31184
ChrisV
Carpal \'Tunnel
 
ChrisV's Avatar
 
Join Date: Jul 2004
Location: Adelaide, Australia
Posts: 34,906
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by saw7988 View Post
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.
ChrisV is offline   Reply With Quote
Old 12-06-2017, 10:59 PM   #31185
ChrisV
Carpal \'Tunnel
 
ChrisV's Avatar
 
Join Date: Jul 2004
Location: Adelaide, Australia
Posts: 34,906
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

While you're here saw, any idea about this?
ChrisV is offline   Reply With Quote
Old 12-07-2017, 09:30 AM   #31186
saw7988
Carpal \'Tunnel
 
saw7988's Avatar
 
Join Date: Jul 2005
Posts: 11,362
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

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 View Post
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 View Post
While you're here saw, any idea about this?
I also do not understand mostly everything in that screenshot lol.
saw7988 is offline   Reply With Quote
Old 12-07-2017, 10:51 AM   #31187
ChrisV
Carpal \'Tunnel
 
ChrisV's Avatar
 
Join Date: Jul 2004
Location: Adelaide, Australia
Posts: 34,906
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by saw7988 View Post
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".
ChrisV is offline   Reply With Quote
Old 12-07-2017, 10:53 AM   #31188
ChrisV
Carpal \'Tunnel
 
ChrisV's Avatar
 
Join Date: Jul 2004
Location: Adelaide, Australia
Posts: 34,906
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

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
ChrisV is offline   Reply With Quote
Old 12-07-2017, 04:32 PM   #31189
jjshabado
Carpal Tunnel
 
jjshabado's Avatar
 
Join Date: Jul 2006
Posts: 21,854
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

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.
jjshabado is offline   Reply With Quote
Old 12-07-2017, 05:38 PM   #31190
daveT
S.A.G.E. Master
 
daveT's Avatar
 
Join Date: Jun 2005
Location: Why didn't I use Clojure instead?
Posts: 21,917
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

No sane human reads Java stack traces.
daveT is offline   Reply With Quote
Old 12-07-2017, 05:47 PM   #31191
gaming_mouse
Carpal \'Tunnel
 
gaming_mouse's Avatar
 
Join Date: Oct 2004
Location: taking notes on u (see profile)
Posts: 13,764
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by goofyballer View Post
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
gaming_mouse is offline   Reply With Quote
Old 12-07-2017, 05:54 PM   #31192
gaming_mouse
Carpal \'Tunnel
 
gaming_mouse's Avatar
 
Join Date: Oct 2004
Location: taking notes on u (see profile)
Posts: 13,764
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by suzzer99 View Post



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...
gaming_mouse is offline   Reply With Quote
Old 12-07-2017, 07:00 PM   #31193
goofyballer
 
goofyballer's Avatar
 
Join Date: Jun 2005
Posts: 60,573
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

git add -p likewise for staging lines (Grue mentioned that earlier)
goofyballer is offline   Reply With Quote
Old 12-07-2017, 07:40 PM   #31194
jjshabado
Carpal Tunnel
 
jjshabado's Avatar
 
Join Date: Jul 2006
Posts: 21,854
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Git add -p is nowhere close to as nice as a good git GUI.
jjshabado is offline   Reply With Quote
Old 12-07-2017, 08:06 PM   #31195
RustyBrooks
Carpal \'Tunnel
 
RustyBrooks's Avatar
 
Join Date: Feb 2006
Location: Austin, TX
Posts: 23,260
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

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.
RustyBrooks is offline   Reply With Quote
Old 12-07-2017, 08:19 PM   #31196
PJo336
THRILLHOUSE!
 
PJo336's Avatar
 
Join Date: Mar 2007
Posts: 21,346
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by ChrisV View Post
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
PJo336 is offline   Reply With Quote
Old 12-07-2017, 08:35 PM   #31197
goofyballer
 
goofyballer's Avatar
 
Join Date: Jun 2005
Posts: 60,573
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by jjshabado View Post
Git add -p is nowhere close to as nice as a good git GUI.
Quote:
Originally Posted by RustyBrooks View Post
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
goofyballer is offline   Reply With Quote
Old 12-07-2017, 10:08 PM   #31198
Grue
Pooh-Bah
 
Grue's Avatar
 
Join Date: Mar 2004
Location: It is pitch black.
Posts: 5,006
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by RustyBrooks View Post
My most commonly used git command line is "git commit -a -m mymessage"
git commit -am

I just blew. Your. Mind.
Grue is offline   Reply With Quote
Old 12-07-2017, 10:21 PM   #31199
RustyBrooks
Carpal \'Tunnel
 
RustyBrooks's Avatar
 
Join Date: Feb 2006
Location: Austin, TX
Posts: 23,260
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

What kind of witchcraft is this
RustyBrooks is offline   Reply With Quote
Old 12-07-2017, 11:33 PM   #31200
daveT
S.A.G.E. Master
 
daveT's Avatar
 
Join Date: Jun 2005
Location: Why didn't I use Clojure instead?
Posts: 21,917
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I commit by each file. I like to state what each change is.
daveT is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Forum Jump


All times are GMT -4. The time now is 08:28 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2008-2017, Two Plus Two Interactive
 
 
Poker Players - Streaming Live Online