dotnet / dotnet/vscode-csharp

Installation of Debugging tools on OS X causes @rPath library linking issue

Open
#724 8 comments 1 reaction 0 assignees View on GitHub
Debugger OmniSharp Question
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

## Environment data

.NET Command Line Tools (1.0.0-preview2-003121)

Product Information:
Version: 1.0.0-preview2-003121
Commit SHA-1 hash: 1e9d529bc5

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.9
OS Platform: Darwin
RID: osx.10.9-x64

VS Code version: 1.4.0
C# Extension version: 1.3.0
## Steps to reproduce
- Install C# Extension.
- `dotnet new`
- Attempt to debug
## Expected behavior

I expect it to build and run the application ensuring to attach the debugger.
## Actual behavior

It builds the application but when attempting to run clrdbg gives the following error:
`dyld: Library not loaded: @rpath/libclrdbg.dylib
Referenced from: /Users/rob/.vscode/extensions/ms-vscode.csharp-1.3.0/coreclr-debug/debugAdapters/./clrdbg
Reason: image not found
Trace/BPT trap: 5`

This errors also occurs when I try to launch clrdbg outside of Visual Studio code.

After much Googling (I am not exactly an OS X developer) I found that manually adding an rpath value for the directory using install_name_tool fixed my problem:
- `cd /Users/rob/.vscode/extensions/ms-vscode.csharp-1.3.0/coreclr-debug/debugAdapters`
- `install_name_tool -add_rpath . clrdbg`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.