swift-emacs / swift-mode

Emacs support for Apple's Swift programming language.
GNU General Public License v3.0
363 stars 47 forks source link

comint-continue-subjob: Buffer *Swift REPL [xcrun swift]* has no process #183

Closed iT-Boyer closed 1 year ago

iT-Boyer commented 1 year ago

comint-continue-subjob: Buffer Swift REPL [xcrun swift] has no process

For example

  1. new file test.swift
    print("hello world")
  2. run send to buffer REPL
  3. log in *Swift REPL [xcrun swift]* buffer
    
    Welcome to Swift!

Subcommands:

swift build Build Swift packages swift package Create and work on packages swift run Run a program from a package swift test Run package tests swift repl Experiment with Swift code interactively

Use swift --help for descriptions of available options and flags.

Use swift help <subcommand> for more information about a subcommand.

Process xcrun swift finished



$ swift --version
swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)
Target: arm64-apple-macosx13.0
taku0 commented 1 year ago

Does this branch work? https://github.com/swift-emacs/swift-mode/tree/swift-repl-5.7 If it works, I will merge it to the master.

iT-Boyer commented 1 year ago

on Mac ,it's OK When it's set to swift repl

(setq swift-mode:repl-executable "swift repl")