Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Code Recommenders » Code Recommenders do not work for me
Code Recommenders do not work for me [message #893767] Thu, 05 July 2012 13:33 Go to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
I just installed the recent version of the Code Recommenders, but unfortunately it doesn't work for me (eclipse 3.7 or 4.2, doesn't matter).

The only working thing is Subwords content assistant.

I don't know, does it make sense, but .plugins\org.eclipse.recommenders.rcp is almost empty. Repository folder has the following subfolders:

.plugins\org.eclipse.recommenders.rcp\repository\org\eclipse\recommenders\index\0.0.0\

That's all I have in it.
Re: Code Recommenders do not work for me [message #893786 is a reply to message #893767] Thu, 05 July 2012 13:59 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 229
Registered: July 2009
Senior Member
Anything in these folders?

under .metdata/plugins/org.eclipse.recommenders.rcp there should be
/index/
(some index files in there)


/repository/org/eclipse/recommenders/index/0.0.0/
_maven.repositories
index-0.0.0.zip
index-0.0.0.zip.etag


I assume you have an internet connection as the search index will be downloaded/updated when Recommenders starts. Without an internet connection only the folder gets created. Also: Models are downloaded on demand (once), i.e., on first access. However to make this happen the index needs to be downloaded successfully before.

Is there anything in the logs?


tw: @MarcelBruch
tw: @Recommenders

[Updated on: Thu, 05 July 2012 14:32]

Report message to a moderator

Re: Code Recommenders do not work for me [message #893955 is a reply to message #893786] Fri, 06 July 2012 07:59 Go to previous messageGo to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
Quote:
.metdata/plugins/org.eclipse.recommenders.rcp there should be
/index/


empty as well

Quote:
I assume you have an internet connection


yes, through the corporate proxy/firewall. At least Eclipse was able to download & install code recommenders via the Install feature Smile

Quote:
Is there anything in the logs?


Nope.

Is there any way to enable kinda 'detailed log' or debug this somehow?
Re: Code Recommenders do not work for me [message #893969 is a reply to message #893955] Fri, 06 July 2012 09:03 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 49
Registered: July 2009
Member
The directory layout you describe looks similar to a missing internet
connection (or being blocked by a personal firewall or virus scanner).

In the PDE error log view there should be at least two error messages
like those below:

"Failed to open search index"

and

"'remote-models' (http://download.eclipse.org/recommenders/model/juno/
....) did not send ETAG header for org.eclipse.recommenders:index:pom:0.0.0"


Is there a local virus scanner running that checks the files downloaded
from the internet or block download requests until you accept them to
happen?

I don't think you changed any default settings but to be sure: I also
assume that Preferences > Code Recommenders > "Enable auto-download" is
checked?

Just to get one step further, you could download the index manually [1]
and put that file into the repository/o.e.r/index/0.0.0/ folder. On
restart Eclipse should extract that file into the /index folder. But I'm
not sure this will actually solve your issues.



[1] http://
download.eclipse.org/recommenders/models/juno/org/eclipse/recommenders/index/0.0.0/index-0.0.0.zip


On 06.07.12 09:59, Oleg Danilov wrote:
> Quote:
>> .metdata/plugins/org.eclipse.recommenders.rcp there should be /index/
>
>
> empty as well
>
> Quote:
>> I assume you have an internet connection
>
>
> yes, through the corporate proxy/firewall. At least Eclipse was able to
> download & install code recommenders via the Install feature :)
>
> Quote:
>> Is there anything in the logs?
>
>
> Nope.
>
> Is there any way to enable kinda 'detailed log' or debug this somehow?
Re: Code Recommenders do not work for me [message #893972 is a reply to message #893969] Fri, 06 July 2012 09:30 Go to previous messageGo to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
Marcel Bruch wrote on Fri, 06 July 2012 05:03

In the PDE error log view there should be at least two error messages
like those below:


Error log is empty.

Quote:
Is there a local virus scanner running that checks the files downloaded
from the internet or block download requests until you accept them to
happen?


Nope.

Quote:
I don't think you changed any default settings but to be sure: I also
assume that Preferences > Code Recommenders > "Enable auto-download" is
checked?


Checked.


Quote:
Just to get one step further, you could download the index manually


Well, there is one more empty subdir - .plugins\o.e.r.r\repository\org\eclipse\swt\org.eclipse.swt.win32.win32.x86\3.0.0\

and

.plugins\o.e.r.r\repository\org\eclipse\swt\org.eclipse.swt.win32.win32.x86\resolver-status.properties:

#NOTE: This is an internal implementation file, its format can be changed without prior notice.
#Fri Jul 06 13:21:39 MSK 2012
maven-metadata-remote-models.xml.error=Could not transfer metadata org.eclipse.swt\:org.eclipse.swt.win32.win32.x86/maven-metadata.xml from/to remote-models (http\://download.eclipse.org/recommenders/models/juno/)\: Error transferring file\: Connection timed out\: no further information to http\://download.eclipse.org/recommenders/models/juno/org/eclipse/swt/org.eclipse.swt.win32.win32.x86/maven-metadata.xml
maven-metadata-remote-models.xml/default-http\://download.eclipse.org/recommenders/models/juno/.lastUpdated=1341566499141


Btw, Internal Web Browser displays this file (htt://.../maven-metadata.xml) successfully.
Re: Code Recommenders do not work for me [message #893973 is a reply to message #893972] Fri, 06 July 2012 09:37 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 49
Registered: July 2009
Member
Odd problem. Apparently internet connection works, fetching files per
browser works, fetching files from my mac and windows works too. This is
somewhat unexpected now :)

OK let's try another mirror then. Could you change the repository URL to
"http://mirror.selfnet.de/eclipse/recommenders/models/juno/" and see
what happens?

There are probably other mirrors closer to you but for testing this
should work (we used this one for our mirror tests).




On 06.07.12 11:30, Oleg Danilov wrote:
> Marcel Bruch wrote on Fri, 06 July 2012 05:03
>> In the PDE error log view there should be at least two error messages
>> like those below:
>
>
> Error log is empty.
>
> Quote:
>> Is there a local virus scanner running that checks the files
>> downloaded from the internet or block download requests until you
>> accept them to happen?
>
>
> Nope.
>
> Quote:
>> I don't think you changed any default settings but to be sure: I also
>> assume that Preferences > Code Recommenders > "Enable auto-download"
>> is checked?
>
>
> Checked.
>
>
> Quote:
>> Just to get one step further, you could download the index manually
>
>
> Well, there is one more empty subdir -
> .plugins\o.e.r.r\repository\org\eclipse\swt\org.eclipse.swt.win32.win32.x86\3.0.0\
>
>
> and
>
> plugins\o.e.r.r\repository\org\eclipse\swt\org.eclipse.swt.win32.win32.x86\resolver-status.properties:
>
>
> #NOTE: This is an internal implementation file, its format can be
> changed without prior notice.
> #Fri Jul 06 13:21:39 MSK 2012
> maven-metadata-remote-models.xml.error=Could not transfer metadata
> org.eclipse.swt\:org.eclipse.swt.win32.win32.x86/maven-metadata.xml
> from/to remote-models
> (http\://download.eclipse.org/recommenders/models/juno/)\: Error
> transferring file\: Connection timed out\: no further information to
> http\://download.eclipse.org/recommenders/models/juno/org/eclipse/swt/org.eclipse.swt.win32.win32.x86/maven-metadata.xml
>
> maven-metadata-remote-models.xml/default-http\://download.eclipse.org/recommenders/models/juno/.lastUpdated=1341566499141
>
>
>
> Btw, Internal Web Browser displays this file
> (htt://.../maven-metadata.xml) successfully.
>
Re: Code Recommenders do not work for me [message #893982 is a reply to message #893973] Fri, 06 July 2012 10:28 Go to previous messageGo to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
The same problem.

I just run code recommenders in debug mode and got the following:


14:24:35.689 [Worker-1] DEBUG o.e.r.i.rcp.repo.ModelRepository - java.net.ConnectException: Connection timed out: no further information to http://download.eclipse.org/recommenders/models/juno/org/eclipse/recommenders/index/0.0.0/index-0.0.0.pom
14:24:35.689 [Worker-1] WARN  o.e.r.i.rcp.repo.ModelRepository - 'remote-models (http://download.eclipse.org/recommenders/models/juno/, releases+snapshots)' did not send ETAG header for 'org.eclipse.recommenders:index:pom:0.0.0'.
14:24:35.689 [New I/O client boss #1] DEBUG c.n.h.c.p.n.NettyAsyncHttpProvider - Unexpected I/O exception on channel [id: 0x00513b74, /0.0.0.0:3134]
java.net.ConnectException: Connection timed out: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.7.0_03]
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:701) ~[na:1.7.0_03]
	at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.connect(NioClientSocketPipelineSink.java:384) ~[na:na]
	at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:354) ~[na:na]
	at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:276) ~[na:na]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_03]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.7.0_03]
	at java.lang.Thread.run(Thread.java:722) [na:1.7.0_03]
Re: Code Recommenders do not work for me [message #893984 is a reply to message #893982] Fri, 06 July 2012 10:32 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 49
Registered: July 2009
Member
> The same problem.
>
http://download.eclipse.org/recommenders/models/juno/org/eclipse/recommenders/index/0.0.0/index-0.0.0.pom


Did you use a mirror? URL above (still) points to Eclipse's repo. Looks
like eclipse.org is a bit selective to whom it delivers models...





On 06.07.12 12:28, Oleg Danilov wrote:
> The same problem.
>
> I just run code recommenders in debug mode and got the following:
>
>
>
> 14:24:35.689 [Worker-1] DEBUG o.e.r.i.rcp.repo.ModelRepository -
> java.net.ConnectException: Connection timed out: no further information
> to
> http://download.eclipse.org/recommenders/models/juno/org/eclipse/recommenders/index/0.0.0/index-0.0.0.pom
>
> 14:24:35.689 [Worker-1] WARN o.e.r.i.rcp.repo.ModelRepository -
> 'remote-models (http://download.eclipse.org/recommenders/models/juno/,
> releases+snapshots)' did not send ETAG header for
> 'org.eclipse.recommenders:index:pom:0.0.0'.
> 14:24:35.689 [New I/O client boss #1] DEBUG
> c.n.h.c.p.n.NettyAsyncHttpProvider - Unexpected I/O exception on channel
> [id: 0x00513b74, /0.0.0.0:3134]
> java.net.ConnectException: Connection timed out: no further information
> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.7.0_03]
> at
> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:701)
> ~[na:1.7.0_03]
> at
> org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.connect(NioClientSocketPipelineSink.java:384)
> ~[na:na]
> at
> org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:354)
> ~[na:na]
> at
> org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:276)
> ~[na:na]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> [na:1.7.0_03]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> [na:1.7.0_03]
> at java.lang.Thread.run(Thread.java:722) [na:1.7.0_03]
>
Re: Code Recommenders do not work for me [message #893986 is a reply to message #893984] Fri, 06 July 2012 10:41 Go to previous messageGo to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
Attached new error log (can't paste it directly, since this forum rejects http_://... links in it)
  • Attachment: console.txt
    (Size: 8.22KB, Downloaded 171 times)
Re: Code Recommenders do not work for me [message #893988 is a reply to message #893986] Fri, 06 July 2012 10:48 Go to previous messageGo to next message
Marcus Milanez is currently offline Marcus Milanez
Messages: 5
Registered: July 2009
Junior Member
Hey guys,

I'm having the very same issue in my environment - I can't get it to work. I can see the following information under /.metadata/.plugins/org.eclipse.recommenders.completion.rcp.calls/call-models-0.5.json

{
"C:\\jdk6\\jre\\lib\\rt.jar": {
"location": "C:\\jdk6\\jre\\lib\\rt.jar",
"status": "UNRESOLVED",
"error": "No call model found for \u0027C:\\jdk6\\jre\\lib\\rt.jar\u0027. Neither fingerprint \u0027625a0fd26235ee06f0b6f5bb3d8dcf801c3c84ec\u0027 nor symbolic name \u0027rt\u0027 are known."
}
}

However, the file rt.jar is present in this folder.
Re: Code Recommenders do not work for me [message #893989 is a reply to message #893988] Fri, 06 July 2012 10:51 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 49
Registered: July 2009
Member
But your .metadata/.plugins/o.e.recommenders.rcp/ flder contains the
index files?





On 06.07.12 12:48, Marcus Milanez wrote:
> Hey guys,
>
> I'm having the very same issue in my environment - I can't get it to
> work. I can see the following information under
> /.metadata/.plugins/org.eclipse.recommenders.completion.rcp.calls/call-models-0.5.json
>
>
> {
> "C:\\jdk6\\jre\\lib\\rt.jar": {
> "location": "C:\\jdk6\\jre\\lib\\rt.jar",
> "status": "UNRESOLVED",
> "error": "No call model found for
> \u0027C:\\jdk6\\jre\\lib\\rt.jar\u0027. Neither fingerprint
> \u0027625a0fd26235ee06f0b6f5bb3d8dcf801c3c84ec\u0027 nor symbolic name
> \u0027rt\u0027 are known."
> }
> }
>
> However, the file rt.jar is present in this folder.
Re: Code Recommenders do not work for me [message #893995 is a reply to message #893989] Fri, 06 July 2012 11:15 Go to previous messageGo to next message
Marcus Milanez is currently offline Marcus Milanez
Messages: 5
Registered: July 2009
Junior Member
Yes it does. However, I proceeded with the manual download as you suggested previously. The following files can be seen in this folder:

_0.fdt _0.fnm _0.nrm _0.tii segments.gen
_0.fdx _0.frq _0.prx _0.tis segments_1
Re: Code Recommenders do not work for me [message #893998 is a reply to message #893986] Fri, 06 July 2012 11:21 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 49
Registered: July 2009
Member
Oleg, marcus

how good are your internet connections typically? Where are you located?


The async-http-client uses the default timeout of 60 seconds. If a
download takes longer that this you get a timeout exception. May you
internet connect be that slow that we hit this timeout? JRE models are
~2MB in size.


Maybe using a mirror {1} *very* close to you could work?


{1}
http://www.eclipse.org/downloads/download.php?file=/recommenders/models/juno&protocol=http&format=xml



On 06.07.12 12:41, Oleg Danilov wrote:
> Attached new error log (can't paste it directly, since this forum rejects http_://... links in it)
Re: Code Recommenders do not work for me [message #894003 is a reply to message #893998] Fri, 06 July 2012 11:37 Go to previous messageGo to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
index size is about ~140kb, so this is not the case
Re: Code Recommenders do not work for me [message #894004 is a reply to message #893998] Fri, 06 July 2012 11:38 Go to previous messageGo to next message
Marcus Milanez is currently offline Marcus Milanez
Messages: 5
Registered: July 2009
Junior Member
Marcel,

I'm from Brazil and the internet connection I'm currently using is pretty good actually. I tried your suggestion anyway and I didn't notice any change in this direction. All the other features from this plugin are working properly, except for intelligent call completions.

In Window -> Preference I noticed that all jars are being presented with a question mark symbol, and their resolution status are all 'unresolved'. Is this the expected behavior? Is this somehow related to this issue?

index.php/fa/10602/0/

Thanks!!!
  • Attachment: snap.jpg
    (Size: 374.15KB, Downloaded 2396 times)
Re: Code Recommenders do not work for me [message #894013 is a reply to message #894004] Fri, 06 July 2012 11:48 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 49
Registered: July 2009
Member
On 06.07.12 13:38, Marcus Milanez wrote:
> In Window -> Preference I noticed that all jars are being presented with a question mark symbol, and their resolution status are all 'unresolved'. Is this the expected behavior? Is this somehow related to this issue?

This is expected as downloading the models fails with a timeout. The
icons change as soon as the models are on the local disc and ready for use.

At the moment, I see two things I can do:

I'll configure maven to use a higher timeout value (5 minutes or so) and
get in contact with sonatype to ask if they have any hints on what's
going wrong.


Any other ideas what may cause and how to fix these timeouts would be
appreciated.
Re: Code Recommenders do not work for me [message #894023 is a reply to message #894013] Fri, 06 July 2012 12:28 Go to previous messageGo to next message
Marcus Milanez is currently offline Marcus Milanez
Messages: 5
Registered: July 2009
Junior Member
Is there any link where we can download these files outside eclipse?

Re: Code Recommenders do not work for me [message #894030 is a reply to message #894023] Fri, 06 July 2012 12:44 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 229
Registered: July 2009
Senior Member
No not directly.

But the simplest approach I can imagine that could work right away:

Find one of the mirrors that allows rsync on the models folder and copy/link everything below into you repository folder under .metadata/plugins

An alterantive would be to provide a test repository for download that can be extracted and used locally. I'll consider that for Monday. I'm travelling and won't have good internet access during the weekend.


In the meanwhile: I've triggered a build (build-id: b582) for recommenders which will be available on recommenders head update site in ~20 minutes [1]. It has a larger timeout value. Maybe one of you could give it a spin later today?


[1] http://download.ecipse.org/recommenders/updated/head/e42/


tw: @MarcelBruch
tw: @Recommenders

[Updated on: Fri, 06 July 2012 13:01]

Report message to a moderator

Re: Code Recommenders do not work for me [message #894035 is a reply to message #894030] Fri, 06 July 2012 13:01 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 229
Registered: July 2009
Senior Member
Wrong URL posted. updated above. It should be available now.

tw: @MarcelBruch
tw: @Recommenders
Re: Code Recommenders do not work for me [message #894039 is a reply to message #894030] Fri, 06 July 2012 13:12 Go to previous messageGo to next message
Marcus Milanez is currently offline Marcus Milanez
Messages: 5
Registered: July 2009
Junior Member
Thanks for your attention and patience, Marcel! I'll certainly ping you guys back once I have some results!
Re: Code Recommenders do not work for me [message #894042 is a reply to message #894030] Fri, 06 July 2012 13:27 Go to previous messageGo to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
My guess that this is the proxy issue.

For instance, if I change

Response r = http.prepareHead(url).execute().get();

to

Response r = http.prepareHead(url).setProxyServer(new ProxyServer(MY_PROXY_ADDR, 8081)).execute().get();

then it successfully creates .plugins\org.eclipse.recommenders.rcp\repository\org\eclipse\recommenders\index\0.0.0\index-0.0.0.pom.etag

Well, no progress after that, but...
Re: Code Recommenders do not work for me [message #894052 is a reply to message #894042] Fri, 06 July 2012 13:48 Go to previous messageGo to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
Well, here is the second step:

ModelRepository.java
...
    @Override
    public void setRemote(String url) {
        remote = new RemoteRepository("remote-models", "default", url);
        remote.setProxy(new Proxy(Proxy.TYPE_HTTP, MY_PROXY_ADDR, 8081, null));

Now I'm able to download the index...

[Updated on: Fri, 06 July 2012 13:49]

Report message to a moderator

Re: Code Recommenders do not work for me [message #894058 is a reply to message #894052] Fri, 06 July 2012 14:01 Go to previous messageGo to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
And model downloading works ok as well using this hack.
Re: Code Recommenders do not work for me [message #894110 is a reply to message #894058] Fri, 06 July 2012 16:55 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 229
Registered: July 2009
Senior Member
Great! As Eclipse comes with it's own proxy preferences we should reuse them for Recommenders' model repositories too. Could you open a bug for this in Bugzilla?

As you already have a working environment: If you'd like to finalize your hack and add support of proxy settings, I'd very much appreciate a patch in Gerrit Smile


tw: @MarcelBruch
tw: @Recommenders
Re: Code Recommenders do not work for me [message #894450 is a reply to message #894110] Mon, 09 July 2012 09:39 Go to previous messageGo to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
Marcel, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=384586 (patch is attached there)
Re: Code Recommenders do not work for me [message #894457 is a reply to message #894450] Mon, 09 July 2012 09:56 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 229
Registered: July 2009
Senior Member
Looks good! I'll certainly move a few lines to other locations to make use of DI but great fix. Thanks a lot!

tw: @MarcelBruch
tw: @Recommenders
Re: Code Recommenders do not work for me [message #894884 is a reply to message #894457] Tue, 10 July 2012 22:15 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 229
Registered: July 2009
Senior Member
The new drops will be available on HEAD update site in a few minutes. Please let me know if this fix solves your model download problems. If so, I'll make this available for dev builds and schedule it for 1.0.1.

Thanks
Marcel

For Eclipse 4.2/3.8 please use:
http://download.eclipse.org/recommenders/updates/head/e42/ (build id: b587)

For Eclipse 3.7 use:
http://download.eclipse.org/recommenders/updates/head/e37/ (build id: b610)


tw: @MarcelBruch
tw: @Recommenders
Re: Code Recommenders do not work for me [message #894961 is a reply to message #894884] Wed, 11 July 2012 09:01 Go to previous messageGo to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
Works for me now, thnx.
Re: Code Recommenders do not work for me [message #895611 is a reply to message #893767] Fri, 13 July 2012 19:25 Go to previous messageGo to next message
Srujan kumar is currently offline Srujan kumar
Messages: 4
Registered: July 2012
Junior Member
Marcel,

Continuing the discussion here.

1) Deleted the folder workspace\.metadata\.plugins\org.eclipse.recommenders.rcp and just in case deleted the folders org.eclipse.recommenders.completion.rcp.calls and org.eclipse.recommenders.completion.rcp.overrides from the .plugins directory.

2) Restarted eclipse

3) These folders will be created back again obviously.

The contents in the folder workspace\.metadata\.plugins\org.eclipse.recommenders.rcp are index and repository folders. Attached the rar file. Can you please check if everythings ok.

Eclipse Network connections: Schema HTTP is checked with host=dynamic; port=dynamic; provider=native,Auth=false,User=<blank> Password=<blank>. Proxy bypass has two unchecked hosts 1) localhost 2)127.0.0.1



Re: Code Recommenders do not work for me [message #895617 is a reply to message #895611] Fri, 13 July 2012 19:56 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 229
Registered: July 2009
Senior Member
Srujan,

from your rar I can see that the network connection works fine. The index is downloaded properly. However, yet no model file gets downloaded.

Could you send me the java project you try to use Code Recommenders in? Maybe you use an unexpected configuration that prevents Recommenders from resolving the models of your Java Runtime. A Screenshot showing your project folder contents in the Package Explorer could also help.


tw: @MarcelBruch
tw: @Recommenders

[Updated on: Fri, 13 July 2012 19:57]

Report message to a moderator

Re: Code Recommenders do not work for me [message #895655 is a reply to message #895617] Sat, 14 July 2012 07:12 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 229
Registered: July 2009
Senior Member
Srujan,

after thinking about it for a while. Can you send me your project's .classpath file?

Resolving the model for all Java Runtimes independent of the underlying OS and exact classpath, we check the project's classpath for a classpath container named "org.eclipse.jdt.launching.JRE_CONTAINER". All jars below are mapped to the JRE model. It may be the case that your project uses a different name for this special container which would cause the lookup to fail.


To give an example, in my projects the classpath file looks as follows:


<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
	<classpathentry kind="src" path="src"/>
	<classpathentry kind="output" path="bin"/>
</classpath>



tw: @MarcelBruch
tw: @Recommenders
Re: Code Recommenders do not work for me [message #895951 is a reply to message #895655] Mon, 16 July 2012 15:45 Go to previous messageGo to next message
Srujan kumar is currently offline Srujan kumar
Messages: 4
Registered: July 2012
Junior Member
hey marcel,

Here is the contents of .classpath file.

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7"/>
<classpathentry kind="lib" path="C:/Documents and Settings/sgulla/Desktop/Downloads/icu4j-4_8_1_1.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

In the same project(as .classpath above), One more thing i noticed that, when I do a "java". and wait for content assist i do see the feature "Intelligent Code Completion" working meaning giving the most uses method of String class in this case(giving % usage like .equals - 41%, length -20%)

Even though I see "Intelligent Code Completion", still going to Preferences-> I see the jars to be "UNRESOLVED"

[Updated on: Mon, 16 July 2012 15:54]

Report message to a moderator

Re: Code Recommenders do not work for me [message #897290 is a reply to message #893767] Mon, 23 July 2012 13:58 Go to previous messageGo to next message
Srujan kumar is currently offline Srujan kumar
Messages: 4
Registered: July 2012
Junior Member
hi marcel,

Did you get a chance to look at my last reply? please let me know if my last comments helps.

Thanks,
Srujan
Re: Code Recommenders do not work for me [message #897323 is a reply to message #897290] Mon, 23 July 2012 15:18 Go to previous messageGo to next message
Marcel Bruch is currently offline Marcel Bruch
Messages: 229
Registered: July 2009
Senior Member
Hi Srujan,

you said code completion works but does not highlight the resolved model on the preference page, right?

As code completion on "string" worked - does the preference page still show UNRESOLVED for rt.jar?



Just to be sure we have the same understanding of what UNRESOLVED means: All jars will initially have the status UNRESOLVED. Models for these jars will be loaded lazily, i.e., when you trigger code completion on any of the types contained in these jars - and the server has a model available for them.

In the case of String for instance, rt.jar is initially UNRESOLVED but after you triggered code completion on "java".<^space> the model gets automatically downloaded and state should be changed to RESOLVED. Can you check your preference page and tell me what't the sate for rt.jar now?


tw: @MarcelBruch
tw: @Recommenders
Re: Code Recommenders do not work for me [message #897326 is a reply to message #893767] Mon, 23 July 2012 15:22 Go to previous message
Srujan kumar is currently offline Srujan kumar
Messages: 4
Registered: July 2012
Junior Member
hey marcel,

The other when i checked the status of rt.jar it was unresolved(may be it was still building or downloading etc). Now it is RESOLVED for rt.jar, it does do a lazy loading and it makes sense to go with this design.

Thank you for all the help. Appreciate it.

Srujan.
Previous Topic:Updated chain completion available for testing
Next Topic:Android NDK Native Development disappeared...
Goto Forum:
  


Current Time: Sun Sep 21 18:27:29 GMT 2014

Powered by FUDForum. Page generated in 0.09264 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software