Re: Wrong type argument: stringp, nil on global-ede-mode
Dumsani Ndzinisa <[email protected]> Tue, 5 Jan 2016 06:49:43 +0200
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <CADfKch0reiMwq4OHcfWAmj2CEY2UbcnHi3OOvMT18FkxcUL+Ng@mail.gmail.com> |
--===============2412409071804284037==
Content-Type: multipart/alternative; boundary=001a1149433e5486fb05288ef738
--001a1149433e5486fb05288ef738
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Concerning "tramp", when loading the Helm package I do get a message
referring to that. Here is some sample output from the *Messages* buffer
below. I reverted to Emacs 24.5 (just switched to that tagged point in the
Emacs git repo and installed), and the very same init file loads
successfully. The message (or warning) about "tramp" though is still there.
For information about GNU Emacs and the GNU system, type C-h C-a.
package
(("gnu" . "http://elpa.gnu.org/packages/") ("melpa" . "
http://melpa.milkbox.net/packages/"))
t
monokai-theme
t
switch-window
ace-jump-mode
mc/mark-next-line-this
mc/mark-previous-line-this
"=03g"
("~/.emacs.d/custom"
"/home/dumsani/.emacs.d/elpa/ace-jump-mode-20140616.115"
"/home/dumsani/.emacs.d/elpa/anzu-20151015.405"
"/home/dumsani/.emacs.d/elpa/auctex-11.89/"
"/home/dumsani/.emacs.d/elpa/auctex-11.89"
"/home/dumsani/.emacs.d/elpa/auto-complete-auctex-20140223.958"
"/home/dumsani/.emacs.d/elpa/auto-complete-20151211.227"
"/home/dumsani/.emacs.d/elpa/autopair-20140825.427"
"/home/dumsani/.emacs.d/elpa/cdlatex-20140707.426"
"/home/dumsani/.emacs.d/elpa/clang-format-20151116.438"
"/home/dumsani/.emacs.d/elpa/clean-aindent-mode-20150816.2029"
"/home/dumsani/.emacs.d/elpa/column-enforce-mode-20140902.949" ...)
ad-handle-definition: `tramp-read-passwd' got redefined
setup-helm
setup-helm-gtags
setup-applications
setup-cedet
setup-convenience
setup-data
2016-01-05 2:49 GMT+02:00 Eric Ludlam <[email protected]>:
> It looks like:
>
> (file-name-directory (directory-file-name dir))
>
> when dir =3D=3D "~/" returns nil. I don't know how you got ~/ into the s=
tack
> though. It started out as "/home/dumsani", and it was converted somewher=
e
> into "~/" for you. Do you have anything extra loaded that overrides file
> system things like tramp, or an equivalent that might be overriding
> locate-dominating-file, or something like that? I didn't see anything li=
ke
> that in your setup file.
>
> Eric
>
>
>
> On 01/04/2016 03:58 AM, Dumsani Ndzinisa wrote:
>
>> Hi Eric, Everyone,
>>
>> Below is the error message and a backtrace from the Emacs debugger. I
>> opened
>> Emacs with the -q option and then evaluated the statements in my .emacs
>> init file
>> individually using C-x C-e.
>>
>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>> file-name-as-directory(nil)
>> #[(this dir)
>> "\306 ! \307\n\310\"\211 ;\205 \311 \"\211
>> \203!\f\205D\312\f!\202D\307\n\313\"\211 ;\203/\314\202C\315
>> !\205C
>> \205C\316
>> !\205C\317
>> \")+\207" [dir d this pf f dirmatch file-name-as-directory eieio-oref
>> proj-file expand-file-name file-exists-p proj-root-dirmatch nil
>> ede-project-autoload-dirmatch-p ede-dirmatch-installed ede-do-dirmatch]
>> 4 "Return non-nil if THIS project autoload is found in
>> DIR."]([eieio-class-tag--ede-project-autoload "Make" ede/proj
>> "Project.ede" nil nil unbound nil ede-proj-load ede-proj-project nil t
>> nil] nil)
>> apply(#[(this dir)
>> "\306 ! \307\n\310\"\211 ;\205 \311 \"\211
>> \203!\f\205D\312\f!\202D\307\n\313\"\211 ;\203/\314\202C\315
>> !\205C
>> \205C\316
>> !\205C\317
>> \")+\207" [dir d this pf f dirmatch file-name-as-directory eieio-oref
>> proj-file expand-file-name file-exists-p proj-root-dirmatch nil
>> ede-project-autoload-dirmatch-p ede-dirmatch-installed ede-do-dirmatch]
>> 4 "Return non-nil if THIS project autoload is found in DIR."]
>> [eieio-class-tag--ede-project-autoload "Make" ede/proj "Project.ede" nil
>> nil unbound nil ede-proj-load ede-proj-project nil t nil] nil)
>> ede-auto-detect-in-dir([eieio-class-tag--ede-project-autoload "Make"
>> ede/proj "Project.ede" nil nil unbound nil ede-proj-load
>> ede-proj-project nil t nil] nil)
>> ede--detect-ldf-root-predicate("~/")
>> locate-dominating-file("~/" ede--detect-ldf-root-predicate)
>> ede--detect-scan-directory-for-project-root("~/"
>> [eieio-class-tag--ede-project-autoload "Make" ede/proj "Project.ede" nil
>> nil unbound nil ede-proj-load ede-proj-project nil t nil])
>> ede-detect-directory-for-project("/home/dumsani/")
>> ede-directory-project-cons("~/")
>> ede-initialize-state-current-buffer()
>> ede-reset-all-buffers()
>> global-ede-mode(t)
>> eval-buffer(#<buffer *load*> nil
>> "/home/dumsani/.emacs.d/custom/setup-cedet.el" nil t) ; Reading at
>> buffer position 512
>>
>> load-with-code-conversion("/home/dumsani/.emacs.d/custom/setup-cedet.el"
>> "/home/dumsani/.emacs.d/custom/setup-cedet.el" nil t)
>> require(setup-cedet)
>> eval((require (quote setup-cedet)) nil)
>> elisp--eval-last-sexp(nil)
>> eval-last-sexp(nil)
>> funcall-interactively(eval-last-sexp nil)
>> call-interactively(eval-last-sexp nil nil)
>> command-execute(eval-last-sexp)
>>
>> On Mon, Jan 4, 2016 at 2:05 AM, Eric Ludlam <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> On 01/03/2016 01:54 PM, Dumsani Ndzinisa wrote:
>>
>> Hi,
>>
>> [...]
>>
>> However, the process always fails when the line
>> (global-ede-mode) gets
>> executed in my
>> init file. I am attaching my init file (~/.emacs) as well as my
>> customization file for setting
>> up CEDET (as guided by one of the sources I mentioned above).
>>
>> I'm using Emacs 25.1.5, installed from source (on GNU Linux Mint=
,
>> gcc/g++ 4.8, x86) after
>> cloning the Emacs' git repo. There is a stock CEDET installation
>> coming
>> with this version
>> of Emacs, and according to my Emacs package manager (M-x
>> cedet-version),
>> the version
>> of CEDET in here is 2.0.
>>
>>
>> I tried your setup file w/ a fresh Emacs from git, and it seemed to
>> load with no error for me. Could you paste in what the error
>> message is? Your setup seems fine to me.
>>
>> Thanks
>> Eric
>>
>>
>>
>>
>> --
>> Dumsani
>>
>
--=20
Dumsani
--001a1149433e5486fb05288ef738
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Concerning "tramp", when loading the Helm packag=
e I do get a message<div>referring to that. Here is some sample output from=
the *Messages* buffer</div><div>below. I reverted to Emacs 24.5 (just swit=
ched to that tagged point in the</div><div>Emacs git repo and installed), a=
nd the very same init file loads=C2=A0</div><div>successfully. The message =
(or warning) about "tramp" though is still there.</div><div><br><=
/div><div><br></div><div><div>For information about GNU Emacs and the GNU s=
ystem, type C-h C-a.</div><div>package</div><div>(("gnu" . "=
<a href=3D"http://elpa.gnu.org/packages/">http://elpa.gnu.org/packages/</a>=
") ("melpa" . "<a href=3D"http://melpa.milkbox.net/pack=
ages/">http://melpa.milkbox.net/packages/</a>"))</div><div>t</div><div=
>monokai-theme</div><div>t</div><div>switch-window</div><div>ace-jump-mode<=
/div><div>mc/mark-next-line-this</div><div>mc/mark-previous-line-this</div>=
<div>"=03g"</div><div>("~/.emacs.d/custom" "/home/=
dumsani/.emacs.d/elpa/ace-jump-mode-20140616.115" "/home/dumsani/=
.emacs.d/elpa/anzu-20151015.405" "/home/dumsani/.emacs.d/elpa/auc=
tex-11.89/" "/home/dumsani/.emacs.d/elpa/auctex-11.89" "=
;/home/dumsani/.emacs.d/elpa/auto-complete-auctex-20140223.958" "=
/home/dumsani/.emacs.d/elpa/auto-complete-20151211.227" "/home/du=
msani/.emacs.d/elpa/autopair-20140825.427" "/home/dumsani/.emacs.=
d/elpa/cdlatex-20140707.426" "/home/dumsani/.emacs.d/elpa/clang-f=
ormat-20151116.438" "/home/dumsani/.emacs.d/elpa/clean-aindent-mo=
de-20150816.2029" "/home/dumsani/.emacs.d/elpa/column-enforce-mod=
e-20140902.949" ...)</div><div>ad-handle-definition: `tramp-read-passw=
d' got redefined</div><div>setup-helm</div><div>setup-helm-gtags</div><=
div>setup-applications</div><div>setup-cedet</div><div>setup-convenience</d=
iv><div>setup-data</div></div><div><br></div><div><br></div></div><div clas=
s=3D"gmail_extra"><br><div class=3D"gmail_quote">2016-01-05 2:49 GMT+02:00 =
Eric Ludlam <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>></span>:<br><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad=
ding-left:1ex">It looks like:<br>
<br>
(file-name-directory (directory-file-name dir))<br>
<br>
when dir =3D=3D "~/" returns nil.=C2=A0 I don't know how you =
got ~/ into the stack though.=C2=A0 It started out as "/home/dumsani&q=
uot;, and it was converted somewhere into "~/" for you.=C2=A0 Do =
you have anything extra loaded that overrides file system things like tramp=
, or an equivalent that might be overriding locate-dominating-file, or some=
thing like that?=C2=A0 I didn't see anything like that in your setup fi=
le.<span class=3D"HOEnZb"><font color=3D"#888888"><br>
<br>
Eric</font></span><div><div class=3D"h5"><br>
<br>
<br>
On 01/04/2016 03:58 AM, Dumsani Ndzinisa wrote:<br>
</div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div><div class=3D"h5">
Hi Eric, Everyone,<br>
<br>
Below is the error message and a backtrace from the Emacs debugger. I opene=
d<br>
Emacs with the -q option and then evaluated the statements in my .emacs<br>
init file<br>
individually using C-x C-e.<br>
<br>
Debugger entered--Lisp error: (wrong-type-argument stringp nil)<br>
=C2=A0 =C2=A0file-name-as-directory(nil)<br>
=C2=A0 =C2=A0#[(this dir)<br>
"\306 ! \307\n\310\"\211 ;\205 \311 \"\211 \203!\f\205D\312\=
f!\202D\307\n\313\"\211 ;\203/\314\202C\315<br>
!\205C<br>
\205C\316<br>
!\205C\317<br>
=C2=A0\")+\207" [dir d this pf f dirmatch file-name-as-directory =
eieio-oref<br>
proj-file expand-file-name file-exists-p proj-root-dirmatch nil<br>
ede-project-autoload-dirmatch-p ede-dirmatch-installed ede-do-dirmatch]<br>
4 "Return non-nil if THIS project autoload is found in<br>
DIR."]([eieio-class-tag--ede-project-autoload "Make" ede/pro=
j<br>
"Project.ede" nil nil unbound nil ede-proj-load ede-proj-project =
nil t<br>
nil] nil)<br>
=C2=A0 =C2=A0apply(#[(this dir)<br>
"\306 ! \307\n\310\"\211 ;\205 \311 \"\211 \203!\f\205D\312\=
f!\202D\307\n\313\"\211 ;\203/\314\202C\315<br>
!\205C<br>
\205C\316<br>
!\205C\317<br>
=C2=A0\")+\207" [dir d this pf f dirmatch file-name-as-directory =
eieio-oref<br>
proj-file expand-file-name file-exists-p proj-root-dirmatch nil<br>
ede-project-autoload-dirmatch-p ede-dirmatch-installed ede-do-dirmatch]<br>
4 "Return non-nil if THIS project autoload is found in DIR."]<br>
[eieio-class-tag--ede-project-autoload "Make" ede/proj "Proj=
ect.ede" nil<br>
nil unbound nil ede-proj-load ede-proj-project nil t nil] nil)<br>
=C2=A0 =C2=A0ede-auto-detect-in-dir([eieio-class-tag--ede-project-autoload =
"Make"<br>
ede/proj "Project.ede" nil nil unbound nil ede-proj-load<br>
ede-proj-project nil t nil] nil)<br>
=C2=A0 =C2=A0ede--detect-ldf-root-predicate("~/")<br>
=C2=A0 =C2=A0locate-dominating-file("~/" ede--detect-ldf-root-pre=
dicate)<br>
=C2=A0 =C2=A0ede--detect-scan-directory-for-project-root("~/"<br>
[eieio-class-tag--ede-project-autoload "Make" ede/proj "Proj=
ect.ede" nil<br>
nil unbound nil ede-proj-load ede-proj-project nil t nil])<br>
=C2=A0 =C2=A0ede-detect-directory-for-project("/home/dumsani/")<b=
r>
=C2=A0 =C2=A0ede-directory-project-cons("~/")<br>
=C2=A0 =C2=A0ede-initialize-state-current-buffer()<br>
=C2=A0 =C2=A0ede-reset-all-buffers()<br>
=C2=A0 =C2=A0global-ede-mode(t)<br>
=C2=A0 =C2=A0eval-buffer(#<buffer=C2=A0 *load*> nil<br>
"/home/dumsani/.emacs.d/custom/setup-cedet.el" nil t)=C2=A0 ; Rea=
ding at<br>
buffer position 512<br>
<br>
load-with-code-conversion("/home/dumsani/.emacs.d/custom/setup-cedet.e=
l"<br>
"/home/dumsani/.emacs.d/custom/setup-cedet.el" nil t)<br>
=C2=A0 =C2=A0require(setup-cedet)<br>
=C2=A0 =C2=A0eval((require (quote setup-cedet)) nil)<br>
=C2=A0 =C2=A0elisp--eval-last-sexp(nil)<br>
=C2=A0 =C2=A0eval-last-sexp(nil)<br>
=C2=A0 =C2=A0funcall-interactively(eval-last-sexp nil)<br>
=C2=A0 =C2=A0call-interactively(eval-last-sexp nil nil)<br>
=C2=A0 =C2=A0command-execute(eval-last-sexp)<br>
<br>
On Mon, Jan 4, 2016 at 2:05 AM, Eric Ludlam <<a href=3D"mailto:eric@sieg=
e-engine.com" target=3D"_blank">[email protected]</a><br></div></div><d=
iv><div class=3D"h5">
<mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">eric@=
siege-engine.com</a>>> wrote:<br>
<br>
=C2=A0 =C2=A0 On 01/03/2016 01:54 PM, Dumsani Ndzinisa wrote:<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Hi,<br>
<br>
=C2=A0 =C2=A0 [...]<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 However, the process always fails when the line=
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (global-ede-mode) gets<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 executed in my<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 init file. I am attaching my init file (~/.emac=
s) as well as my<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 customization file for setting<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 up CEDET (as guided by one of the sources I men=
tioned above).<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 I'm using Emacs 25.1.5, installed from sour=
ce (on GNU Linux Mint,<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 gcc/g++ 4.8, x86) after<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cloning the Emacs' git repo. There is a sto=
ck CEDET installation<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 coming<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 with this version<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 of Emacs, and according to my Emacs package man=
ager (M-x<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cedet-version),<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 the version<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 of CEDET in=C2=A0 here is 2.0.<br>
<br>
<br>
=C2=A0 =C2=A0 I tried your setup file w/ a fresh Emacs from git, and it see=
med to<br>
=C2=A0 =C2=A0 load with no error for me.=C2=A0 Could you paste in what the =
error<br>
=C2=A0 =C2=A0 message is? Your setup seems fine to me.<br>
<br>
=C2=A0 =C2=A0 Thanks<br>
=C2=A0 =C2=A0 Eric<br>
<br>
<br>
<br>
<br>
--<br>
Dumsani<br>
</div></div></blockquote>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature">Dumsani<br></div>
</div>
--001a1149433e5486fb05288ef738--
--===============2412409071804284037==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
--===============2412409071804284037==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Cedet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-devel
--===============2412409071804284037==--