Re: Problems debugging files with more than 1000 lines.
Hi I had my first attempt at writing emacs LISP yesterday, so please bear with me, if the patch isn't complete. I haven't tested this patch extensively, but I tried the code after the change, and it seemed to work for me. As Javier noted, maybe the code should examine the locale, and then only match the char that the local uses, but I have no idea how to write such code. Anyway .. here is a cvs diff from lisp-directory of the latest cvs version of jde: Index: jde-jdb.el === RCS file: /pack/anoncvs/jde/lisp/jde-jdb.el,v retrieving revision 1.45 diff -r1.45 jde-jdb.el 356c356 <"\\] .*(\\([^\$\n]*\\).*:\\([0-9]*,?[0-9]+\\))") --- >"\\] .*(\\([^\$\n]*\\).*:\\([0-9]*[^[:digit:]]?[0-9]+\\))") 676c676 <"^.*: thread=.*, \\(\\(.*[.]\\)*\\)\\([^\$]*\\)\\(\$.*\\)*[.].+(), line=\\([0-9,]*\\),") --- >"^.*: thread=.*, \\(\\(.*[.]\\)*\\)\\([^\$]*\\)\\(\$.*\\)*[.].+(), line=\\([0-9,.]*\\),") 1192c1192 <"^.*: \"thread=.*\", \\(\\(.*[.]\\)*\\)\\([^$]*\\)\\($.*\\)*[.].+(), line=\\([0-9,]*\\)")) --- >"^.*: \"thread=.*\", \\(\\(.*[.]\\)*\\)\\([^$]*\\)\\($.*\\)*[.].+(), line=\\([0-9,.]*\\)")) 1873c1873 < (if (string-match "," number) --- > (if (string-match "[^[:digit:]]" number) Please tell me if you want me to supply this in a different format, and how I do that, if so. Kind regards, and thanks for a great java mode for Emacs, Morten B. Isaksen .
Re: Problems debugging files with more than 1000 lines.
man, 2004-11-22 kl. 17:34 skrev Morten: > man, 2004-11-22 kl. 17:30 skrev Javier S. Lopez: > > Morten / Datagruppen MultiMED <[EMAIL PROTECTED]> writes: > > > > > man, 2004-11-22 kl. 13:31 skrev Morten: > > >> man, 2004-11-22 kl. 13:24 skrev Paul Kinnucan: > > >> > It's possible there is a regression. I will take a look > > >> > this evening to see if I can reproduce the problem. > > >> > > > >> > Just to be sure, which debugger are you using? The JDEE's > > >> > interface to jdb or JDEbug? > > > > > >> I'm using the jdb. > > > > > > > > > I noticed that in the code, it checks for "," .. and replaces it with > > > "". > > This will definetely cause the problem. I can change the code to look for > > ".", > > but I wonder if there are any other characters or a better way of doing > > this. > > > > Maybe "[^:digit:]" instead of "," .. but it also has to match lines like > "9,846" .. so "," needs to be exchanged for something in the code that > finds the lines also, I guess. Apparently I managed to fix the error for myself with the help of the good people in #emacs on irc.gnu.org I havn't tested it well yet, and I havn't done a cvs diff yet. The trick is to replace , with "[:digit:] in two places: In jde-db-cmd-notify-response: Change to this: (if (string-match (concat "^ \\[" (oref debuggee :stack-depth) "\\] .*(\\([^\$\n]*\\).*:\\([0-9]*[^[:digit:]]?[0-9]+\\))") output) and change jde-jdb-string-to-int(numer) like this: (defun jde-jdb-string-to-int(number) "Some numbers show like, 1,200, this method remove the comma to allow the number to show as 1200 insteand 1" (if (string-match "[^[:digit:]]" number) (setq number (replace-match "" nil nil number))) (string-to-int number)) I *think* thats it! Morten .
Re: Problems debugging files with more than 1000 lines.
Morten / Datagruppen MultiMED <[EMAIL PROTECTED]> writes: > man, 2004-11-22 kl. 13:31 skrev Morten: >> man, 2004-11-22 kl. 13:24 skrev Paul Kinnucan: >> > It's possible there is a regression. I will take a look >> > this evening to see if I can reproduce the problem. >> > >> > Just to be sure, which debugger are you using? The JDEE's >> > interface to jdb or JDEbug? > >> I'm using the jdb. > > > I noticed that in the code, it checks for "," .. and replaces it with > "". This will definetely cause the problem. I can change the code to look for ".", but I wonder if there are any other characters or a better way of doing this. Javier > > However, in my locale, lines past 999, are /not/ shown as : 1,204 .. > they're show as "1.204" as we use "," in fractional numbers. Eg. in > danish, 1Â is "1,5" not "1.5" .. so "1,204" would be between the first > and the second line. Now in regex, "." matches any char, so I guess > it needs to be escaped with "\" or something? (I am not proficient > with lisp or elisp). > > Morten . > > > -- Javier S. Lopez Software Developer Forum Systems, Inc. 95 Sawyer Road, Suite 110, Waltham, MA 02453 http://www.forumsys.com The information contained in this electronic mail and any attached document is the confidential and proprietary business information of Forum Systems, Inc. It is intended solely for the addressed recipient listed above. It may not be distributed in any manner without the express written consent of Forum Systems, Inc.
Re: Problems debugging files with more than 1000 lines.
man, 2004-11-22 kl. 17:30 skrev Javier S. Lopez: > Morten / Datagruppen MultiMED <[EMAIL PROTECTED]> writes: > > > man, 2004-11-22 kl. 13:31 skrev Morten: > >> man, 2004-11-22 kl. 13:24 skrev Paul Kinnucan: > >> > It's possible there is a regression. I will take a look > >> > this evening to see if I can reproduce the problem. > >> > > >> > Just to be sure, which debugger are you using? The JDEE's > >> > interface to jdb or JDEbug? > > > >> I'm using the jdb. > > > > > > I noticed that in the code, it checks for "," .. and replaces it with > > "". > This will definetely cause the problem. I can change the code to look for ".", > but I wonder if there are any other characters or a better way of doing this. > Maybe "[^:digit:]" instead of "," .. but it also has to match lines like "9,846" .. so "," needs to be exchanged for something in the code that finds the lines also, I guess. Morten .
Re: Problems debugging files with more than 1000 lines.
man, 2004-11-22 kl. 13:31 skrev Morten: > man, 2004-11-22 kl. 13:24 skrev Paul Kinnucan: > > It's possible there is a regression. I will take a look > > this evening to see if I can reproduce the problem. > > > > Just to be sure, which debugger are you using? The JDEE's > > interface to jdb or JDEbug? > I'm using the jdb. I noticed that in the code, it checks for "," .. and replaces it with "". However, in my locale, lines past 999, are /not/ shown as : 1,204 .. they're show as "1.204" as we use "," in fractional numbers. Eg. in danish, 1½ is "1,5" not "1.5" .. so "1,204" would be between the first and the second line. Now in regex, "." matches any char, so I guess it needs to be escaped with "\" or something? (I am not proficient with lisp or elisp). Morten .
Re: Problems debugging files with more than 1000 lines.
man, 2004-11-22 kl. 13:24 skrev Paul Kinnucan: > It's possible there is a regression. I will take a look > this evening to see if I can reproduce the problem. > > Just to be sure, which debugger are you using? The JDEE's > interface to jdb or JDEbug? Thanks, I apologize in advance, in case it should be some stupid installation error on my hand. I'm using the jdb. Sincerely, Morten .
Re: Problems debugging files with more than 1000 lines.
Hi Morten, It's possible there is a regression. I will take a look this evening to see if I can reproduce the problem. Just to be sure, which debugger are you using? The JDEE's interface to jdb or JDEbug? Paul Morten writes: > fre, 2004-11-19 kl. 08:40 skrev Morten: > > tor, 2004-11-18 kl. 08:23 skrev Morten / Datagruppen MultiMED: > > > ons, 2004-11-17 kl. 22:21 skrev Javier S. Lopez: > > > > Morten <[EMAIL PROTECTED]> writes: > > > > > > > > > ons, 2004-11-17 kl. 14:05 skrev Javier S. Lopez: > > > > >> This has been fixed since version 2.3.4beta4 > > > > > > > > > Not sure what to to tell you. Is is possible that the old version is > > > > getting > > > > loaded somehow. > > > > > > I would be rather surprised if that was the case. When I click the jde > > > menu, and hold the mouse over "help", it displays "jde 2.3.4". > > > > Is there another way of testing which version of JDE I am running? It > > seems strange that I get the error that has been fixed ... > > > > Morten . > > Now I have deleted all other other versions of CEDET and JDE that I > could find. I tried to remove the path in .emacs, and jde refused to > load. I checked the sourcecode, and there are comments in the changelog > about the problem with linenumber > 999. I wonder if a specific version > of java or something else might be required? I use j2sdk 1.4.2_01. > > I'm running GNU/Linux Debian sarge (and I purged both CEDET and jde from > the system, so that I only use the files I downloaded). > > Please tell me what I can do to find out whats wrong with my system, > since Javier seems to have no problem, I assume its my setup! > > Kind regards, > Morten . > > > >
Re: Problems debugging files with more than 1000 lines.
fre, 2004-11-19 kl. 08:40 skrev Morten: > tor, 2004-11-18 kl. 08:23 skrev Morten / Datagruppen MultiMED: > > ons, 2004-11-17 kl. 22:21 skrev Javier S. Lopez: > > > Morten <[EMAIL PROTECTED]> writes: > > > > > > > ons, 2004-11-17 kl. 14:05 skrev Javier S. Lopez: > > > >> This has been fixed since version 2.3.4beta4 > > > > > > Not sure what to to tell you. Is is possible that the old version is > > > getting > > > loaded somehow. > > > > I would be rather surprised if that was the case. When I click the jde > > menu, and hold the mouse over "help", it displays "jde 2.3.4". > > Is there another way of testing which version of JDE I am running? It > seems strange that I get the error that has been fixed ... > > Morten . Now I have deleted all other other versions of CEDET and JDE that I could find. I tried to remove the path in .emacs, and jde refused to load. I checked the sourcecode, and there are comments in the changelog about the problem with linenumber > 999. I wonder if a specific version of java or something else might be required? I use j2sdk 1.4.2_01. I'm running GNU/Linux Debian sarge (and I purged both CEDET and jde from the system, so that I only use the files I downloaded). Please tell me what I can do to find out whats wrong with my system, since Javier seems to have no problem, I assume its my setup! Kind regards, Morten .
Re: Problems debugging files with more than 1000 lines.
tor, 2004-11-18 kl. 08:23 skrev Morten / Datagruppen MultiMED: > ons, 2004-11-17 kl. 22:21 skrev Javier S. Lopez: > > Morten <[EMAIL PROTECTED]> writes: > > > > > ons, 2004-11-17 kl. 14:05 skrev Javier S. Lopez: > > >> This has been fixed since version 2.3.4beta4 > > > Not sure what to to tell you. Is is possible that the old version is getting > > loaded somehow. > > I would be rather surprised if that was the case. When I click the jde > menu, and hold the mouse over "help", it displays "jde 2.3.4". Is there another way of testing which version of JDE I am running? It seems strange that I get the error that has been fixed ... Morten .
Re: Problems debugging files with more than 1000 lines.
ons, 2004-11-17 kl. 22:21 skrev Javier S. Lopez: > Morten <[EMAIL PROTECTED]> writes: > > > ons, 2004-11-17 kl. 14:05 skrev Javier S. Lopez: > >> This has been fixed since version 2.3.4beta4 > > Anyhow, it seems the problem persists in verion 2.3.4 ... > > problems with that - I am using JDB. > > I use JDB as well, in fact the code is the same for both, JDB and JDEBug. > > Not sure what to to tell you. Is is possible that the old version is getting > loaded somehow. I would be rather surprised if that was the case. When I click the jde menu, and hold the mouse over "help", it displays "jde 2.3.4". However, I am very open to the fact that I might be doing something wrong, I'm not proficient with LISP, and I tend to get all the problems with GNU/Emacs that you can. (Well, thats probably not true, but it sure feels that way sometimes). I am very happy about JDE and GNU/Emacs otherwise though. Sincerely, Dabian . PS: I cc'ed the list - I didn't mean to send the mail to you privately, but I happened to hit "reply" instead of "reply to all.
Re: Problems debugging files with more than 1000 lines.
This has been fixed since version 2.3.4beta4 Javier Morten <[EMAIL PROTECTED]> writes: > Hi! > > I'm running the Debian version 2.3.3-2 om JDE, and I have a question: > > There seems to be problems when I try to debug files with more than 1000 > lines of java code. When the breakpoint is in one of those lines, its > like the cursor is in the wrong place. > > So far I just moved the method or class below the 1000 lines limit, but > I wonder what I am doing wrong, and if anyone else have expirience with > this. > > Sincerely, > Morten . > > >
Re: Problems debugging files with more than 1000 lines.
UPDATE: Thanks a lot for your response, I have now tried to file a problem report! ons, 2004-11-17 kl. 14:05 skrev Javier S. Lopez: > This has been fixed since version 2.3.4beta4 Thanks! I wasn't sure if it was a bug, or just me that was stupid! I was using the latest stable version. Anyhow, it seems the problem persists in verion 2.3.4 ... I forgot to mention that I don't use the ordinary debugger - I had some problems with that - I am using JDB. Thanks again for your help, I hate being stuck, and debugging this way, isn't exactly fluently. Sincerely, Morten .