Community
Participate
Working Groups
Running Eclipse cpp-ganymede-SR1 plus CDT 5.0.2.200810170802 plus PTP 2.1 RC2 from 10/19 Create a new remote project (using Linux Fedora remote rdt-server also from RC2) Contents of source file d_remote.c in remote c/c++ editor /* ============================================================================ Name : c_helloANSI.c Author : Version : Copyright : Your copyright notice Description : Hello World in C, Ansi-style ============================================================================ */ #include <stdio.h> #include <stdlib.h> int f1(int arg1){ return arg1; } int f2(int arg2){ int temp=f1(arg2); return temp; } int f3(int arg){ f1(arg); f2(arg); return arg; } int f4(int arg){ f1(arg); f2(arg); f3(arg); return arg; } int main(void) { puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */ return EXIT_SUCCESS; } Rightmouse on f2 in editor, select "Open Call Hierarchy" No callers Select other icon in Remote Call Hierarchy view (instead of 2->1 selection the one next to it, 1->2) Still empty, no callers but this time, have error in remote server console ===================================================== [beth@localhost rdt-server]$ ./server.pl 4242 DStore Server Starting... Server Started Successfully 4242 Server running on: localhost.localdomain Extended schema from CDTMiner Indexing delta for scope d_remote1020 Index at location: /home/beth/rdt-server/d_remote1020.pdom StandaloneFastIndexerTask (0 sources, 0 headers) StandaloneFastIndexerTask Options: parseAllFiles=false,skipReferences=false, skipTypeReferences=false. StandaloneFastIndexerTask Timings: 1 total, 0 parser, 0 resolution, 0 index update. StandaloneFastIndexerTask Result: 0 declarations, 0 references, 0 errors, 0(0.00%) problems. StandaloneFastIndexerTask Cache: 0 hits, 0(0.00%) misses. Indexing complete. java.io.IOException: Bad file descriptor at java.io.FileInputStream.read(Native Method) at java.io.FilterInputStream.read(FilterInputStream.java:66) at org.eclipse.rse.internal.dstore.universal.miners.command.OutputHandler.readLines(OutputHandler.java:165) at org.eclipse.rse.internal.dstore.universal.miners.command.OutputHandler.handle(OutputHandler.java:88) at org.eclipse.dstore.core.model.Handler.finish(Handler.java:102) at org.eclipse.rse.internal.dstore.universal.miners.command.OutputHandler.handle(OutputHandler.java:106) at org.eclipse.dstore.core.model.Handler.run(Handler.java:135) Indexing delta for scope d_remote1020 changed a file: /home/beth/ews/remote1020/c_helloANSI.c Indexer: parsing /home/beth/ews/remote1020/c_helloANSI.c Working... Task: null SubTask: parsing c_helloANSI.c (/home/beth/ews/remote1020) Progress: 0 of 0 Parser Trace: Parse 1: 584ms - parse failure Parser Trace: Ambiguity resolution : 1ms Indexer: Unresolved inclusion: <stddef.h> in file: /usr/include/stdio.h:34 Indexer: Unresolved inclusion: <stdarg.h> in file: /usr/include/libio.h:53 Indexer: Syntax error in file: /usr/include/stdio.h:30 Indexer: Syntax error in file: /usr/include/stdlib.h:35 Indexer: adding file:/usr/include/bits/wordsize.h Indexer: adding file:/usr/include/sys/cdefs.h Indexer: adding file:/usr/include/gnu/stubs-32.h Indexer: adding file:/usr/include/gnu/stubs.h Indexer: adding file:/usr/include/features.h Indexer: adding file:/usr/include/bits/typesizes.h Indexer: adding file:/usr/include/bits/types.h Indexer: adding file:/usr/include/bits/wchar.h Indexer: adding file:/usr/include/wchar.h Indexer: adding file:/usr/include/gconv.h Indexer: adding file:/usr/include/_G_config.h Indexer: adding file:/usr/include/libio.h Indexer: adding file:/usr/include/bits/stdio_lim.h Indexer: adding file:/usr/include/bits/sys_errlist.h Indexer: adding file:/usr/include/stdio.h Indexer: adding file:/usr/include/time.h Indexer: adding file:/usr/include/bits/endian.h Indexer: adding file:/usr/include/endian.h Indexer: adding file:/usr/include/bits/select.h Indexer: adding file:/usr/include/bits/sigset.h Indexer: adding file:/usr/include/bits/time.h Indexer: adding file:/usr/include/sys/select.h Indexer: adding file:/usr/include/sys/sysmacros.h Indexer: adding file:/usr/include/bits/pthreadtypes.h Indexer: adding file:/usr/include/sys/types.h Indexer: adding file:/usr/include/alloca.h Indexer: adding file:/usr/include/stdlib.h Indexer: adding file:/home/beth/ews/remote1020/c_helloANSI.c StandaloneFastIndexerTask (1 sources, 27 headers) StandaloneFastIndexerTask Options: parseAllFiles=false,skipReferences=false, skipTypeReferences=false. StandaloneFastIndexerTask Timings: 1390 total, 831 parser, 5 resolution, 363 index update. StandaloneFastIndexerTask Result: 42 declarations, 819 references, 0 errors, 0(0.00%) problems. StandaloneFastIndexerTask Cache: 54887 hits, 0(0.00%) misses. Indexing complete. Indexing delta for scope d_remote1020 changed a file: /home/beth/ews/remote1020/c_helloANSI.c Indexer: parsing /home/beth/ews/remote1020/c_helloANSI.c Working... Task: null SubTask: parsing c_helloANSI.c (/home/beth/ews/remote1020) Progress: 0 of 0 Parser Trace: Parse 2: 43ms Parser Trace: Ambiguity resolution : 1ms Indexer: adding file:/home/beth/ews/remote1020/c_helloANSI.c StandaloneFastIndexerTask (1 sources, 0 headerslees for subject f4 scope: __WORKSPACE_RGetting definitions... Getting definitions for subject f2 scope: __WORKSPACE_ROOT_SCOPE__ path: rse://192.168.2.2/home/beth/ews/remote1020/d_remote.c Getting index Acquiring read lock Finished getting definitions. Getting definitions... Getting definitions for subject d_remote.c scope: __WORKSPACE_ROOT_SCOPE__ path: rse://192.168.2.2/home/beth/ews/remote1020/d_remote.c offset: 383 length: 0 Getting index Acquiring read lock Finished getting definitions. Getting callers... Getting callers for subject f2 scope: __WORKSPACE_ROOT_SCOPE__ path: null Getting index Acquiring read lock Finished getting callers. Getting callees... Getting callees for subject f2 scope: __WORKSPACE_ROOT_SCOPE__ path: null Getting index Acquiring read lock java.lang.NullPointerException at org.eclipse.ptp.internal.rdt.core.index.IndexQueries.convertRemoteURIToLocal(IndexQueries.java:229) at org.eclipse.ptp.internal.rdt.core.index.IndexQueries.remoteElementToName(IndexQueries.java:193) at org.eclipse.ptp.internal.rdt.core.miners.CDTMiner.handleGetCallees(CDTMiner.java:1023) at org.eclipse.ptp.internal.rdt.core.miners.CDTMiner.handleCommand(CDTMiner.java:302) at org.eclipse.dstore.core.miners.Miner.command(Miner.java:303) at org.eclipse.dstore.core.miners.Miner.handle(Miner.java:221) at org.eclipse.dstore.core.model.Handler.run(Handler.java:135) Finished getting callees. ======================================== Remote file info: [beth@localhost remote1020]$ pwd /home/beth/ews/remote1020 [beth@localhost remote1020]$ ls -la total 64 drwxrwxr-x 2 beth beth 4096 2008-10-20 16:58 . drwxrwxr-x 52 beth beth 4096 2008-10-20 16:24 .. -rw-rw-r-- 1 beth beth 12998 2008-10-20 16:32 .cproject -rw-rw-r-- 1 beth beth 646 2008-10-20 16:38 d_remote.c -rw-rw-r-- 1 beth beth 5555 2008-10-20 16:58 error.txt -rw-rw-r-- 1 beth beth 2619 2008-10-20 16:32 .project [beth@localhost remote1020]$ Screenshot attached. Will attach project properties next
Created attachment 115624 [details] screenshot of remote project properties
Created attachment 115625 [details] screenshot of workbench I thought this attachment was in original bug report but i don't see it
I can reproduce this on the RC2 build. Most of the exceptions you are seeing are harmless red herrings. The problem seems unique to the test program. If I rename the functions to foo1, foo2, etc., then everything works. Not sure yet what's going on here.
Ok the plot thickens... This works FINE in my workspace (built everything from source from HEAD). I have noticed other issues with the RC2 build... e.g. build error markers don't work right with remote builds (they show up, but clicking on them does nothing). I think there is something wrong with the build process itself, but I'm not sure what. I do see that all the remote jars are different sizes in the real build compared to what I have built myself. We haven't changed the JARs since the RC2 build, so as far as I know they should be identical, unless the build is stripping debug info (although in the case of cdtminer.jar, the JAR in the build is actually BIGGER than mine, so that doesn't follow, as stripping debug info should make it smaller). I have little insight into how the build process works, so I'm going to need some help from Greg and Vivian to figure this out.
Seems to work on the latest build... I200810220948
Created attachment 116078 [details] screenshot of call hierarchy w/o callers
This still fails for me on 10/23 build
This still fails for me on 10/26 build Tried on sample program: ============================== #include <stdio.h> #include <stdlib.h> int beth1(int a ){ return 0; } int beth2(int a){ beth1(a); return a; } int main(void) { puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */ beth1(2); return EXIT_SUCCESS; } ==================================
(In reply to comment #8) > This still fails for me on 10/26 build > Tried on sample program: Works for me... I'm doing Windows client to Mac backend.
Created attachment 116384 [details] screenshot of call hierarchy w/o callers - using montojo server
Sorry but... :-) I get the same response using your server, Chris. See attached screenshot eclipse.buildId=M20080911-1700 org.eclipse.cdt (5.0.2.200810240803) "Eclipse C/C++ Development Tools" org.eclipse.ptp.rdt.core (1.0.0.200810281902) "RDT Core" [Active] org.eclipse.ptp.rdt.doc.user (1.0.0) "RDT User Documentation Plug-in" [Resolved] org.eclipse.ptp.rdt.services (1.0.1.200810281902) "RDT Services Model Plug-in" [Active] org.eclipse.ptp.rdt.ui (1.0.0.200810281902) "RDT UI" [Active]
(In reply to comment #11) > Sorry but... :-) > I get the same response using your server, Chris. > See attached screenshot Maybe this is a Mac specific client issue then? Can you try on another client? Our new contractor starts today so I'm likely to be tied up a lot today. If I get time, I'll try to reproduce this on our Intel Mac blade.
I'm trying to reproduce this, but I can't even get a remote project set up. I'm using the 200810281902 build: 1. I create an RSE connection and connect to the server. This works and I can browse files. 2. Create a new C project 3. Uncheck "use default location", select RSE from combo, browse. 4. Select the above connection, browse for a directory and select it. 5. Manually add another directory to the end of the URI in the location field. 6. Select 'empty project' under 'remote makefile project'. 7. Click next and I get the 'select configurations' page. 8. Click next and I get the 'test page' and the next button is now greyed out. I don't get any wizard page to configure services.
(In reply to comment #13) > I'm trying to reproduce this, but I can't even get a remote project set up. I'm > using the 200810281902 build: > > 1. I create an RSE connection and connect to the server. This works and I can > browse files. > 2. Create a new C project > 3. Uncheck "use default location", select RSE from combo, browse. > 4. Select the above connection, browse for a directory and select it. > 5. Manually add another directory to the end of the URI in the location field. > 6. Select 'empty project' under 'remote makefile project'. > 7. Click next and I get the 'select configurations' page. > 8. Click next and I get the 'test page' and the next button is now greyed out. > > I don't get any wizard page to configure services. > I have that problem before too but it goes away when I uninstall the CDT testing feature. Can you please give that a try?
Works for me from Mac to Linux with the latest RC4 build candiate and latest CDT 5.0.2 build (I200810240803). At this point I pretty much have to conclude that it's either user error or something particular to your machine that you are going to have to debug.
(In reply to comment #14) > (In reply to comment #13) > > I'm trying to reproduce this, but I can't even get a remote project set up. > I'm > > using the 200810281902 build: > > > > 1. I create an RSE connection and connect to the server. This works and I can > > browse files. > > 2. Create a new C project > > 3. Uncheck "use default location", select RSE from combo, browse. > > 4. Select the above connection, browse for a directory and select it. > > 5. Manually add another directory to the end of the URI in the location field. > > 6. Select 'empty project' under 'remote makefile project'. > > 7. Click next and I get the 'select configurations' page. > > 8. Click next and I get the 'test page' and the next button is now greyed out. > > > > I don't get any wizard page to configure services. > > > > I have that problem before too but it goes away when I uninstall the CDT testing > feature. Can you please give that a try? Opening a separate bug on this.
(In reply to comment #15) > Works for me from Mac to Linux with the latest RC4 build candiate and latest CDT > 5.0.2 build (I200810240803). > > At this point I pretty much have to conclude that it's either user error or > something particular to your machine that you are going to have to debug. Ok, I've finally got this set up. Mac client to Mac backend. CDT I200810240803 build and PTP I200810281902 build. I'm seeing the same as Beth, and same NPE from the server. Something flashes by very quickly in the call hierarchy view, but then all I see is the function name.
(In reply to comment #17) > Ok, I've finally got this set up. Mac client to Mac backend. CDT I200810240803 > build and PTP I200810281902 build. I'm seeing the same as Beth, and same NPE > from the server. Something flashes by very quickly in the call hierarchy view, > but then all I see is the function name. So what is different about your macs compared to my mac? I think if we want to get anywhere with this we would need some time to debug on one of your machines.
Moving this to Future.
I just had this happen to me on existing projects with the RC4 build. As soon as I rebuilt the index though, it worked correctly. Can you try rebuilding the index?
i just tried it with RC4 build. Did not change backend server, It's from 10/26. I tried remote call hierarchy, same result, no children. I rebuilt the index. Same behavior. F1 has two callers and it has no children in the remote call hierarchy view. That was from the editor. From the outline view, i get a popup error Internal error occurred during: "Child Node Computation: Interestingly, on the (Linux Fedora) server, the path is no longer null It says path: rse://LINUX10/home/beth/ews/remote1103/test.c which is correct Client side console reports: CDT version: 5.0.2.200810310802 !ENTRY org.eclipse.core.jobs 4 2 2008-11-03 15:06:47.942 !MESSAGE An internal error occurred during: "Child Node Computation". !STACK 0 java.lang.ClassCastException: org.eclipse.ptp.internal.rdt.core.model.WorkingCopy at org.eclipse.ptp.internal.rdt.core.model.ModelAdapter.adaptElement(ModelAdapter.java:145) at org.eclipse.ptp.internal.rdt.core.model.ModelAdapter.adaptAncestors(ModelAdapter.java:182) at org.eclipse.ptp.internal.rdt.core.model.ModelAdapter.adaptElement(ModelAdapter.java:60) at org.eclipse.ptp.internal.rdt.core.callhierarchy.RemoteCallHierarchyService.findCalledBy(RemoteCallHierarchyService.java:44) at org.eclipse.ptp.internal.rdt.ui.callhierarchy.CHContentProvider.asyncronouslyComputeReferencedBy(CHContentProvider.java:163) at org.eclipse.ptp.internal.rdt.ui.callhierarchy.CHContentProvider.asyncronouslyComputeChildren(CHContentProvider.java:113) at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider.runJob(AsyncTreeContentProvider.java:223) at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider.access$0(AsyncTreeContentProvider.java:218) at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider$1.run(AsyncTreeContentProvider.java:63) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) !ENTRY org.eclipse.core.jobs 4 2 2008-11-03 15:06:47.944 !MESSAGE An internal error occurred during: "Child Node Computation". !STACK 0 java.lang.ClassCastException: org.eclipse.ptp.internal.rdt.core.model.WorkingCopy at org.eclipse.ptp.internal.rdt.core.model.ModelAdapter.adaptElement(ModelAdapter.java:145) at org.eclipse.ptp.internal.rdt.core.model.ModelAdapter.adaptAncestors(ModelAdapter.java:182) at org.eclipse.ptp.internal.rdt.core.model.ModelAdapter.adaptElement(ModelAdapter.java:60) at org.eclipse.ptp.internal.rdt.core.callhierarchy.RemoteCallHierarchyService.findCalledBy(RemoteCallHierarchyService.java:44) at org.eclipse.ptp.internal.rdt.ui.callhierarchy.CHContentProvider.asyncronouslyComputeReferencedBy(CHContentProvider.java:163) at org.eclipse.ptp.internal.rdt.ui.callhierarchy.CHContentProvider.asyncronouslyComputeChildren(CHContentProvider.java:113) at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider.runJob(AsyncTreeContentProvider.java:223) at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider.access$0(AsyncTreeContentProvider.java:218) at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider$1.run(AsyncTreeContentProvider.java:63) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) !ENTRY org.eclipse.core.jobs 4 2 2008-11-03 15:06:47.949 !MESSAGE An internal error occurred during: "Child Node Computation". !STACK 0 java.lang.ClassCastException: org.eclipse.ptp.internal.rdt.core.model.WorkingCopy at org.eclipse.ptp.internal.rdt.core.model.ModelAdapter.adaptElement(ModelAdapter.java:145) at org.eclipse.ptp.internal.rdt.core.model.ModelAdapter.adaptAncestors(ModelAdapter.java:182) at org.eclipse.ptp.internal.rdt.core.model.ModelAdapter.adaptElement(ModelAdapter.java:60) at org.eclipse.ptp.internal.rdt.core.callhierarchy.RemoteCallHierarchyService.findCalledBy(RemoteCallHierarchyService.java:44) at org.eclipse.ptp.internal.rdt.ui.callhierarchy.CHContentProvider.asyncronouslyComputeReferencedBy(CHContentProvider.java:163) at org.eclipse.ptp.internal.rdt.ui.callhierarchy.CHContentProvider.asyncronouslyComputeChildren(CHContentProvider.java:113) at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider.runJob(AsyncTreeContentProvider.java:223) at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider.access$0(AsyncTreeContentProvider.java:218) at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider$1.run(AsyncTreeContentProvider.java:63) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) /Applications/ecl/ptp21_nov1/eclipse$
Tried rebuilding the index (right click on project, Index > Rebuild), but it doesn't seem to make any difference for me. Seeing same error as Beth from outline view.
Server side reports: [beth@localhost rdt-server]$ ls -la total 2948 drwxrwxr-x 2 beth beth 4096 2008-10-28 15:09 . drwx------ 45 beth beth 4096 2008-10-28 15:08 .. -rw-rw-r-- 1 beth beth 0 2008-10-28 15:09 a_remote.pdom -rw-r--r-- 1 beth beth 1729 2008-06-20 21:37 auth.pl -rw-r--r-- 1 beth beth 25 2008-06-20 21:37 build.dat -rw-r--r-- 1 beth beth 172110 2008-10-26 19:16 cdtminer.jar -rw-r--r-- 1 beth beth 127935 2008-10-26 19:16 cdtmodel.jar -rw-r--r-- 1 beth beth 1779714 2008-10-26 19:16 cdtparser.jar -rw-r--r-- 1 beth beth 183661 2008-06-20 21:37 clientserver.jar -rw-rw-r-- 1 beth beth 0 2008-10-28 15:09 c_remote.pdom -rw-r--r-- 1 beth beth 1838 2008-06-20 21:37 daemon.pl -rw-r--r-- 1 beth beth 175882 2008-06-20 21:37 dstore_core.jar -rw-r--r-- 1 beth beth 10692 2008-06-20 21:37 dstore_extra_server.jar -rw-r--r-- 1 beth beth 125767 2008-06-20 21:37 dstore_miners.jar -rw-r--r-- 1 beth beth 12506 2008-06-20 21:37 epl-v10.html -rw-r--r-- 1 beth beth 286 2008-10-26 19:16 minerFile.dat -rw-r--r-- 1 beth beth 6506 2008-06-20 21:37 notice.html -rw-r--r-- 1 beth beth 44111 2008-10-26 19:16 org.eclipse.core.filesystem_1.2.0.v20080604-1400.jar -rw-r--r-- 1 beth beth 69019 2008-10-26 19:16 org.eclipse.core.runtime_3.4.0.v20080512.jar -rw-r--r-- 1 beth beth 94649 2008-10-26 19:16 org.eclipse.equinox.common_3.4.0.v20080421-2006.jar -rw-r--r-- 1 beth beth 14327 2008-06-20 21:37 patterns.dat -rw-r--r-- 1 beth beth 863 2008-06-20 21:37 rsecomm.properties -rwxr-xr-x 1 beth beth 1882 2008-10-26 19:16 server.pl -rw-r--r-- 1 beth beth 1607 2008-06-20 21:37 ssl.properties -rw-r--r-- 1 beth beth 2642 2008-10-26 19:16 stubs.jar [beth@localhost rdt-server]$ ./server.pl 4242 DStore Server Starting... Server Started Successfully 4242 Server running on: localhost.localdomain Extended schema from CDTMiner Indexing delta for scope test1103 Index at location: /home/beth/rdt-server/test1103.pdom StandaloneFastIndexerTask (0 sources, 0 headers) StandaloneFastIndexerTask Options: parseAllFiles=false,skipReferences=false, skipTypeReferences=false. StandaloneFastIndexerTask Timings: 2 total, 0 parser, 0 resolution, 0 index update. StandaloneFastIndexerTask Result: 0 declarations, 0 references, 0 errors, 0(0.00%) problems. StandaloneFastIndexerTask Cache: 0 hits, 0(0.00%) misses. Indexing complete. java.io.IOException: Bad file descriptor at java.io.FileInputStream.read(Native Method) at java.io.FilterInputStream.read(FilterInputStream.java:66) at org.eclipse.rse.internal.dstore.universal.miners.command.OutputHandler.readLines(OutputHandler.java:165) at org.eclipse.rse.internal.dstore.universal.miners.command.OutputHandler.handle(OutputHandler.java:88) at org.eclipse.dstore.core.model.Handler.finish(Handler.java:102) at org.eclipse.rse.internal.dstore.universal.miners.command.OutputHandler.handle(OutputHandler.java:106) at org.eclipse.dstore.core.model.Handler.run(Handler.java:135) Indexing delta for scope test1103 changed a file: /home/beth/ews/remote1103/test.c Indexer: parsing /home/beth/ews/remote1103/test.c Parser Trace: Parse 1: 33ms Parser Trace: Ambiguity resolution : 0ms Indexer: adding file:/home/beth/ews/remote1103/test.c StandaloneFastIndexerTask (1 sources, 0 headers) StandaloneFastIndexerTask Options: parseAllFiles=false,skipReferences=false, skipTypeReferences=false. StandaloneFastIndexerTask Timings: 561 total, 385 parser, 0 resolution, 49 index update. StandaloneFastIndexerTask Result: 0 declarations, 0 references, 0 errors, 0(0.00%) problems. StandaloneFastIndexerTask Cache: 25 hits, 0(0.00%) misses. Indexing complete. Indexing delta for scope test1103 changed a file: /home/beth/ews/remote1103/test.c Indexer: parsing /home/beth/ews/remote1103/test.c Parser Trace: Parse 2: 112ms Parser Trace: Ambiguity resolution : 1ms Indexer: adding file:/home/beth/ews/remote1103/test.c StandaloneFastIndexerTask (1 sources, 0 headers) StandaloneFastIndexerTask Options: parseAllFiles=false,skipReferences=false, skipTypeReferences=false. StandaloneFastIndexerTask Timings: 170 total, 118 parser, 8 resolution, 36 index update. StandaloneFastIndexerTask Result: 5 declarations, 3 references, 0 errors, 0(0.00%) problems. StandaloneFastIndexerTask Cache: 264 hits, 0(0.00%) misses. Indexing complete. Indexing delta for scope test1103 added a file: /home/beth/ews/remote1103/test.c Indexer: parsing /home/beth/ews/remote1103/test.c Parser Trace: Parse 3: 11ms Parser Trace: Ambiguity resolution : 0ms Indexer: adding file:/home/beth/ews/remote1103/test.c StandaloneFastIndexerTask (1 sources, 0 headers) StandaloneFastIndexerTask Options: parseAllFiles=false,skipReferences=false, skipTypeReferences=false. StandaloneFastIndexerTask Timings: 19 total, 14 parser, 0 resolution, 2 index update. StandaloneFastIndexerTask Result: 5 declarations, 3 references, 0 errors, 0(0.00%) problems. StandaloneFastIndexerTask Cache: 470 hits, 0(0.00%) misses. Indexing complete. found a file about to register scope Added scope test1103Files: /home/beth/ews/remote1103/test.c Getting definitions... Getting definitions for subject test.c scope: __WORKSPACE_ROOT_SCOPE__ path: rse://LINUX10/home/beth/ews/remote1103/test.c offset: 75 length: 0 Getting index Acquiring read lock Finished getting definitions. Getting callers... Getting callers for subject f1 scope: __WORKSPACE_ROOT_SCOPE__ path: null Getting index Acquiring read lock Finished getting callers. Indexing delta for scope test1103 added a file: /home/beth/ews/remote1103/test.c Indexer: parsing /home/beth/ews/remote1103/test.c Parser Trace: Parse 5: 1ms Parser Trace: Ambiguity resolution : 1ms Indexer: adding file:/home/beth/ews/remote1103/test.c StandaloneFastIndexerTask (1 sources, 0 headers) StandaloneFastIndexerTask Options: parseAllFiles=false,skipReferences=false, skipTypeReferences=false. StandaloneFastIndexerTask Timings: 7 total, 4 parser, 0 resolution, 2 index update. StandaloneFastIndexerTask Result: 5 declarations, 3 references, 0 errors, 0(0.00%) problems. StandaloneFastIndexerTask Cache: 478 hits, 0(0.00%) misses. Indexing complete. Getting definitions... Getting definitions for subject f1 scope: __WORKSPACE_ROOT_SCOPE__ path: rse://LINUX10/home/beth/ews/remote1103/test.c Getting index Acquiring read lock Finished getting definitions.
Not sure if this matters but ... I closed Eclipse, and reopened it. restarted remote rdt-server. I opened the project. I see src file in Project Explorer. But when I try to open it, it says resource does not exist. I can see it on the remote server too. rdt-server looks like it found it. I rebuilt index. Backend seems happy. Editor attempt still says resource not found.
(In reply to comment #21) This stack trace shows that the ModelAdapter is trying to cast a WorkingCopy to an IWorkingCopy, unfortunately that doesn't actually work because RDT's version of WorkingCopy does not implement IWorkingCopy surprisingly enough. Its an easy fix, the cast isn't actually needed at all (because getContents() is part of the ITranslationUnit interface).
Created attachment 116862 [details] patch for casting bug Haven't actually tested this, but it seems like a simple enough fix.
(In reply to comment #24) > I closed Eclipse, and reopened it. restarted remote rdt-server. > I opened the project. I see src file in Project Explorer. > But when I try to open it, it says resource does not exist. I can see it on > the remote server too. My bad. Forgot to close editor before closing eclipse. But when I do this correctly, reopen the project, edit the file, rebuild the index, then do call hierarchy, I still get no children (callers) of f1.
I've applied Mike's patch. Please verify.
I retried this on last night's build, alas with same results. I did rebuild the index too. Here are remote server console messages: [beth@localhost ~]$ cd rdt-server [beth@localhost rdt-server]$ ls -la * -rw-r--r-- 1 beth beth 1729 2008-06-20 21:37 auth.pl -rw-r--r-- 1 beth beth 25 2008-06-20 21:37 build.dat -rw-r--r-- 1 beth beth 172207 2008-11-03 17:41 cdtminer.jar -rw-r--r-- 1 beth beth 127935 2008-11-03 17:41 cdtmodel.jar -rw-r--r-- 1 beth beth 1781030 2008-11-03 17:41 cdtparser.jar -rw-r--r-- 1 beth beth 183661 2008-06-20 21:37 clientserver.jar -rw-r--r-- 1 beth beth 1838 2008-06-20 21:37 daemon.pl -rw-r--r-- 1 beth beth 175882 2008-06-20 21:37 dstore_core.jar -rw-r--r-- 1 beth beth 10692 2008-06-20 21:37 dstore_extra_server.jar -rw-r--r-- 1 beth beth 125767 2008-06-20 21:37 dstore_miners.jar -rw-r--r-- 1 beth beth 12506 2008-06-20 21:37 epl-v10.html -rw-r--r-- 1 beth beth 286 2008-11-03 17:41 minerFile.dat -rw-r--r-- 1 beth beth 6506 2008-06-20 21:37 notice.html -rw-r--r-- 1 beth beth 44111 2008-11-03 17:41 org.eclipse.core.filesystem_1.2.0.v20080604-1400.jar -rw-r--r-- 1 beth beth 69019 2008-11-03 17:41 org.eclipse.core.runtime_3.4.0.v20080512.jar -rw-r--r-- 1 beth beth 94649 2008-11-03 17:41 org.eclipse.equinox.common_3.4.0.v20080421-2006.jar -rw-r--r-- 1 beth beth 14327 2008-06-20 21:37 patterns.dat -rw-r--r-- 1 beth beth 863 2008-06-20 21:37 rsecomm.properties -rw-r--r-- 1 beth beth 1882 2008-11-03 17:41 server.pl -rw-r--r-- 1 beth beth 1607 2008-06-20 21:37 ssl.properties -rw-r--r-- 1 beth beth 2642 2008-11-03 17:41 stubs.jar [beth@localhost rdt-server]$ chmod +x server.pl [beth@localhost rdt-server]$ chmod +x daemon.pl [beth@localhost rdt-server]$ ./server.pl 4242 DStore Server Starting... Server Started Successfully 4242 Server running on: localhost.localdomain Extended schema from CDTMiner Indexing delta for scope zRemote Index at location: /home/beth/rdt-server/zRemote.pdom StandaloneFastIndexerTask (0 sources, 0 headers) StandaloneFastIndexerTask Options: parseAllFiles=false,skipReferences=false, skipTypeReferences=false. StandaloneFastIndexerTask Timings: 2 total, 0 parser, 0 resolution, 0 index update. StandaloneFastIndexerTask Result: 0 declarations, 0 references, 0 errors, 0(0.00%) problems. StandaloneFastIndexerTask Cache: 0 hits, 0(0.00%) misses. Indexing complete. java.io.IOException: Bad file descriptor at java.io.FileInputStream.read(Native Method) at java.io.FilterInputStream.read(FilterInputStream.java:66) at org.eclipse.rse.internal.dstore.universal.miners.command.OutputHandler.readLines(OutputHandler.java:165) at org.eclipse.rse.internal.dstore.universal.miners.command.OutputHandler.handle(OutputHandler.java:88) at org.eclipse.dstore.core.model.Handler.finish(Handler.java:102) at org.eclipse.rse.internal.dstore.universal.miners.command.OutputHandler.handle(OutputHandler.java:106) at org.eclipse.dstore.core.model.Handler.run(Handler.java:135) Indexing delta for scope zRemote changed a file: /home/beth/ews/remote1103/test.c Indexer: parsing /home/beth/ews/remote1103/test.c Parser Trace: Parse 1: 18ms Parser Trace: Ambiguity resolution : 0ms Indexer: adding file:/home/beth/ews/remote1103/test.c StandaloneFastIndexerTask (1 sources, 0 headers) StandaloneFastIndexerTask Options: parseAllFiles=false,skipReferences=false, skipTypeReferences=false. StandaloneFastIndexerTask Timings: 666 total, 494 parser, 0 resolution, 34 index update. StandaloneFastIndexerTask Result: 0 declarations, 0 references, 0 errors, 0(0.00%) problems. StandaloneFastIndexerTask Cache: 25 hits, 0(0.00%) misses. Indexing complete. Indexing delta for scope zRemote changed a file: /home/beth/ews/remote1103/test.c Indexer: parsing /home/beth/ews/remote1103/test.c Parser Trace: Parse 2: 36ms Parser Trace: Ambiguity resolution : 1ms Indexer: adding file:/home/beth/ews/remote1103/test.c StandaloneFastIndexerTask (1 sources, 0 headers) StandaloneFastIndexerTask Options: parseAllFiles=false,skipReferences=false, skipTypeReferences=false. StandaloneFastIndexerTask Timings: 133 total, 40 parser, 34 resolution, 12 index update. StandaloneFastIndexerTask Result: 5 declarations, 4 references, 0 errors, 0(0.00%) problems. StandaloneFastIndexerTask Cache: 264 hits, 0(0.00%) misses. Indexing complete. found a file about to register scope Added scope zRemoteFiles: /home/beth/ews/remote1103/test.c Getting definitions... Getting definitions for subject test.c scope: __WORKSPACE_ROOT_SCOPE__ path: rse://LINUX10/home/beth/ews/remote1103/test.c offset: 74 length: 0 Getting index Acquiring read lock Finished getting definitions. Getting callers... Getting callers for subject f1 scope: __WORKSPACE_ROOT_SCOPE__ path: rse://LINUX10/home/beth/ews/remote1103/test.c Getting index Acquiring read lock Finished getting callers. Indexing delta for scope zRemote added a file: /home/beth/ews/remote1103/test.c Indexer: parsing /home/beth/ews/remote1103/test.c Parser Trace: Parse 4: 2ms Parser Trace: Ambiguity resolution : 0ms Indexer: adding file:/home/beth/ews/remote1103/test.c StandaloneFastIndexerTask (1 sources, 0 headers) StandaloneFastIndexerTask Options: parseAllFiles=false,skipReferences=false, skipTypeReferences=false. StandaloneFastIndexerTask Timings: 12 total, 6 parser, 0 resolution, 5 index update. StandaloneFastIndexerTask Result: 5 declarations, 4 references, 0 errors, 0(0.00%) problems. StandaloneFastIndexerTask Cache: 470 hits, 0(0.00%) misses. Indexing complete. Finding type hierarchy input from text selection... File: rse://LINUX10/home/beth/ews/remote1103/test.c Element: test.c Acquiring read lock Getting definitions... Getting definitions for subject test.c scope: __WORKSPACE_ROOT_SCOPE__ path: rse://LINUX10/home/beth/ews/remote1103/test.c offset: 74 length: 0 Getting index Acquiring read lock Finished getting definitions. Getting callers... Getting callers for subject f1 scope: __WORKSPACE_ROOT_SCOPE__ path: rse://LINUX10/home/beth/ews/remote1103/test.c Getting index Acquiring read lock Finished getting callers.