E505 - ReadOnly

516 views
Skip to first unread message

larret

unread,
May 29, 2010, 4:49:25 PM5/29/10
to eclim-user
When I try to write file, I get E505 error saying that file is opened
in read-only mode. I force write by :w!, but I would like to turn off
this "read-only mode" by some default setting. Before I installed
eclim, I did never experience this issue (in ViM context).

lrt

unread,
May 29, 2010, 6:44:01 PM5/29/10
to eclim-user
OK. Simpler then I thought: "set noreadonly".

2010/5/29 larret <lar...@gmail.com>

larret

unread,
May 30, 2010, 7:25:22 AM5/30/10
to eclim-user
Problem persists. If I set noreadonly, functions related with tags
crashes (some error about not being able to change status of file) so
I need to get back to readonly turned on.

Right now when I change my file, and try to write it, I get read-only
warning. I fix any syntax errors, and try to write again. Again
readonly warning, so I force wrtiting by :w! . This of course doesn't
change status of file. It's still in read-only mode. How can I change
its statu back to writable?

Another question: Why after writing changes to let's say class1.php,
some temp file class1.php~ isn't deleted? It causes some mess in my
subversion catalog.

Eric Van Dewoestine

unread,
May 30, 2010, 12:52:06 PM5/30/10
to eclim...@googlegroups.com
On Sun, May 30, 2010 at 04:25:22AM -0700, larret wrote:
> Problem persists. If I set noreadonly, functions related with tags
> crashes (some error about not being able to change status of file) so
> I need to get back to readonly turned on.
>
> Right now when I change my file, and try to write it, I get read-only
> warning. I fix any syntax errors, and try to write again. Again
> readonly warning, so I force wrtiting by :w! . This of course doesn't
> change status of file. It's still in read-only mode. How can I change
> its statu back to writable?

I'm not sure why writable files would be getting set to read only in
your environment. Does the problem still occur if you run vim with
the minimum settings (based on another email of yours, I'm assuming
you're on windows):

"C:\Program Files\Vim\vim72\gvim" -u NONE -U NONE
--cmd "set nocp | sy on | filetype plugin indent on | ru plugin/eclim.vim"

> Another question: Why after writing changes to let's say class1.php,
> some temp file class1.php~ isn't deleted? It causes some mess in my
> subversion catalog.

By default vim creates a backup file before overwriting the original
file with new contents. You can disable this feature by adding the
following to your vimrc:

set nobackup

--
eric

larret

unread,
May 30, 2010, 2:48:14 PM5/30/10
to eclim-user
> I'm not sure why writable files would be getting set to read only in
> your environment.  Does the problem still occur if you run vim with
> the minimum settings (based on another email of yours, I'm assuming
> you're on windows):
>
> "C:\Program Files\Vim\vim72\gvim" -u NONE -U NONE
>   --cmd "set nocp | sy on | filetype plugin indent on | ru plugin/eclim.vim"

Windows. Problem doesn't occure if I run ViM in minumum mode. Problem
also doesn't occure if I run ViM in normal mode and I
set :EclimDisable before write.

larret

unread,
May 31, 2010, 5:49:17 AM5/31/10
to eclim-user
Also it seems, it isn't local problem. I installed today on fresh
installed Windows: ViM 7.2, Eclipse 3.5.2 and Eclim 1.5.6. It's
exactly the same problem. However - (on both instances) if I shutdown
eclimd deamon files are again writable.

Eric Van Dewoestine

unread,
May 31, 2010, 12:38:06 PM5/31/10
to eclim...@googlegroups.com

Ok, I was able to track down and fix[1] the issue which only occurs on
Windows and only when saving php files.

[1] http://github.com/ervandew/eclim/commit/67d744a36106a3f6376cef6b02a45a651d1e6e5c

--
eric

Reply all
Reply to author
Forward
0 new messages