Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't lunch rust app #1190

Open
yuyang-ok opened this issue Dec 11, 2024 · 4 comments
Open

can't lunch rust app #1190

yuyang-ok opened this issue Dec 11, 2024 · 4 comments

Comments

@yuyang-ok
Copy link

when I want to debug rust app, I found this error Error: ENOENT: no such file or directory, stat '/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB'

why codelldb want to find xcode installed lldb,is this because of I install xcode before and i Uninstall the xcode

Initial debug configuration: {
  type: 'lldb',
  request: 'launch',
  name: 'test sqlite_completion::tests::test_auto_completion',
  cwd: '${workspaceFolder}/dbnexus-db',
  program: '${workspaceFolder}/target/debug/deps/dbnexus_db-a18221bec3995a66',
  env: {
    RUST_BACKTRACE: 'short',
    COMMAND_MODE: 'unix2003',
    ELECTRON_NO_ATTACH_CONSOLE: '1',
    FLUTTER_STORAGE_BASE_URL: 'https://storage.flutter-io.cn',
    HOME: '/Users/yuyang',
    HOMEBREW_API_DOMAIN: 'https://mirrors.ustc.edu.cn/homebrew-bottles/api',
    HOMEBREW_BOTTLE_DOMAIN: 'https://mirrors.ustc.edu.cn/homebrew-bottles',
    HOMEBREW_CELLAR: '/usr/local/Cellar',
    HOMEBREW_PIP_INDEX_URL: 'https://pypi.mirrors.ustc.edu.cn/simple',
    HOMEBREW_PREFIX: '/usr/local',
    HOMEBREW_REPOSITORY: '/usr/local/Homebrew',
    INFOPATH: '/usr/local/share/info:',
    LANG: 'zh_CN.UTF-8',
    LOGNAME: 'yuyang',
    LaunchInstanceID: '92802588-ADE9-49A0-BFFF-B2F1EC2371C2',
    MallocNanoZone: '0',
    ORIGINAL_XDG_CURRENT_DESKTOP: 'undefined',
    PATH: '/usr/local/bin:/usr/local/sbin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/yuyang/.cargo/bin:/Users/yuyang/software/node-v20.16.0-darwin-x64/bin:/Users/yuyang/software/flutter/bin:/Users/yuyang/.rvm/bin',
    PUB_HOSTED_URL: 'https://pub.flutter-io.cn',
    PWD: '/Users/yuyang/projects/db',
    SECURITYSESSIONID: '186a3',
    SHELL: '/bin/zsh',
    SHLVL: '2',
    SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.5M2JT9ZKEi/Listeners',
    TERM: 'xterm-256color',
    TERM_PROGRAM: 'Apple_Terminal',
    TERM_PROGRAM_VERSION: '455',
    TERM_SESSION_ID: '07A47B35-942B-49C2-98C8-FD15B6A024B6',
    TMPDIR: '/var/folders/cd/f6bv3sr90kjd7wb3_zf1fb140000gn/T/',
    USER: 'yuyang',
    VSCODE_CLI: '1',
    VSCODE_CODE_CACHE_PATH: '/Users/yuyang/Library/Application Support/Code/CachedData/f1a4fb101478ce6ec82fe9627c43efbf9e98c813',
    VSCODE_CRASH_REPORTER_PROCESS_TYPE: 'extensionHost',
    VSCODE_CWD: '/Users/yuyang/projects/db',
    VSCODE_ESM_ENTRYPOINT: 'vs/workbench/api/node/extensionHostProcess',
    VSCODE_HANDLES_UNCAUGHT_ERRORS: 'true',
    VSCODE_IPC_HOOK: '/Users/yuyang/Library/Application Support/Code/1.95-main.sock',
    VSCODE_NLS_CONFIG: '{"userLocale":"en","osLocale":"zh-cn","resolvedLanguage":"en","defaultMessagesFile":"/Applications/Visual Studio Code.app/Contents/Resources/app/out/nls.messages.json","locale":"en","availableLanguages":{}}',
    VSCODE_PID: '13718',
    XPC_FLAGS: '0x0',
    XPC_SERVICE_NAME: 'application.com.microsoft.VSCode.11594582.11594588.2D3059FD-B924-42F8-84E8-1F4B4205AC5B',
    __CFBundleIdentifier: 'com.microsoft.VSCode',
    __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34',
    rvm_bin_path: '/Users/yuyang/.rvm/bin',
    rvm_path: '/Users/yuyang/.rvm',
    rvm_prefix: '/Users/yuyang',
    rvm_version: '1.29.12 (latest)',
    ELECTRON_RUN_AS_NODE: '1',
    RUSTC_TOOLCHAIN: '/Users/yuyang/.rustup/toolchains/stable-x86_64-apple-darwin'
  },
  args: [
    'sqlite_completion::tests::test_auto_completion',
    '--exact',
    '--show-output',
    '--nocapture',
    '--ignored'
  ],
  sourceMap: {},
  sourceLanguages: [ 'rust' ]
}
Resolved debug configuration: {
  type: 'lldb',
  request: 'launch',
  name: 'test sqlite_completion::tests::test_auto_completion',
  cwd: '${workspaceFolder}/dbnexus-db',
  program: '${workspaceFolder}/target/debug/deps/dbnexus_db-a18221bec3995a66',
  env: {
    RUST_BACKTRACE: 'short',
    COMMAND_MODE: 'unix2003',
    ELECTRON_NO_ATTACH_CONSOLE: '1',
    FLUTTER_STORAGE_BASE_URL: 'https://storage.flutter-io.cn',
    HOME: '/Users/yuyang',
    HOMEBREW_API_DOMAIN: 'https://mirrors.ustc.edu.cn/homebrew-bottles/api',
    HOMEBREW_BOTTLE_DOMAIN: 'https://mirrors.ustc.edu.cn/homebrew-bottles',
    HOMEBREW_CELLAR: '/usr/local/Cellar',
    HOMEBREW_PIP_INDEX_URL: 'https://pypi.mirrors.ustc.edu.cn/simple',
    HOMEBREW_PREFIX: '/usr/local',
    HOMEBREW_REPOSITORY: '/usr/local/Homebrew',
    INFOPATH: '/usr/local/share/info:',
    LANG: 'zh_CN.UTF-8',
    LOGNAME: 'yuyang',
    LaunchInstanceID: '92802588-ADE9-49A0-BFFF-B2F1EC2371C2',
    MallocNanoZone: '0',
    ORIGINAL_XDG_CURRENT_DESKTOP: 'undefined',
    PATH: '/usr/local/bin:/usr/local/sbin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/yuyang/.cargo/bin:/Users/yuyang/software/node-v20.16.0-darwin-x64/bin:/Users/yuyang/software/flutter/bin:/Users/yuyang/.rvm/bin',
    PUB_HOSTED_URL: 'https://pub.flutter-io.cn',
    PWD: '/Users/yuyang/projects/db',
    SECURITYSESSIONID: '186a3',
    SHELL: '/bin/zsh',
    SHLVL: '2',
    SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.5M2JT9ZKEi/Listeners',
    TERM: 'xterm-256color',
    TERM_PROGRAM: 'Apple_Terminal',
    TERM_PROGRAM_VERSION: '455',
    TERM_SESSION_ID: '07A47B35-942B-49C2-98C8-FD15B6A024B6',
    TMPDIR: '/var/folders/cd/f6bv3sr90kjd7wb3_zf1fb140000gn/T/',
    USER: 'yuyang',
    VSCODE_CLI: '1',
    VSCODE_CODE_CACHE_PATH: '/Users/yuyang/Library/Application Support/Code/CachedData/f1a4fb101478ce6ec82fe9627c43efbf9e98c813',
    VSCODE_CRASH_REPORTER_PROCESS_TYPE: 'extensionHost',
    VSCODE_CWD: '/Users/yuyang/projects/db',
    VSCODE_ESM_ENTRYPOINT: 'vs/workbench/api/node/extensionHostProcess',
    VSCODE_HANDLES_UNCAUGHT_ERRORS: 'true',
    VSCODE_IPC_HOOK: '/Users/yuyang/Library/Application Support/Code/1.95-main.sock',
    VSCODE_NLS_CONFIG: '{"userLocale":"en","osLocale":"zh-cn","resolvedLanguage":"en","defaultMessagesFile":"/Applications/Visual Studio Code.app/Contents/Resources/app/out/nls.messages.json","locale":"en","availableLanguages":{}}',
    VSCODE_PID: '13718',
    XPC_FLAGS: '0x0',
    XPC_SERVICE_NAME: 'application.com.microsoft.VSCode.11594582.11594588.2D3059FD-B924-42F8-84E8-1F4B4205AC5B',
    __CFBundleIdentifier: 'com.microsoft.VSCode',
    __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34',
    rvm_bin_path: '/Users/yuyang/.rvm/bin',
    rvm_path: '/Users/yuyang/.rvm',
    rvm_prefix: '/Users/yuyang',
    rvm_version: '1.29.12 (latest)',
    ELECTRON_RUN_AS_NODE: '1',
    RUSTC_TOOLCHAIN: '/Users/yuyang/.rustup/toolchains/stable-x86_64-apple-darwin'
  },
  args: [
    'sqlite_completion::tests::test_auto_completion',
    '--exact',
    '--show-output',
    '--nocapture',
    '--ignored'
  ],
  sourceMap: {},
  sourceLanguages: [ 'rust' ],
  expressions: 'native',
  relativePathBase: '/Users/yuyang/projects/db',
  _adapterSettings: {
    displayFormat: 'auto',
    showDisassembly: 'auto',
    dereferencePointers: true,
    suppressMissingSourceFiles: true,
    evaluationTimeout: 5,
    consoleMode: 'commands',
    sourceLanguages: null,
    scriptConfig: {},
    terminalPromptClear: null,
    evaluateForHovers: true,
    commandCompletions: true,
    reproducer: false
  }
}
Error: ENOENT: no such file or directory, stat '/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB'
@koutheir
Copy link

I'm also having issues debugging a Rust program that causes the LLDB debugger process (lldb-server) to crash when I try to expand the tree of variables.

@koutheir
Copy link

koutheir commented Dec 11, 2024

Installing a previous version v1.10.0 of this extension solves my issue. Something broke after that release.

@yuyang-ok
Copy link
Author

@koutheir thanks. I installed old version still have this issue
截屏2024-12-11 10 48 39

@koutheir
Copy link

It sounds like our issues are different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants