# RFC: Removing the integrated REPL

**URL:** <https://forums.swift.org/t/rfc-removing-the-integrated-repl/35441>\
**Category:** Compiler\
**Created:** [April 17, 2020, 1:56am UTC](https://forums.swift.org/t/rfc-removing-the-integrated-repl/35441 "2020-04-17T01:56:20Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![dan-zheng](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/dan-zheng/32/2534_2.png) [@dan-zheng](https://forums.swift.org/u/dan-zheng)\
**Post date:** [July 9, 2020, 7:09pm UTC](https://forums.swift.org/t/rfc-removing-the-integrated-repl/35441/21 "2020-07-09T19:09:23Z")

</div>

After the integrated REPL was removed, directly invoking `swift` (when LLDB is not built) produces a crash:

```swift
$ swift
Assertion failed: (!Files.empty() || failedToLoad()), function getFiles, file swift-dev/swift/include/swift/AST/Module.h, line 363.
...
Stack dump:
0.	Program arguments: swift-dev/build/Ninja-ReleaseAssert/swift-macosx-x86_64/bin/swift-frontend -frontend -repl -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -color-diagnostics -target-sdk-version 10.16 -module-name REPL
1.	Swift version 5.3-dev (LLVM 609d16e6ecd05b0, Swift ed0e6288d1c5b8a)
...

```

It would be less confusing if this instead produced a diagnostic, like `swiftc` when invoked with no files:

```swift
$ swiftc
<unknown>:0: error: no input files

```

I filed an issue: [[SR-13186] `swift` invocation crashes after integrated REPL was removed · Issue #55626 · apple/swift · GitHub](https://bugs.swift.org/browse/SR-13186).

---

_[View the full topic](https://forums.swift.org/t/rfc-removing-the-integrated-repl/35441)._
