PDA

View Full Version : xcode


macnib
2008.07.29, 07:53 PM
Updated to Xcode 3.1 a couple weeks ago. Yet, I've got a ridiculous Xcode 3.1 question.

Every time I access the help documentation menu, I get :

Internal Error

Uncaught Exception:
error during SQL execution : The database operation timed out after 30.00 seconds.

I uninstalled Xcode with:

sudo /Developer/Library/uninstall-devtools --mode=all

I went through and cleaned up preference turds the uninstaller did not clean up. I reinstalled 3.1 again. Yet, I get the same problem. Also, immediately after the install I did a reboot. But the problem persists. Seems this little data base is weaved into the program in many places. I just don't like to wait for the hang. When I quit the program it hangs too.

Anyone know where this little database lives? Maybe there is a permission error or something. My firewall is set to allow only essential services. But I figure its running on the same machine and that should not be a problem.

Having MySQL installed too will not conflict?

kodex
2008.07.29, 08:20 PM
Remove the docSet.dsidx-journal file found within Resources folder of the docset. That should resolve the issue.

macnib
2008.07.29, 09:34 PM
That appears to resolve the issue. It asked me to subscribe again and download.

Thanks again!

I removed these files:

devmacx86:/ jostrom$ sudo find / -name docSet.dsidx
Password:
/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docs et/Contents/Resources/docSet.dsidx
/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.doc set/Contents/Resources/docSet.dsidx
/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.J2SE50APIReference .docset/Contents/Resources/docSet.dsidx
/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.Java14APIReference .docset/Contents/Resources/docSet.dsidx
/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.WebObjectsReferenc e.docset/Contents/Resources/docSet.dsidx

FreakSoftware
2008.07.29, 11:05 PM
Remove the docSet.dsidx-journal file found within Resources folder of the docset. That should resolve the issue.

How on earth did you know to do this?

kodex
2008.07.29, 11:38 PM
How on earth did you know to do this?

I could tell you but it would violate the NDA then I would have to kill you. :D

Hairball183
2008.07.29, 11:42 PM
I could tell you but it would violate the NDA then I would have to kill you. :D

Come on, Seth. He's kodex. Don't tell me you expect him to know less than everything.

(Yikes. What's wrong with this guy?) :p

macnib
2008.07.30, 12:56 AM
Hmm, looks like the uninstall-devtools script just uninstalls the tools as advertised. Yet, it leaves all the documentation. So, uninstalling was not really solving the problem.

This time, I'll run the uninstall-devtools script then delete the Developer folder. Afterwards, reinstall again. Reboot -- there is a comment in the script output that says to reboot.

Still, seems like there is something in there that causes the documentation to get corrupted creating a permanent hang. Wonder if I quit Xcode in the middle of all the downloading that might cause a problem?

Fortunately, AT&T recently installed fiber in my neighborhood. Downloading the documentation is really fast now over dsl.

AnotherJake
2008.07.30, 02:46 AM
Fortunately, AT&T recently installed fiber in my neighborhood. Downloading the documentation is really fast now over dsl.

This is waaaay OT, but I happened to be living there in Austin back when Al Gore was the new VP and pushing the "Information Super-Highway". I *specifically* remember one afternoon watching local news there, where they were going off about how Austin was one of the first cities (if not THE first) in the US benefiting from the initiative and getting fiber installed. They showed video clips of the linemen installing it too. That was 1994.

macnib
2008.07.30, 11:33 AM
I live on the edge of town 10 miles out. Nothing but ranches, goats and Willie Nelson forever to the west. :)

DSL has always been fast downtown from what I hear. Though, once you get out of town your only choice becomes Time Warner Cable -- its just a pain to upload stuff. 100 meg upload was taking me about a hour. Downstream was fast on the cable modem, though. Good enough for most people.

Well, you can get DSL but it bursts a little first then goes to about 36 kbps without the fiber down stream. Even without the fiber it was a slightly faster upstream than Time Warner. Now that they got the fiber in uploading is better, downloading is acceptable again and I'm glad I switched.

AnotherJake
2008.07.30, 03:30 PM
Yeah, I'm stuck with Time Warner myself. I can't even get DSL because the phone company won't fix our phonelines in the neighborhood, even though it's right across the street from new fiber. :rolleyes:

... rotten monopolies. :mad:

macnib
2008.08.22, 10:55 PM
This documentation lock up issue is happening again. Huff. Lockup on xcode quit. :mad:

It gets screwed up somehow. Maybe during debugging or something.

If I goto xcode prefs -> docuemntation, I get a list of paths. I just unchecked all then one by one check them back hitting the apply button. At some point it locks up again on the apply.

If I just uncheck it all, then the next time I restart they are checked! And I lock up again.

If I delete docSet.dsidx, then I've got to download the documents again. But it solves the lock up.

<rant start> Huff, these little database files can be dangerous. I remember way back when, the company I worked for used berkeley db. We got these lock issues. They nearly fired the entire department. :) There is always some kind of lock mechanism that gets out of state or cr*p like that. <rant end>