Wikia

Vim Tips Wiki

Changes: Script:1785

Edit

Back to page

(adjust Template:ScriptComments to remove id as no longer needed; minor tweaks)
(Change <tt> to <code>, perhaps also minor tweak.)
Line 19: Line 19:
 
E154: Duplicate tag "`" in file c:\Vim\vim73\doc/xpt.snippet.syn.txt
 
E154: Duplicate tag "`" in file c:\Vim\vim73\doc/xpt.snippet.syn.txt
 
</pre>
 
</pre>
<small>--Preceding [[Vim Tips Wiki:Quick reference|unsigned]] comment added by [[User:anon|anon]] 14:09, April 18, 2011</small>
+
--April 18, 2011
+
----
 
 
Problem:
 
Problem:
   
Line 28: Line 28:
 
</pre>
 
</pre>
   
With my exsiting javacomplete gvim seems to take 100% cpu after a couple of keystrokes. If I remove javacomplete things are fine. I've got Java 1.7.0-b147
+
With my existing javacomplete gvim seems to take 100% cpu after a couple of keystrokes. If I remove javacomplete things are fine. I've got Java 1.7.0-b147 installed). The test code that I have been playing around with is:
installed). The test code that I have been playing around with is:
 
 
 
<pre>
 
<pre>
 
public class TestPolyLine {
 
public class TestPolyLine {
Line 36: Line 36:
 
PolyLine polygon = new PolyLine(coords);
 
PolyLine polygon = new PolyLine(coords);
 
}
 
}
 
 
</pre>
 
</pre>
   
If I backspace the PolyLine line to the previous line gvim locks up and takes 100%
+
If I backspace the PolyLine line to the previous line gvim locks up and takes 100% cpu. I'm not sure why. I also noticed that the Reflection.java code produces warnings when compiling (I had to compile the code manually). Any ideas what could be wrong? hth adil
cpu. I'm not sure why. I also noticed that the Reflection.java code produces warnings when compiling (I had to compile the code manually). Any ideas what could be wrong?
 
 
hth
 
adil
 

Revision as of 09:42, July 14, 2012

Use this page to discuss script 1785 javacomplete: omni completion for Java

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Comments

I got this Java autocompletion plugin working after much pain and suffering. --Preceding unsigned comment added by anon 00:14, April 30, 2010

I got javacomplete working without much pain and suffering, but it only completes JDK classes, not the classes I've created. When trying to omni-complete one of my objects I'm getting 'Pattern not found'. Is this really limited to JDK classes? If not, can anybody describe their config. Thnx. --98.249.9.100 22:17, June 12, 2010 (UTC)

To answer above, it's not limited to only JDK classes, but it can only find classes that are in your CLASSPATH. Add your src/ to your CLASSPATH and try again. 173.73.44.76 04:03, April 9, 2011 (UTC)
I found this link to be very helpful for getting it up and running -> http://groups.google.com/group/vim_mac/browse_thread/thread/6208cb4ab8212ff9/3ed2894bf8811b04?#3ed2894bf8811b04 --Preceding unsigned comment added by cdated 14:44, June 29, 2010

Problem:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 27 2010 17:59:02)
After extracting javacomplete0.77.1.2.zip
while doing :helptags c:\vim\vim73\doc I got the error
E154: Duplicate tag "^" in file c:\Vim\vim73\doc/xpt.snippet.syn.txt
E154: Duplicate tag "`" in file c:\Vim\vim73\doc/xpt.snippet.syn.txt

--April 18, 2011


Problem:

I compiled vim (7.3 with patches 1-353) on Ubuntu 11.10 with the following config options:

./configure --prefix=/opt/vim --enable-pythoninterp=yes --enable-rubyinterp=yes --enable-perlinterp=yes --enable-tclinterp=yes --with-features=huge --enable-luainterp=yes --enable-python3interp=yes

With my existing javacomplete gvim seems to take 100% cpu after a couple of keystrokes. If I remove javacomplete things are fine. I've got Java 1.7.0-b147 installed). The test code that I have been playing around with is:

public class TestPolyLine {
	public static void main(String[] args) {
		double [][] coords = {{1,1,}, {1,2}, {2,3},
			{-3,5}, {-5,1}, {0,0}}; 
                        PolyLine polygon = new PolyLine(coords);
	}

If I backspace the PolyLine line to the previous line gvim locks up and takes 100% cpu. I'm not sure why. I also noticed that the Reflection.java code produces warnings when compiling (I had to compile the code manually). Any ideas what could be wrong? hth adil

Around Wikia's network

Random Wiki