Failed to get lock on destination repos, currently held by ‘ubuntu:9f51b9fe-b204-4439-a0d5-88a2fd5d5ff6’

Problem

  1. water@ubuntu:/xxxxxxxxxxsvnsync$ svnsync sync --non-interactive file:////XXX/XXXX/XXXXXXXXXXX/XXXXXXXXXXXXXXXXXXX
  2. Failed to get lock on destination repos, currently held by 'ubuntu:9f51b9fe-b204-4439-a0d5-88a2fd5d5ff6'

Resolved

  1. water@ubuntu:/xxxxxxxxxxsvnsync$ svnsync sync --non-interactive file:////XXX/XXXX/XXXXXXXXXXX/XXXXXXXXXXXXXXXXXXX --steal-lock
  2. Stole lock previously held by 'ubuntu:9f51b9fe-b204-4439-a0d5-88a2fd5d5ff6'

Rust – Hello World

main.rs

  1. fn main() {
  2.     println!("Hello, world!");
  3.     let a = "Water";
  4.     println!("Hello, {}!", a);
  5. }

tasks.json

  1. { 
  2.     "version":"2.0.0", 
  3.     "tasks":[ 
  4.         { 
  5.             "label":"build", 
  6.             "type":"shell", 
  7.             "command":"cargo", 
  8.             "args":["build"] 
  9.         } 
  10.     ] 
  11. }

launch.json

  1. { 
  2.         "version":"0.2.0", 
  3.         "configurations":[ 
  4.             { 
  5.                 "name":"(Windows) 启动", 
  6.                 "preLaunchTask":"build", 
  7.                 "type":"cppvsdbg", 
  8.                 "request":"launch", 
  9.                 "program":"${workspaceFolder}/target/debug/${workspaceFolderBasename}.exe", 
  10.                 "args":[], 
  11.                 "stopAtEntry":false, 
  12.                 "cwd":"${workspaceFolder}", 
  13.                 "environment":[], 
  14.                 "externalConsole":false 
  15.             }, 
  16.             { 
  17.                 "name":"(gdb) 启动", 
  18.                 "type":"cppdbg", 
  19.                 "request":"launch", 
  20.                 "program":"${workspaceFolder}/target/debug/${workspaceFolderBasename}.exe", 
  21.                 "args":[], 
  22.                 "stopAtEntry":false, 
  23.                 "cwd":"${workspaceFolder}", 
  24.                 "environment":[], 
  25.                 "externalConsole":false, 
  26.                 "MIMode":"gdb", 
  27.                 "miDebuggerPath":"这里填GDB所在的目录", 
  28.                 "setupCommands":[ 
  29.                     { 
  30.                         "description":"为 gdb 启用整齐打印", 
  31.                         "text":"-enable-pretty-printing", 
  32.                         "ignoreFailures":true 
  33.                     } 
  34.                 ] 
  35.             } 
  36.         ] 
  37. }