Go to Post Don't just assume that because you can modify an existing design that you are an engineer. - Daniel_LaFleur [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-01-2017, 20:02
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 68
gerthworm has a spectacular aura aboutgerthworm has a spectacular aura about
Java Deploy for Debug not functional?

Is anyone else having issues with the java debug deploy option this year?

We are using eclipse Neon on windows 10, 64 bit. We can create a brand new iterative robot project (leaving the boilerplate code in) and deploy it without issue to the RIO.

However, the debug deploy does not appear to do anything. Eclipse flips over to the debug perspective, but we get no console output, nor does the RIO appear to restart. Nothing shows up under any of the debug window panes....

Anyone else seen this yet? Or if not, and ideas on where to start debugging?

Thanks!

EDIT: Installed ant 1.9.7 independently on my computer, and ran "ant debug-deploy" in the root directory of the project. Got the following output:

Code:
...
compile:
     [echo] [athena-compile] Compiling src with classpath=C:\Users\Chris Gerth\wpilib\java\current\lib\WPILib.jar;C:\Users\Chris Gerth\wpilib\java\current\lib\NetworkTables.jar;C:\Users\Chris Gerth\wpilib\java\current\lib\opencv.jar;C:\Users\Chris Gerth\wpilib\java\current\lib\cscore.jar to build

jar:
     [echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
     [echo] [athena-jar] Copying jars to build/jars.

get-target-ip:
     [echo] Trying Target: roboRIO-1736-FRC.local
     [echo] roboRIO found via mDNS

dependencies:
     [echo] roboRIO image version validated
     [echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s...ller-java-only
  [sshexec] Connecting to roboRIO-1736-FRC.local:22
  [sshexec] cmd : test -d /usr/local/frc/JRE

debug-deploy:

BUILD FAILED
C:\Users\Chris Gerth\wpilib\java\current\ant\build.xml:192: required attribute libs.deploydir not set

Total time: 7 seconds

D:\RobotCasserole\eclipseWorkspace2017\TestEmptyProject>

Looking at that line, it would appear in fact that libs.deploydir is not set..... is this possibly a version of ant thing?


Edit2: Confirmed that by editing C:\Users\Chris Gerth\wpilib\java\current\ant\build.xml to have the same libs.deploydir that the debug target has gets the build to complete successfully. Seems to be working in eclipse too, although I have to manually relaunch the Remote Java Application on the RIO to start debugging. To Github to post a PR!

Last edited by gerthworm : 12-01-2017 at 21:20.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2017, 00:22
mikewindlake mikewindlake is offline
Registered User
FRC #6421
 
Join Date: Dec 2016
Location: Wind Lake, Wi
Posts: 7
mikewindlake is an unknown quantity at this point
Re: Java Deploy for Debug not functional?

I didn't see this error but will try it. Can you post what you specifically changed? Much thanks, I thought I was going stupid
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2017, 08:08
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 68
gerthworm has a spectacular aura aboutgerthworm has a spectacular aura about
Re: Java Deploy for Debug not functional?

https://github.com/wpilibsuite/Eclip...7f1f222ba1b257 has the change.

That file ends up in your {user home}/wpilib/java/{version}/ant folder on your hard drive.
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2017, 15:49
mikewindlake mikewindlake is offline
Registered User
FRC #6421
 
Join Date: Dec 2016
Location: Wind Lake, Wi
Posts: 7
mikewindlake is an unknown quantity at this point
Re: Java Deploy for Debug not functional?

I tried this and no luck, I did a RunAs and WpiLib Deploy, then debug. I see the same error in the Error Log.
Reply With Quote
  #5   Spotlight this post!  
Unread 15-01-2017, 18:37
Scottm314 Scottm314 is offline
Registered User
FRC #5416
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2015
Location: Houston
Posts: 3
Scottm314 is an unknown quantity at this point
Re: Java Deploy for Debug not functional?

I have a similar issue as the original post. I am using eclipse Neon.2 version 4.6.2. 64 bit. C++ environment. Windows 10. I grabbed one of the example programs. I indexed it and built it. When I tried to deploy it the eclipse console did not show any activity and the program did not deploy. I tried turning the windows firewall off. Not change. I do have a connection to the RoboRIO -- I can log into it using windows explorer at IP address 172.22.11.2.
Reply With Quote
  #6   Spotlight this post!  
Unread 15-01-2017, 19:19
nickmcski nickmcski is offline
Registered User
AKA: Nicholas McCurry
FRC #1482 (Grandin Ghosts)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 112
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
Re: Java Deploy for Debug not functional?

Quote:
Originally Posted by Scottm314 View Post
I have a similar issue as the original post. I am using eclipse Neon.2 version 4.6.2. 64 bit. C++ environment. Windows 10. I grabbed one of the example programs. I indexed it and built it. When I tried to deploy it the eclipse console did not show any activity and the program did not deploy. I tried turning the windows firewall off. Not change. I do have a connection to the RoboRIO -- I can log into it using windows explorer at IP address 172.22.11.2.
Try a regular deploy, there is an issue with java Debug deploy. https://github.com/wpilibsuite/EclipsePlugins/pull/91
Reply With Quote
  #7   Spotlight this post!  
Unread 16-01-2017, 16:47
mikewindlake mikewindlake is offline
Registered User
FRC #6421
 
Join Date: Dec 2016
Location: Wind Lake, Wi
Posts: 7
mikewindlake is an unknown quantity at this point
Re: Java Deploy for Debug not functional?

Is there an ETA on the fix? I just started mentoring (C# developer by day) What do I need to do get fix? Do I need to clone the Eclipseplugins and rebuild? I would like to be able to debug. It sounds like this also is affecting C++ too. We can certainly get the team going without debugging but it will certainly help me understand what's going one.
Reply With Quote
  #8   Spotlight this post!  
Unread 17-01-2017, 19:35
robert1356 robert1356 is offline
Registered User
AKA: Robert Palmer
FRC #3824 (RoHAWKtics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Knoxville, TN
Posts: 48
robert1356 is an unknown quantity at this point
Re: Java Deploy for Debug not functional?

We are seeing the same issue with the Java Debug Deploy - it switches to the debug view but does nothing else. Run Deploy works fine. But not having debug makes things a bit difficult
Reply With Quote
  #9   Spotlight this post!  
Unread 19-01-2017, 03:48
adil adil is offline
Registered User
FRC #3482
 
Join Date: Jan 2017
Location: Westmont
Posts: 1
adil is an unknown quantity at this point
Re: Java Deploy for Debug not functional?

This seems to be a new issue in the 2017 WPILib. I start debugging but Eclipse will freeze for about a minute and then there is nothing logged to the console and no debug session was started.

On Eclipse in Linux I was able to start debugging once and then subsequent sessions would freeze.

The only reliable workaround for me has been to install 32-bit Java and Eclipse on Windows.
Reply With Quote
  #10   Spotlight this post!  
Unread 20-01-2017, 16:36
Caleb Sykes's Avatar
Caleb Sykes Caleb Sykes is offline
Registered User
FRC #4536 (MinuteBots)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: St. Paul, Minnesota
Posts: 1,062
Caleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond repute
Re: Java Deploy for Debug not functional?

Quote:
Originally Posted by adil View Post
This seems to be a new issue in the 2017 WPILib. I start debugging but Eclipse will freeze for about a minute and then there is nothing logged to the console and no debug session was started.
We are seeing exactly this right now. If anyone knows a workaround besides installing everything 32 bit I would love to hear it.
Reply With Quote
  #11   Spotlight this post!  
Unread 21-01-2017, 13:51
NoahB4536's Avatar
NoahB4536 NoahB4536 is offline
He of the ultrasonics
AKA: Noah Brownlee
FRC #4536 (MinuteBots)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Saint Paul
Posts: 8
NoahB4536 has much to be proud ofNoahB4536 has much to be proud ofNoahB4536 has much to be proud ofNoahB4536 has much to be proud ofNoahB4536 has much to be proud ofNoahB4536 has much to be proud ofNoahB4536 has much to be proud ofNoahB4536 has much to be proud ofNoahB4536 has much to be proud of
Re: Java Deploy for Debug not functional?

Quote:
Originally Posted by adil View Post
This seems to be a new issue in the 2017 WPILib. I start debugging but Eclipse will freeze for about a minute and then there is nothing logged to the console and no debug session was started.
We were able to fix this by connecting to the robot. Turns out thats how the debugger is supposed to work.

Not sure if this will solve the problem for everyone but the debugger has been working since we did this.
Reply With Quote
  #12   Spotlight this post!  
Unread 22-01-2017, 14:08
pascal_bergeron pascal_bergeron is offline
Registered User
FRC #3986
 
Join Date: Jan 2017
Location: Canada
Posts: 2
pascal_bergeron is an unknown quantity at this point
Re: Java Deploy for Debug not functional?

"We were able to fix this by connecting to the robot. Turns out thats how the debugger is supposed to work."

We are having this same problem. Could you please clarify what you mean by "connecting to the robot"?
Reply With Quote
  #13   Spotlight this post!  
Unread 23-01-2017, 18:17
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 68
gerthworm has a spectacular aura aboutgerthworm has a spectacular aura about
Re: Java Deploy for Debug not functional?

Quote:
Originally Posted by mikewindlake View Post
Is there an ETA on the fix? I just started mentoring (C# developer by day) What do I need to do get fix? Do I need to clone the Eclipseplugins and rebuild? I would like to be able to debug. It sounds like this also is affecting C++ too. We can certainly get the team going without debugging but it will certainly help me understand what's going one.
Not sure on overall ETA, although I"m going to try to see if I can get a workaround going tonight if I have time.

The fix to the ant build referenced in this thread that I (and others) looked at is merged here: https://github.com/wpilibsuite/EclipsePlugins/pull/96 - you can potentially manually update the files in your [home]/wpilib/*/build folders to check out if it gets you any further. However, any of the other issues might require re-compiling the plugin (which I have not attempted yet)

For all the folks saying they're freezing, let eclipse run for at least five minutes to see if you get control back. If you do, check your error log and see if you have symptoms similar to this other thread: https://www.chiefdelphi.com/forums/s...d.php?t=153511 ... I've got an issue in at https://github.com/wpilibsuite/EclipsePlugins/issues/99 for what I"m seeing, but I'm still trying to nail down if it's a "just me" or "everyone" thing.

EDIT: Debugging progress last night: no dice yet. I was able to manually coax the RIO into debugging mode by creating the /tmp/frcdebug file and restarting the user code, and got eclipse to connect by manually creating a debug target (with the RIO's address and port). However, eclipse still was giving warnings about line number annotations not being turned on (despite the fact that we have debug="true" in the javac tag in the ant build). Still learning as I go, but I'm worried that I'm getting too far down the rabbit hole in the wrong direction....

Last edited by gerthworm : 24-01-2017 at 07:45.
Reply With Quote
  #14   Spotlight this post!  
Unread 24-01-2017, 16:07
mikewindlake mikewindlake is offline
Registered User
FRC #6421
 
Join Date: Dec 2016
Location: Wind Lake, Wi
Posts: 7
mikewindlake is an unknown quantity at this point
Re: Java Deploy for Debug not functional?

There was a new version of the plugins for eclipse 2017.2.1. This seem to fix the debugging issue. I only tried once in Java as we moved to C++. The students were about split between Java and C++ and since we could get things going we went that direction.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:34.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi