Re: Problem with code completion in 2.2.9. Bug report attached.

2002-11-20 Thread Milan Zimmermann
Paul,

thanks for your reply below and appologies for my late response, I have been 
rebuilding my server over the weekend and was without internet for a few 
days.

snip

 Hi Milan,

 There are some puzzling discrepencies in your bug report that lead me
 to believe that your setup is at fault. For one, the variable
 jde-jdk, which the JDEE uses to find the vm used to start the
 beanshell, should be set to one of the jdk designators specified by
 jde-jdk-registry but it is set to something else. A customization
 buffer would not allow you to set jde-jdk to an illegitimate value.

I think the error report only attaches .emacs from $HOME, and I am loading 
another shared .emacs from there. I should have manually attached it.

In any case, I believe I did not do any manual changes outside custom (as 
far as I remember) befor I sent the bug report.  Yesterday, I deleted all the 
customization from my .emacs and rebuild it using 2.2.9 using Custom.

That fixed the problem. Your suggestion helped me realize I either messed up 
manually or something (jde variable name?) became out of date.

Thanks for your help, Milan

 The fact that it is means that someone in your environment is setting
 it programmatically, a bad thing, because it leads to errors that the
 customization buffer protects you from. Also the JDEE does not use a
 keyboard macro to trigger the completion facility. Perhaps you have
 provided one and perhaps it has become out of date because of changes in
 the names of the completion commands. Anyway, it's hard to tell because the
 .emacs file that you provide does not define any keyboard macros. So the
 keyboard macro must be defined somewhere else in a file that you have not
 provided.

 - Paul

   Thanks, Milan
  
   To: [EMAIL PROTECTED]
   Subject:
   --text follows this line--
  
   Please enter the details of your bug report here
  
  
  
   Emacs  : GNU Emacs 21.1.1 (i386-suse-linux, X toolkit, Xaw3d scroll
   bars) of 2002-03-25 on stephens
   Package: JDE version 2.2.9
   Required packages: semantic-1.4 eieio-0.17 speedbar-0.14beta4
  
  
   current state:
   ==
   (setq
jde-gen-session-bean-template '((jde-import-insert-imports-into-buffer
  (list \javax.ejb.*\ \java.rmi.RemoteException\))
   ' (jde-wiz-update-implements-clause \SessionBean\) '
   (jde-gen-method-signature   \public\   \void\  
   \ejbActivate\   nil   \RemoteException\  ) ' (if
   jde-gen-kr   ()  'n) \{\''n \}\''n 'n
   (jde-gen-method-signature   \public\   \void\  
   \ejbPassivate\   nil   \RemoteException\  ) ' (if
   jde-gen-kr   ()  'n) \{\''n \}\''n 'n
   (jde-gen-method-signature   \public\   \void\  
   \ejbRemove\   nil   \RemoteException\  ) ' (if
   jde-gen-kr   ()  'n) \{\''n \}\''n 'n
   (jde-gen-method-signature   \public\   \void\  
   \setSessionContext\   \SessionContext ctx\  
   \RemoteException\  ) ' (if jde-gen-kr   ()  'n)
   \{\''n \}\''n 'n (jde-gen-method-signature   \public\  
   \void\   \unsetSessionContext\   nil   \RemoteException\ 
   ) ' (if jde-gen-kr   ()  'n) \{\''n \}\''n 'n ')
   jde-gen-beep '((end-of-line) '
   \Toolkit.getDefaultToolkit().beep();\''n')
   jde-complete-signature-display '(Eldoc)
jde-project-name default
jde-which-method-format '([ jde-which-method-current ])
jde-run-classic-mode-vm nil
jde-complete-unique-method-names nil
jde-find-granularity '(Character)
jde-which-method-max-length 20
jde-javadoc-gen-nodeprecatedlist nil
jde-package-search-classpath-variables '(jde-compile-option-classpath
   jde-global-classpath) jde-imenu-include-classdef t
jde-javadoc-gen-link-online nil
jde-complete-display-result-type t
jde-gen-code-templates '((Get Set Pair . jde-gen-get-set) (toString
   method . jde-gen-to-string-method) (Action Listener .
   jde-gen-action-listener) (Window Listener . jde-gen-window-listener)
   (Mouse Listener . jde-gen-mouse-listener) (Mouse Motion Listener .
   jde-gen-mouse-motion-listener) (Inner Class . jde-gen-inner-class)
   (println . jde-gen-println) (beep . jde-gen-beep) (property change
   support . jde-gen-property-change-support) (EJB Entity Bean .
   jde-gen-entity-bean) (EJB Session Bean . jde-gen-session-bean))
   jde-gen-cflow-else '((if (jde-parse-comment-or-quoted-p)  '(l
   \else\)  '(l ' \else\  (if jde-gen-kr
   jde-gen-conditional-padding-3''n)  \{\''n''r'n  \}\ 
   (if jde-gen-comments'(l \ // end of else\))  ''n')  ))
   jde-jdk-registry '((1.3.1 . /usr/lib/java) (1.4.1 .
   /usr/local/j2sdk1.4.1-blackdown-beta))
   jde-javadoc-gen-destination-directory JavaDoc
jde-mode-line-format '(- mode-line-mule-info mode-line-modified
   mode-line-frame-identification mode-line-buffer-identification
   global-mode-string%[( mode-name mode-line-process minor-mode-alist
   %n )%]-- (line-number-mode L%l--) (column-number-mode C%c--) (-3
   . %p) (jde-which-method-mode (-- jde-which-method-format --))
   -%-) jde-mode-abbreviations '((ab . abstract) 

Problem with code completion in 2.2.9. Bug report attached.

2002-11-13 Thread Milan Zimmermann
Hello,

I upgraded to 2.2.9 (from beta 10 i believe). I installed the latest eieio, 
speedbar and semantic.

After the upgrade, the code completion no longer works for me. 

Immediately after hitting the complete key, I get a beep and see in the 
minibuffer:

After 0 kbd macro iterations: Wrong type argument: Stringp, nil

It seems to be bsh related, i tried to run M-x bsh-test and get the same 
message.

I tried earlier versions of eieio, speedbar and semantic as well, but no 
change.

The JDE Bug report attached:

Thanks, Milan


To: [EMAIL PROTECTED]
Subject: 
--text follows this line--

Please enter the details of your bug report here



Emacs  : GNU Emacs 21.1.1 (i386-suse-linux, X toolkit, Xaw3d scroll bars)
 of 2002-03-25 on stephens
Package: JDE version 2.2.9
Required packages: semantic-1.4 eieio-0.17 speedbar-0.14beta4


current state:
==
(setq
 jde-gen-session-bean-template '((jde-import-insert-imports-into-buffer(list 
\javax.ejb.*\ \java.rmi.RemoteException\)) '
 (jde-wiz-update-implements-clause \SessionBean\) 
' (jde-gen-method-signature   \public\   \void\   \ejbActivate\
   nil   \RemoteException\  ) ' (if 
jde-gen-kr   ()  'n) \{\''n \}\''n 'n (jde-gen-method-signature
   \public\   \void\   \ejbPassivate\   
nil   \RemoteException\  ) ' (if jde-gen-kr   ()  'n) \{\''n
 \}\''n 'n (jde-gen-method-signature   
\public\   \void\   \ejbRemove\   nil   \RemoteException\  ) '
 (if jde-gen-kr   ()  'n) \{\''n 
\}\''n 'n (jde-gen-method-signature   \public\   \void\
   \setSessionContext\   \SessionContext ctx\ 
  \RemoteException\  ) ' (if jde-gen-kr   ()  'n) \{\''n
 \}\''n 'n (jde-gen-method-signature   
\public\   \void\   \unsetSessionContext\   nil   \RemoteException\  
)
 ' (if jde-gen-kr   ()  'n) \{\''n 
\}\''n 'n ')
 jde-gen-beep '((end-of-line) ' \Toolkit.getDefaultToolkit().beep();\''n')
 jde-complete-signature-display '(Eldoc)
 jde-project-name default
 jde-which-method-format '([ jde-which-method-current ])
 jde-run-classic-mode-vm nil
 jde-complete-unique-method-names nil
 jde-find-granularity '(Character)
 jde-which-method-max-length 20
 jde-javadoc-gen-nodeprecatedlist nil
 jde-package-search-classpath-variables '(jde-compile-option-classpath 
jde-global-classpath)
 jde-imenu-include-classdef t
 jde-javadoc-gen-link-online nil
 jde-complete-display-result-type t
 jde-gen-code-templates '((Get Set Pair . jde-gen-get-set) (toString method . 
jde-gen-to-string-method) (Action Listener . jde-gen-action-listener)
  (Window Listener . jde-gen-window-listener) (Mouse 
Listener . jde-gen-mouse-listener)
  (Mouse Motion Listener . jde-gen-mouse-motion-listener) 
(Inner Class . jde-gen-inner-class) (println . jde-gen-println)
  (beep . jde-gen-beep) (property change support . 
jde-gen-property-change-support) (EJB Entity Bean . jde-gen-entity-bean)
  (EJB Session Bean . jde-gen-session-bean))
 jde-gen-cflow-else '((if (jde-parse-comment-or-quoted-p)  '(l \else\)  '(l ' 
\else\  (if jde-gen-kr jde-gen-conditional-padding-3''n)
   \{\''n''r'n  \}\  (if jde-gen-comments'(l \ 
// end of else\))  ''n')  ))
 jde-jdk-registry '((1.3.1 . /usr/lib/java) (1.4.1 . 
/usr/local/j2sdk1.4.1-blackdown-beta))
 jde-javadoc-gen-destination-directory JavaDoc
 jde-mode-line-format '(- mode-line-mule-info mode-line-modified 
mode-line-frame-identification mode-line-buffer-identification 
global-mode-string%[(
mode-name mode-line-process minor-mode-alist %n )%]-- 
(line-number-mode L%l--) (column-number-mode C%c--) (-3 . %p)
(jde-which-method-mode (-- jde-which-method-format --)) 
-%-)
 jde-mode-abbreviations '((ab . abstract) (bo . boolean) (br . break) 
(by . byte) (byv . byvalue) (cas . cast) (ca . catch) (ch . char)
  (cl . class) (co . const) (con . continue) (de 
. default) (dou . double) (el . else) (ex . extends) (fa . false)
  (fi . final) (fin . finally) (fl . float) (fo 
. for) (fu . future) (ge . generic) (go . goto)
  (impl . implements) (impo . import) (ins . 
instanceof) (in . int) (inte . interface) (lo . long) (na . native)
  (ne . new) (nu . null) (pa . package) (pri . 
private) (pro . protected) (pu . public) (re . return) (sh . short)
  (st . static) (su . super) (sw . switch) (sy . 
synchronized) (th . this) (thr . throw) (throw . throws)
  (tra . transient) (tr . true) (vo . void) (vol 
. volatile) (wh . while))
 jde-imenu-enable t
 jde-compile-option-verbose nil
 jde-check-version-flag t
 

Problem with code completion in 2.2.9. Bug report attached.

2002-11-13 Thread $B<c?y(B $BIp;K(B
Milan Zimmermann writes:
  Hello,
  
  I upgraded to 2.2.9 (from beta 10 i believe). I installed the latest eieio, 
  speedbar and semantic.
  
  After the upgrade, the code completion no longer works for me. 
  
  Immediately after hitting the complete key, I get a beep and see in the 
  minibuffer:
  
  After 0 kbd macro iterations: Wrong type argument: Stringp, nil
  
  It seems to be bsh related, i tried to run M-x bsh-test and get the same 
  message.
  
  I tried earlier versions of eieio, speedbar and semantic as well, but no 
  change.
  
  The JDE Bug report attached:

Hi Milan,

There are some puzzling discrepencies in your bug report that lead me
to believe that your setup is at fault. For one, the variable
jde-jdk, which the JDEE uses to find the vm used to start the
beanshell, should be set to one of the jdk designators specified by
jde-jdk-registry but it is set to something else. A customization
buffer would not allow you to set jde-jdk to an illegitimate value.
The fact that it is means that someone in your environment is setting
it programmatically, a bad thing, because it leads to errors that the
customization buffer protects you from. Also the JDEE does not use a keyboard
macro to trigger the completion facility. Perhaps you have provided one
and perhaps it has become out of date because of changes in the names
of the completion commands. Anyway, it's hard to tell because the .emacs
file that you provide does not define any keyboard macros. So the keyboard 
macro must be defined somewhere else in a file that you have not provided.

- Paul


  
  Thanks, Milan
  
  To: [EMAIL PROTECTED]
  Subject: 
  --text follows this line--
  
  Please enter the details of your bug report here
  
  
  
  Emacs  : GNU Emacs 21.1.1 (i386-suse-linux, X toolkit, Xaw3d scroll bars)
   of 2002-03-25 on stephens
  Package: JDE version 2.2.9
  Required packages: semantic-1.4 eieio-0.17 speedbar-0.14beta4
  
  
  current state:
  ==
  (setq
   jde-gen-session-bean-template '((jde-import-insert-imports-into-buffer(list 
 \javax.ejb.*\ \java.rmi.RemoteException\)) '
   (jde-wiz-update-implements-clause 
 \SessionBean\) ' (jde-gen-method-signature   \public\   \void\   
 \ejbActivate\
 nil   \RemoteException\  ) ' (if 
 jde-gen-kr   ()  'n) \{\''n \}\''n 'n (jde-gen-method-signature
 \public\   \void\   \ejbPassivate\   
 nil   \RemoteException\  ) ' (if jde-gen-kr   ()  'n) \{\''n
   \}\''n 'n (jde-gen-method-signature   
 \public\   \void\   \ejbRemove\   nil   \RemoteException\  ) '
   (if jde-gen-kr   ()  'n) \{\''n 
 \}\''n 'n (jde-gen-method-signature   \public\   \void\
 \setSessionContext\   \SessionContext 
 ctx\   \RemoteException\  ) ' (if jde-gen-kr   ()  'n) \{\''n
   \}\''n 'n (jde-gen-method-signature   
 \public\   \void\   \unsetSessionContext\   nil   \RemoteException\ 
  )
   ' (if jde-gen-kr   ()  'n) \{\''n 
 \}\''n 'n ')
   jde-gen-beep '((end-of-line) ' \Toolkit.getDefaultToolkit().beep();\''n')
   jde-complete-signature-display '(Eldoc)
   jde-project-name default
   jde-which-method-format '([ jde-which-method-current ])
   jde-run-classic-mode-vm nil
   jde-complete-unique-method-names nil
   jde-find-granularity '(Character)
   jde-which-method-max-length 20
   jde-javadoc-gen-nodeprecatedlist nil
   jde-package-search-classpath-variables '(jde-compile-option-classpath 
 jde-global-classpath)
   jde-imenu-include-classdef t
   jde-javadoc-gen-link-online nil
   jde-complete-display-result-type t
   jde-gen-code-templates '((Get Set Pair . jde-gen-get-set) (toString method . 
 jde-gen-to-string-method) (Action Listener . jde-gen-action-listener)
(Window Listener . jde-gen-window-listener) (Mouse 
 Listener . jde-gen-mouse-listener)
(Mouse Motion Listener . jde-gen-mouse-motion-listener) 
 (Inner Class . jde-gen-inner-class) (println . jde-gen-println)
(beep . jde-gen-beep) (property change support . 
 jde-gen-property-change-support) (EJB Entity Bean . jde-gen-entity-bean)
(EJB Session Bean . jde-gen-session-bean))
   jde-gen-cflow-else '((if (jde-parse-comment-or-quoted-p)  '(l \else\)  '(l 
 ' \else\  (if jde-gen-kr jde-gen-conditional-padding-3''n)
 \{\''n''r'n  \}\  (if jde-gen-comments'(l \ 
 // end of else\))  ''n')  ))
   jde-jdk-registry '((1.3.1 . /usr/lib/java) (1.4.1 . 
 /usr/local/j2sdk1.4.1-blackdown-beta))
   jde-javadoc-gen-destination-directory JavaDoc
   jde-mode-line-format '(- mode-line-mule-info mode-line-modified 
 mode-line-frame-identification mode-line-buffer-identification 
 global-mode-string%[(