# \[GSoC-19\] IndexStoreDB Error

**URL:** <https://forums.swift.org/t/gsoc-19-indexstoredb-error/21419>\
**Category:** SourceKit-LSP\
**Tags:** gsoc-2019\
**Created:** [March 9, 2019, 5:26pm UTC](https://forums.swift.org/t/gsoc-19-indexstoredb-error/21419 "2019-03-09T17:26:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharaththegeek](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sharaththegeek/32/5944_2.png) [@sharaththegeek](https://forums.swift.org/u/sharaththegeek)\
**Post date:** [March 9, 2019, 5:26pm UTC](https://forums.swift.org/t/gsoc-19-indexstoredb-error/21419/1 "2019-03-09T17:26:26Z")

</div>

I am Sharath, student from India, interested in working on Code Formatting Functionality for SourceKit-LSP for GSoC-19.  
I built SourceKit-LSP on my Mac and got it running.  
I opened a random Swift project on VSCode and was able to see definitions, so it's working.  
However, when I check the Output Console, it says the following:

failed to open IndexStoreDB: indexstoredb\_index\_create error: index store path does not exist: /Users/sharathsriram/Documents/Development/TestRepo/Money/.build/x86\_64-apple-macosx/debug/index/store

Is there anything I did wrong during the setup ?

---

<div class="post-metadata">

**Author:** ![krzyzanowskim](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/krzyzanowskim/32/1282_2.png) [@krzyzanowskim](https://forums.swift.org/u/krzyzanowskim)\
**Post date:** [March 9, 2019, 6:35pm UTC](https://forums.swift.org/t/gsoc-19-indexstoredb-error/21419/2 "2019-03-09T18:35:26Z")

</div>

You need to 'swift build' the project in order to build the index that can be later used by the sourcekit-lsp server. Did you build the project?

---

<div class="post-metadata">

**Author:** ![sharaththegeek](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sharaththegeek/32/5944_2.png) [@sharaththegeek](https://forums.swift.org/u/sharaththegeek)\
**Post date:** [March 9, 2019, 6:43pm UTC](https://forums.swift.org/t/gsoc-19-indexstoredb-error/21419/3 "2019-03-09T18:43:55Z")

</div>

Yes, I ran “swift build” on the project folder before opening.

---

<div class="post-metadata">

**Author:** ![pymit](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/pymit/32/6479_2.png) [@pymit](https://forums.swift.org/u/pymit)\
**Post date:** [March 9, 2019, 7:31pm UTC](https://forums.swift.org/t/gsoc-19-indexstoredb-error/21419/4 "2019-03-09T19:31:28Z")

</div>

I'm also trying to build swift on my mac, but I'm getting problem . I also raised an issue but got no response, It will be great help if you help.

> [@Problem in building swift for tensorflow](https://forums.swift.org/t/problem-in-building-swift-for-tensorflow/21416):
>
> I have cloned the swift for tensorflow branch , [GitHub - apple/swift: The Swift Programming Language](https://github.com/apple/swift.git) -b tensorflow while executing below command ./swift/utils/update-checkout --clone --scheme tensorflow I'm getting this error Traceback (most recent call last): File "./swift/utils/update-checkout", line 5, in &lt;module&gt; import update\_checkout File "/Users/amit/Desktop/swift-source/swift/utils/update\_checkout/\_\_init\_\_.py", line 2, in &lt;module&gt; from update\_checkout import main I…

---

<div class="post-metadata">

**Author:** ![blangmuir](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/blangmuir/32/277_2.png) [@blangmuir](https://forums.swift.org/u/blangmuir)\
**Post date:** [March 11, 2019, 8:22pm UTC](https://forums.swift.org/t/gsoc-19-indexstoredb-error/21419/5 "2019-03-11T20:22:54Z")

</div>

What toolchain did you build sourcekit-lsp with? The -index-store-path option was only enabled automatically by swiftpm in the last few months, so it might not be enabled in your toolchain. If that's the case, you may be able to workaround by adding

```swift
-Xswiftc -index-store-path -Xswiftc .build/x86_64-apple-macosx/debug/index/store

```
