unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10928: 24.0.94; dired-mode on /proj/foo/bar gives error : dir-locals-read-from-file: Opening input file: No such file or directory, /proj/.dir-locals.el
@ 2012-03-02 10:45 Vardhan Varma
  2012-03-02 17:31 ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Vardhan Varma @ 2012-03-02 10:45 UTC (permalink / raw)
  To: 10928

[-- Attachment #1: Type: text/plain, Size: 3760 bytes --]

Problem:

  Opening dired-mode on a directory which starts with '/proj/' give

  following error :

 

dir-locals-read-from-file: Opening input file: No such file or
directory, /proj/.dir-locals.el

 

  After this, the buffer comes out blank.

  Pressing 'g' in the buffer displays the dired-mode properly

 

-Thanx

 

 

 

 

 

 

In GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4)

of 2012-03-02 on _machine_name_

Configured using:

`configure '--prefix=/scratch/sw' 'CFLAGS=-I/scratch/sw/include'

'LDFLAGS=-L/scratch/sw/lib''

 

Important settings:

  value of $LC_ALL: nil

  value of $LC_COLLATE: nil

  value of $LC_CTYPE: nil

  value of $LC_MESSAGES: nil

  value of $LC_MONETARY: nil

  value of $LC_NUMERIC: nil

  value of $LC_TIME: nil

  value of $LANG: nil

  value of $XMODIFIERS: nil

  locale-coding-system: nil

  default enable-multibyte-characters: t

 

Major mode: Fundamental

 

Minor modes in effect:

  tooltip-mode: t

  mouse-wheel-mode: t

  tool-bar-mode: t

  menu-bar-mode: t

  file-name-shadow-mode: t

  global-font-lock-mode: t

  auto-composition-mode: t

  auto-encryption-mode: t

  auto-compression-mode: t

  line-number-mode: t

  transient-mark-mode: t

 

Recent input:

ESC [ > 0 ; 1 3 6 ; 0 c C-x C-f / p r o j / m i g RET

C-x b * M e s TAB RET ESC x r e p o TAB TAB r TAB -

TAB RET d i r s - l o c a l RET ESC O B ESC O B ESC

O B ESC O B ESC O C ESC O C ESC O C RET ESC O A ESC

O B RET ESC O A ESC O B ESC x ESC O A C-e ESC DEL ESC

DEL ESC DEL ESC DEL TAB RET

 

Recent messages:

("emacs")

For information about GNU Emacs and the GNU system, type C-h C-a.

dir-locals-read-from-file: Opening input file: No such file or
directory, /proj/.dir-locals.el

Making completion list...

Using a proxy for http...

Contacting host: proxy:8080

Reporting new bug! [2 times]

 

Load-path shadows:

None found.

 

Features:

(shadow sort mail-extr wid-edit network-stream starttls url-cache

url-http tls url-gw url-auth url url-proxy url-privacy url-expand

url-methods url-history url-cookie url-util url-parse auth-source eieio

byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util

password-cache url-vars mailcap emacsbug message format-spec rfc822 mml

mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev

gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util

mail-prsvr mail-utils help-mode easymenu view dired regexp-opt time-date

tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar

dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow

timer select scroll-bar mouse jit-lock font-lock syntax facemenu

font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan

thai tai-viet lao korean japanese hebrew greek romanian slovak czech

european ethiopic indian cyrillic chinese case-table epa-hook

jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces

cus-face files text-properties overlay sha1 md5 base64 format env

code-pages mule custom widget hashtable-print-readable backquote

make-network-process dbusbind dynamic-setting system-font-setting

font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

 



This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.


[-- Attachment #2: Type: text/html, Size: 8274 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#10928: 24.0.94; dired-mode on /proj/foo/bar gives error : dir-locals-read-from-file: Opening input file: No such file or directory, /proj/.dir-locals.el
  2012-03-02 10:45 bug#10928: 24.0.94; dired-mode on /proj/foo/bar gives error : dir-locals-read-from-file: Opening input file: No such file or directory, /proj/.dir-locals.el Vardhan Varma
@ 2012-03-02 17:31 ` Glenn Morris
  2012-03-02 18:05   ` Vardhan Varma
  0 siblings, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2012-03-02 17:31 UTC (permalink / raw)
  To: Vardhan Varma; +Cc: 10928

Vardhan Varma wrote:

>   Opening dired-mode on a directory which starts with '/proj/' give
>   following error :
>
> dir-locals-read-from-file: Opening input file: No such file or
> directory, /proj/.dir-locals.el

Thanks for the report, but I cannot reproduce this. I tried:

mkdir -p /proj/foo/bar
touch /proj/foo/bar/qux
emacs -Q
C-x d /proj/foo/bar RET

Please can you give a recipe starting from emacs -Q?

> In GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4)





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#10928: 24.0.94; dired-mode on /proj/foo/bar gives error : dir-locals-read-from-file: Opening input file: No such file or directory, /proj/.dir-locals.el
  2012-03-02 17:31 ` Glenn Morris
@ 2012-03-02 18:05   ` Vardhan Varma
  2012-03-02 20:18     ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Vardhan Varma @ 2012-03-02 18:05 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 10928

Hi Glenn Morris,

> 
> >   Opening dired-mode on a directory which starts with '/proj/' give
> >   following error :
> >
> > dir-locals-read-from-file: Opening input file: No such file or
> > directory, /proj/.dir-locals.el
> 
> Thanks for the report, but I cannot reproduce this. I tried:
> 
> mkdir -p /proj/foo/bar
> touch /proj/foo/bar/qux
> emacs -Q
> C-x d /proj/foo/bar RET
> 
> Please can you give a recipe starting from emacs -Q?
> 
> > In GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.

I again installed from emacs from :
-rw-r--r--  1 vardhan users 51251891 Feb 27 09:17 emacs-24.0.94.tar.gz

And run 'emacs -Q' and got the same message trying to access
/proj/foo/bar

On the machine, '/proj' is a nfs mounted directory .. if it helps you !

I also got following message on trying to open a file:
Directory-local variables error: (file-error "Opening input file" "No
such file or directory" "/proj/.dir-locals.el")

But the file opens without any problem, and the message is only in
*Messages* buffer.

I looked in dired-x , and found variable enable-local-variables .

When i did a (set-variable 'enable-local-variables ()), i stopped
getting
these messages !!


If this doesn't help you in finding the problem,
I can try all the stuff on another machine

Thanx for the great work in developing emacs.

--
Vardhan

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.







^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#10928: 24.0.94; dired-mode on /proj/foo/bar gives error : dir-locals-read-from-file: Opening input file: No such file or directory, /proj/.dir-locals.el
  2012-03-02 18:05   ` Vardhan Varma
@ 2012-03-02 20:18     ` Glenn Morris
  2012-03-05 10:25       ` Vardhan Varma
  0 siblings, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2012-03-02 20:18 UTC (permalink / raw)
  To: Vardhan Varma; +Cc: 10928

Vardhan Varma wrote:

> On the machine, '/proj' is a nfs mounted directory .. if it helps you !

I tried with an nfs-mounted /proj, it still works for me.
Does this only happen with directories literally called "/proj"?

> I also got following message on trying to open a file:
> Directory-local variables error: (file-error "Opening input file" "No
> such file or directory" "/proj/.dir-locals.el")

What does

ls -l /proj/.dir-locals.el

say in a shell?


What does

emacs -Q

M-: (dir-locals-find-file "/proj/foo/bar") RET

return?





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#10928: 24.0.94; dired-mode on /proj/foo/bar gives error : dir-locals-read-from-file: Opening input file: No such file or directory, /proj/.dir-locals.el
  2012-03-02 20:18     ` Glenn Morris
@ 2012-03-05 10:25       ` Vardhan Varma
  2012-03-06  2:51         ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Vardhan Varma @ 2012-03-05 10:25 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 10928

hi Glenn,

> > On the machine, '/proj' is a nfs mounted directory .. if it helps
you !
> 
> I tried with an nfs-mounted /proj, it still works for me.
> Does this only happen with directories literally called "/proj"?
> 

 Yes, this is happening only with directories and files inside the
'/proj/' tree.

 
> > I also got following message on trying to open a file:
> > Directory-local variables error: (file-error "Opening input file"
"No
> > such file or directory" "/proj/.dir-locals.el")
> 
> What does
> 
> ls -l /proj/.dir-locals.el
> 
> say in a shell?

Thanx for asking .. suddenly i'm enlightned ...
$  ls -l /proj/.dir-locals.el
ls: /proj/.dir-locals.el: No such file or directory
$  ls -dl /proj/.dir-locals.el
dr-xr-xr-x 2 root root 0 Jan  5 02:33 /proj/.dir-locals.el

To me, it looks like the automount is playing some tricks .. initially
it tells emacs that this exists 
and when emacs tries to read it .. it tells that it doesn't exist ... or
something like that ...

And i'm sorry for giving partial info .. /proj is nfs and is auto
mounted..

Here is the strace of calls that emacs is doing ...
stat("/proj/foo/bar/qux/.dir-locals.el", 0x7fff6e27f590) = -1 ENOENT (No
such file or directory)
stat("/proj/foo/bar/.dir-locals.el", 0x7fff6e27f590) = -1 ENOENT (No
such file or directory)
stat("/proj/foo/.dir-locals.el", 0x7fff6e27f590) = -1 ENOENT (No such
file or directory)
stat("/proj/.dir-locals.el", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
stat("/proj/.dir-locals.el", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/proj/.dir-locals.el", O_RDONLY)  = -1 ENOENT (No such file or
directory)
stat("/proj/foo/bar/.dir-locals.el", 0x7fff6e27fb80) = -1 ENOENT (No
such file or directory)
stat("/proj/foo/.dir-locals.el", 0x7fff6e27fb80) = -1 ENOENT (No such
file or directory)
stat("/proj/.dir-locals.el", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
stat("/proj/.dir-locals.el", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/proj/.dir-locals.el", O_RDONLY)  = -1 ENOENT (No such file or
directory)


> 
> What does
> 
> emacs -Q
> 
> M-: (dir-locals-find-file "/proj/foo/bar") RET
> 
> return?
> 
"/proj/.dir-locals.el"

===
 I think this behaviour is quirk of automounting. Just for the record, 

$ cat /etc/redhat-release
Red Hat Enterprise Linux Client release 5.6 (Tikanga)
 : 15:45:39 : /home/vardhan
$ rpm -qa | grep autofs
autofs-5.0.1-0.rc2.148.bz667273.1.el5

Glenn,
  thanx a lot for helping me in finding this.
  This is a unique case, where '/proj/' is an automounted directory,
  and it's hightly improbable that lot of people will hit it !

  It's up to you ... if you think some change can be done in emacs or
dired.el !

Thanx a lot
-Vardhan
  

      


This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.







^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#10928: 24.0.94; dired-mode on /proj/foo/bar gives error : dir-locals-read-from-file: Opening input file: No such file or directory, /proj/.dir-locals.el
  2012-03-05 10:25       ` Vardhan Varma
@ 2012-03-06  2:51         ` Glenn Morris
  0 siblings, 0 replies; 6+ messages in thread
From: Glenn Morris @ 2012-03-06  2:51 UTC (permalink / raw)
  To: Vardhan Varma; +Cc: 10928

Vardhan Varma wrote:

> $  ls -l /proj/.dir-locals.el
> ls: /proj/.dir-locals.el: No such file or directory
> $  ls -dl /proj/.dir-locals.el
> dr-xr-xr-x 2 root root 0 Jan  5 02:33 /proj/.dir-locals.el

Is there really a /proj/.dir-locals.el directory (not file)?
(How does it have zero size - what is the file system?)
Can you just delete whatever that is?

It looks to me like your automounter is broken, because the above
sequence ought to be impossible, AIUI.

> To me, it looks like the automount is playing some tricks .. initially
> it tells emacs that this exists 
> and when emacs tries to read it .. it tells that it doesn't exist ... or
> something like that ...
[...]
> stat("/proj/foo/.dir-locals.el", 0x7fff6e27f590) = -1 ENOENT (No such
> file or directory)
> stat("/proj/.dir-locals.el", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
> stat("/proj/.dir-locals.el", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
> open("/proj/.dir-locals.el", O_RDONLY)  = -1 ENOENT (No such file or
> directory)

I don't understand what's going on there, but I made Emacs ignore
.dir-locals.el if it is a directory (or unreadable). I guess that will
fix your issue. But if /proj/.dir-locals.el was a weird file rather than
a weird directory, the same issue would occur. I don't think there would
anything Emacs could do about that.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-06  2:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02 10:45 bug#10928: 24.0.94; dired-mode on /proj/foo/bar gives error : dir-locals-read-from-file: Opening input file: No such file or directory, /proj/.dir-locals.el Vardhan Varma
2012-03-02 17:31 ` Glenn Morris
2012-03-02 18:05   ` Vardhan Varma
2012-03-02 20:18     ` Glenn Morris
2012-03-05 10:25       ` Vardhan Varma
2012-03-06  2:51         ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).