AW: Problem setting breakpoint with JDEbug

2003-01-03 Thread Tetzlaff, Ralf


 
 (if (not (fboundp 'line-beginning-position))
 (defsubst jde-line-beginning-position (optional N)
   (save-excursion (beginning-of-line N) (point)))
   (defalias 'jde-line-beginning-position 'line-beginning-position))
 
 (if (not (fboundp 'line-end-position))
 (defsubst jde-line-end-position (optional N)
   (save-excursion (end-of-line N) (point)))
   (defalias 'jde-line-end-position 'line-end-position))
 
 Execute them by marking them as a region (using ctrl-space at the
 beginning and then moving to the end of the region) and then doing M-x
 eval-region.  Does it still happen after you do that?

Yes, still happens. No change at all.

 
 These lines are from jde-db.el, and should insure that
 line-beginning-position is defined no matter what your system is.
 Perhaps you do not have these lines, or for some reason they are not
 executing.  

I looked in jde-db.el, the lines are there.


 
 To be safe, you really should have a .emacs file.  See the JDE manual

But according to the XEmacs documentation, XEmacs does not use an .emacs
file
anymore (as I understood it) but the init.el file. Well I put copied the
init.el
in the Home directory to .emacs just to be sure, but that didn't change
anything
either.

Perhaps it is a problem with XEmacs? Should I try to rather work with Emacs?
I will
happily try that if you think that helps. I really like the features of JDE
but I 
have to admit that the problems installing it are driving me kind of mad. It
took me
an hour already to find out, that the JDE documentation on the web site is
obsolete and
that it is only in my local user guide that I am told to and how to set the
jde-jdk-registry 
(the jdk is in my path, but it just didn't work).
Well I hope I get the rest of the problems sorted out, too.

Thanks again for any help I get!

Ralf

 



AW: Problem setting breakpoint with JDEbug

2003-01-03 Thread Paul Kinnucan
Tetzlaff, Ralf writes:
  
  
   
   (if (not (fboundp 'line-beginning-position))
   (defsubst jde-line-beginning-position (optional N)
 (save-excursion (beginning-of-line N) (point)))
 (defalias 'jde-line-beginning-position 'line-beginning-position))
   
   (if (not (fboundp 'line-end-position))
   (defsubst jde-line-end-position (optional N)
 (save-excursion (end-of-line N) (point)))
 (defalias 'jde-line-end-position 'line-end-position))
   
   Execute them by marking them as a region (using ctrl-space at the
   beginning and then moving to the end of the region) and then doing M-x
   eval-region.  Does it still happen after you do that?
  
  Yes, still happens. No change at all.
  
   
   These lines are from jde-db.el, and should insure that
   line-beginning-position is defined no matter what your system is.
   Perhaps you do not have these lines, or for some reason they are not
   executing.  
  
  I looked in jde-db.el, the lines are there.
  
  
   
   To be safe, you really should have a .emacs file.  See the JDE manual
  
  But according to the XEmacs documentation, XEmacs does not use an .emacs
  file
  anymore (as I understood it) but the init.el file. Well I put copied the
  init.el
  in the Home directory to .emacs just to be sure, but that didn't change
  anything
  either.
  
  Perhaps it is a problem with XEmacs? Should I try to rather work with Emacs?

I would advise that you start with Emacs and move to XEmacs only after
you become proficient in Emacs, especially if your primary interest is
in using the JDEE. This is because 1) the JDEE's primary maintainer
and documenter uses Emacs to develop the JDEE and hence may
inadvertently introduce changes that break XEmacs and 2) XEmacs comes
with a version of the JDEE that is typically several releases out of
date.  Replacing the version included in the XEmacs distribution with
the latest version requires some sophistication (i.e., an awareness
that XEmacs splits the JDEE package up into several directories) or at
least a willingness to follow the JDEE's installation instructions for
XEmacs exactly. The problems you are having could be due to an
incorrect installation such that XEmacs is loading an old version of
the JDEE included in your XEmacs distribution.

- Paul

  I will
  happily try that if you think that helps. I really like the features of JDE
  but I 
  have to admit that the problems installing it are driving me kind of mad. It
  took me
  an hour already to find out, that the JDE documentation on the web site is
  obsolete and
  that it is only in my local user guide that I am told to and how to set the
  jde-jdk-registry 
  (the jdk is in my path, but it just didn't work).
  Well I hope I get the rest of the problems sorted out, too.
  
  Thanks again for any help I get!
  
  Ralf
  
   




Problem setting breakpoint with JDEbug

2003-01-02 Thread Tetzlaff, Ralf
Hi,
I am new to XEmacs AND to JDE so be indulgent if I am making ridiculous
things.
I have a problem setting a breakpoint with JDEbug. I started the debugger,
launched a process and then tried to set a breakpoint. But nothing happens
except an Error Warning: Symbol`s function definition is void:
line-beginning-position.
Can anyone help me with this? I used the JDE-Help-Submit problem report
function and posted the result below.

Thanks,
Ralf


Platform: Windows 2000, service pack 2 installed
Emacs  : XEmacs 21.4 (patch 10) Military Intelligence (Windows) [Lucid]
(i586-pc-win32) of Fri Nov 08 2002 on TSUNAMI
Package: JDE version 2.3.2
Required packages: semantic-1.4.1 eieio-0.17 speedbar-0.14beta4


current state:
==
(setq
 jde-which-method-class-min-length 4
 jde-gen-to-string-method-template '((end-of-line) ' \/**\ ''n
 \* Retrieve a String representation
of this object\ ''n \* \ ''n
 \* @return a codeString/code
representation of this object.\ ''n
 \* @see Object#toString()\ ''n
\*/\ ''n (jde-gen-method-signature
   \public\   \String\ 
\toString\   nil  ) ' (if jde-gen-kr 
  ()  'n) \{\''n ''r'n
\}\''n')
 jde-bug-jre-home 
 jde-bug-debugger-host-address TETZLAFF_LAP
 jde-import-insert-group-names nil
 jde-help-docsets '((JDK API  nil))
 jde-complete-signature-display-time 5
 jde-gen-junit-test-class-buffer-template '((funcall
jde-gen-boilerplate-function) (jde-gen-get-package-statement)
\import
junit.framework.Test;\ ''n
\import
junit.framework.TestCase;\ ''n
\import
junit.framework.TestSuite;\ ''n 'n
(progn (require 'jde-javadoc)
(jde-javadoc-insert-start-block)) \ * \
\ Unit Test for class \
(jde-gen-junit-class
(file-name-nondirectory buffer-file-name)) ''n
\ \
(jde-javadoc-insert-empty-line) \ \ (jde-javadoc-insert-empty-line)
\ * Created: \
(current-time-string) ''n
\ \
(jde-javadoc-insert-empty-line)
\ \ (jde-javadoc-insert
'tempo-template-jde-javadoc-author-tag)
\ \ (jde-javadoc-insert
'tempo-template-jde-javadoc-version-tag)
\ \ (jde-javadoc-insert
'tempo-template-jde-javadoc-end-block \*/\)
\public class \
(file-name-sans-extension
(file-name-nondirectory buffer-file-name))
\ extends TestCase \  (if
jde-gen-kr  () ''n) \{\''n 'n
 \ /** \ ''n  \* Creates
a new code\
(file-name-sans-extension
(file-name-nondirectory buffer-file-name))
\/code instance.\ ''n 
\*\ ''n  \* @param name test name\ ''n
 \*/\''n \public \
(file-name-sans-extension
(file-name-nondirectory buffer-file-name))
\ (String name)\ (if
jde-gen-kr  () ''n) \{\''n
\super(name);\''n \}\'
''n 'n \/**\ ''n
\* @return a
codeTestSuite/code\ ''n \*/\ ''n
\public static TestSuite
suite()\ ' (if jde-gen-kr  () ''n)
\{\''n \TestSuite suite =
new TestSuite ();\ ''n ''n
\return suite;\ ''n
\}\''n'n \/** \ ''n
\* Entry point \ ''n \*/
\ ''n
\public static void
main(String[] args) \ (if jde-gen-kr  () ''n)
\{\''n
\junit.textui.TestRunner.run(suite());\''n \}\''n
\}\ \// \
(file-name-sans-extension
(file-name-nondirectory buffer-file-name)) ''n)
 jde-run-option-heap-profile '(nil ./java.hprof 5 20 Allocation objects)
 jde-compile-option-encoding 
 jde-compile-option-optimize nil
 jde-project-hooks nil
 jde-run-executable-args nil
 jde-compile-option-verbose nil
 jde-gen-buffer-templates '((Class . jde-gen-class) (Interface .
jde-gen-interface) (Console . jde-gen-console)
(Swing App . jde-gen-jfc-app) (Unit Test .
jde-gen-junit-test-class))
 jde-wiz-get-set-methods-include '(Both)
 jde-run

Re: Problem setting breakpoint with JDEbug

2003-01-02 Thread Andrew Hyatt

Very odd.  This should work.  To double check, perhaps you can execute
these lines:

(if (not (fboundp 'line-beginning-position))
(defsubst jde-line-beginning-position (optional N)
  (save-excursion (beginning-of-line N) (point)))
  (defalias 'jde-line-beginning-position 'line-beginning-position))

(if (not (fboundp 'line-end-position))
(defsubst jde-line-end-position (optional N)
  (save-excursion (end-of-line N) (point)))
  (defalias 'jde-line-end-position 'line-end-position))

Execute them by marking them as a region (using ctrl-space at the
beginning and then moving to the end of the region) and then doing M-x
eval-region.  Does it still happen after you do that?

These lines are from jde-db.el, and should insure that
line-beginning-position is defined no matter what your system is.
Perhaps you do not have these lines, or for some reason they are not
executing.  

To be safe, you really should have a .emacs file.  See the JDE manual
on how to configure it to use JDE.  It may help in this instance,
although right now I can't think of a reason why.


Tetzlaff, Ralf [EMAIL PROTECTED] writes:

 Hi,
 I am new to XEmacs AND to JDE so be indulgent if I am making ridiculous
 things.
 I have a problem setting a breakpoint with JDEbug. I started the debugger,
 launched a process and then tried to set a breakpoint. But nothing happens
 except an Error Warning: Symbol`s function definition is void:
 line-beginning-position.
 Can anyone help me with this? I used the JDE-Help-Submit problem report
 function and posted the result below.
 
 Thanks,
 Ralf