microsoft / VSLinux

VS extension for C++ Linux development
205 stars 34 forks source link

vs2022 remote debugging Linux CMake project error. #392

Closed szllzs closed 1 year ago

szllzs commented 1 year ago

When selecting rsync option for a VS2022 CMake project to remotely debug on a Linux environment, cmake reports the following error: 1> 正在将文件复制到远程计算机。 1> 开始将文件复制到远程计算机。 1> [rsync] rsync -t --delete -v -r --exclude=.vs --exclude=.git --exclude=out -8 "." rsync://root@localhost:55609/-data-data-com.termux-files-home-.vs-CMakeProject2-ffb1cca0-6bbc-40e9-80d7-7605dcaac681-src 1> [rsync] rsync: didn't get server startup line 1> [rsync] rsync error: error starting client-server protocol (code 5) at main.c(1859) [sender=3.2.7] 1> 复制时出错。有关疑难解答,请参阅 https://aka.ms/AA23jat

When I switch to sftp, I get this error. 1> 正在将文件复制到远程计算机。 1> 18:50:28: 开始将文件复制到远程计算机。 1> 18:50:28: 已完成复制文件(运行时间 00h:00m:00s:362ms)。 1> 已完成复制文件(运行时间 00h:00m:01s:453ms)。 1> 已为配置“Linux-GCC-Debug”启动 CMake 生成。 1> 在 /data/data/com.termux/files/usr/bin/cmake 上找到 cmake 可执行文件。 1> /data/data/com.termux/files/usr/bin/cmake -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="$HOME/.vs/CMakeProject2/ffb1cca0-6bbc-40e9-80d7-7605dcaac681/out/install/Linux-GCC-Debug" /data/data/com.termux/files/home/.vs/CMakeProject2/ffb1cca0-6bbc-40e9-80d7-7605dcaac681/src/CMakeLists.txt; 1> [CMake] -- The C compiler identification is Clang 16.0.3 1> [CMake] -- The CXX compiler identification is Clang 16.0.3 1> [CMake] -- Detecting C compiler ABI info 1> [CMake] -- Detecting C compiler ABI info - done 1> [CMake] -- Check for working C compiler: /data/data/com.termux/files/usr/bin/cc - skipped 1> [CMake] -- Detecting C compile features 1> [CMake] -- Detecting C compile features - done 1> [CMake] -- Detecting CXX compiler ABI info 1> [CMake] -- Detecting CXX compiler ABI info - done 1> [CMake] -- Check for working CXX compiler: /data/data/com.termux/files/usr/bin/c++ - skipped 1> [CMake] -- Detecting CXX compile features 1> [CMake] -- Detecting CXX compile features - done 1> [CMake] -- Configuring done (2.3s) 1> [CMake] -- Generating done (0.0s) 1> [CMake] -- Build files have been written to: /data/data/com.termux/files/home/.vs/CMakeProject2/ffb1cca0-6bbc-40e9-80d7-7605dcaac681/out/build/Linux-GCC-Debug 1> 错误: CMake file APIs: download of '/data/data/com.termux/files/home/.vs/CMakeProject2/ffb1cca0-6bbc-40e9-80d7-7605dcaac681/out/build/Linux-GCC-Debug/.cmake/api/v1/reply' failed!

github-actions[bot] commented 1 year ago

@szllzs bugs and new suggestions should be reported on the Developer Community forum. It is centralized, better equipped for group voting, and has more visibility.