eclim icon indicating copy to clipboard operation
eclim copied to clipboard

E463

Open cosoc opened this issue 7 years ago • 3 comments

why have E46:Region is guarded,cannot modify What should I do?

cosoc avatar Oct 23 '17 03:10 cosoc

I'll need a lot more information than that. What were you trying to do when you got that error?

ervandew avatar Jan 02 '18 01:01 ervandew

I get the exact same message. I use gvim embedded in eclipse. If the Java Code Completer finds an issue (e.g. a missing semi-colon at the end of the line), I can not modify the code in that region anymore. I get the error message: E463: Region is guarded, cannot modify Here's a screen shot: e463

void-m4110c avatar Nov 28 '18 19:11 void-m4110c

@ervandew I have happened to hit that issue just now and can't seem to work around it. I would be excited to fix it but I lack just a few pointers. I dug around quite some bit.

I get the exact same thing as user mickmattes above. It happens in lines that are highlighted with an error marker. I use the embedded gvim on linux.

Now, :help E463 yields this: https://github.com/vim/vim/blob/master/runtime/doc/netbeans.txt From reading that I get the impression that the only agent that is able to introduce such a guarded region is the controller -- the counterpart in the "netbeans" :sigh: protocol. Would you agree that this is probably where to look?

Now, what is puzzling is, that I do find some mention of the netbeans protocol in the eclim vim codebase; gvim is invoked with -nb: and multiple lines here and elsewhere in that file check for that feature: https://github.com/ervandew/eclim/blob/61dadd60ec511831c008fdfb27985e8d4de8a790/org.eclim.vimplugin/vim/eclim/autoload/eclim/vimplugin.vim#L41

But, I cannot seem to find no trace of a server-side netbeans protocol implementation, and after all, it is where a guard <offset> <len> directive as specd in the netbeans protocol doc would originate from. and that's frustrating and I would ask kindly for a pointer on where to look next.

Thanks :)

First, would you confirm that

simlei avatar Dec 18 '19 19:12 simlei