Visual Studio CMake - rsync: connection unexpectedly closed
Visual Studio로 CMake를 이용한 Linux 프로그램을 개발할 때,
Visual Studio 2019 - CMake를 이용한 리눅스 빌드 환경 설정
; https://www.sysnet.pe.kr/2/0/11825
어느 순간부터는 CMakeList.txt의 변경에 대해 동기화(C++ IntelliSense information will refresh after gathering information from CMake.)가 실패하면서 로그 창에는 일부 파일 복사에 대해 rsync의 "Permission denied" 에러가 나옵니다. 지난번 경험으로,
Visual Studio - Could not start the 'rsync' command on the remote host, please install it using your system package manager.
; https://www.sysnet.pe.kr/2/0/11827
이번엔 rsync가 2개 떠 있길래 pskill을 두 번 했는데요.
$pskill rsync
$pskill rsync
도리어 이번에는 "connection unexpectedly closed" 오류가 발생하면서 문제 해결이 안 됩니다.
1> Copying files to the remote machine.
1> Starting copying files to remote machine.
1> [rsync] rsync -t --delete --delete-excluded -v -r --exclude=.vs --exclude=.git --exclude=x64 --exclude=Debug "/E/git_clone/clr-samples/ProfilingAPI/ReJITEnterLeaveHooks/" rsync://kevin@localhost:58975/temp
1> [rsync] rsync: connection unexpectedly closed (0 bytes received so far) [sender]
1> [rsync] rsync error: error in rsync protocol data stream (code 12) at /C/Users/t-elmor/rsync-3.0.8-1-msys-1.0.17-src.tar/rsync-3.0.8-1-msys-1.0.17-src/rsync-3.0.8/io.c(601) [sender=3.0.8]
1> Error while copying. Please see https://aka.ms/AA23jat for troubleshooting.
혹시나 저처럼 이런 경우를 겪으신다면, 그냥 빠르게 리눅스를 재부팅하시면 됩니다. (다음에 다시 이런 현상이 발생하면 또 다른 시도를 해봐야겠습니다. ^^)
[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]