Author Topic: Java Live Errors refuses to recognize some classes  (Read 2400 times)

rygaard

  • Community Member
  • Posts: 63
  • Hero Points: 1
Re: Java Live Errors refuses to recognize some classes
« Reply #15 on: January 19, 2023, 10:32:17 PM »
After I run rte-enable-logging, I get a fairly useful log of what Live Errors is doing.  However, it does not show the directory from which the javac command was run.  If this bit of information could be added to the log, it would be even more useful.

My hypothesis is that Live Errors is not always running the javac command from my project root directory, thereby causing the problem.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Java Live Errors refuses to recognize some classes
« Reply #16 on: January 20, 2023, 08:49:37 AM »
I didn't end up logging that, because it's not meant to be significant.  Using a relative path there is definitely wrong.   

I'm still narrowing the problem down.  It's a little more subtle than I was expecting. It's still in an area that should be hot-fixable though.  I'll let you know when there's a fix, or if I need any files from you. 

rygaard

  • Community Member
  • Posts: 63
  • Hero Points: 1
Re: Java Live Errors refuses to recognize some classes
« Reply #17 on: January 28, 2023, 05:40:00 PM »
The problem is:
  • The classpath entries are being converted so that they are relative to the project root.
  • The javac command is being run from the current directory, which might not be the project root.
See the attached video.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Java Live Errors refuses to recognize some classes
« Reply #18 on: January 30, 2023, 01:52:05 PM »
Yes, that is the problem.  When I said it was subtle, I was talking about the mechanism that's causing the path to be rewritten to a relative path. There's no question relative paths are a problem. 

I'll update when I have a fix for you to try.  Either as the hotfix, or something you can temporarily apply until 27.0.2 comes out.   

rygaard

  • Community Member
  • Posts: 63
  • Hero Points: 1
Re: Java Live Errors refuses to recognize some classes
« Reply #19 on: January 30, 2023, 11:54:13 PM »
Cool.

Sorry I misunderstood your meaning; sounds like you've got this.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: Java Live Errors refuses to recognize some classes
« Reply #20 on: January 31, 2023, 02:52:27 PM »
Sorry I misunderstood your meaning; sounds like you've got this.

++heroPoints for proper use of a semi-colon - in English ;D.

rygaard

  • Community Member
  • Posts: 63
  • Hero Points: 1
Re: Java Live Errors refuses to recognize some classes
« Reply #21 on: February 01, 2023, 04:44:23 AM »
OK,

Proper English would be "I'm sorry I misunderstood your meaning; it sounds like you've got this".

So, Neener, Neener, Neener!   ;)

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: Java Live Errors refuses to recognize some classes
« Reply #22 on: February 01, 2023, 03:19:49 PM »
OK,

Proper English would be "I'm sorry I misunderstood your meaning; it sounds like you've got this".

So, Neener, Neener, Neener!   ;)

I was only commenting on the semi-colon :).  Programmers know how to use them in programming languages, but not that many people know how to use them in English anymore.

rygaard

  • Community Member
  • Posts: 63
  • Hero Points: 1
Re: Java Live Errors refuses to recognize some classes
« Reply #23 on: February 01, 2023, 04:26:38 PM »
 ;D

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Java Live Errors refuses to recognize some classes
« Reply #24 on: February 06, 2023, 03:04:37 PM »
I've put in a fix for this that will be in the next hotfix.  I'm not sure yet when that is going to be posted, but I'll update once I know.


rygaard

  • Community Member
  • Posts: 63
  • Hero Points: 1
Re: Java Live Errors refuses to recognize some classes
« Reply #25 on: February 15, 2023, 05:56:27 PM »
Cool!   ;D

I'm sorry I didn't see your post sooner; I guess I didn't see the email notification.  Anyway, this is great!