question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Properly detect macOS/Linux/Windows incompatibility for the language server

See original GitHub issue

Environment data

  • VS Code version: 1.27.2
  • Extension version (available under the Extensions sidebar): 2018.8.0
  • OS and version: MacOS EI Captain 10.11.6
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.0 from Brew
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): virtualenv
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

Error log shows in “output”

Expected behavior

N/A

Steps to reproduce:

N/A

Logs

Starting Microsoft Python language server.
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
  Referenced from: /Users/samuel/.vscode/extensions/ms-python.python-2018.8.0/languageServer/libcoreclr.dylib (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _clock_gettime
  Referenced from: /Users/samuel/.vscode/extensions/ms-python.python-2018.8.0/languageServer/libcoreclr.dylib (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

[Info  - 11:50:16 PM] Connection to server got closed. Server will restart.
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
  Referenced from: /Users/samuel/.vscode/extensions/ms-python.python-2018.8.0/languageServer/libcoreclr.dylib (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _clock_gettime
  Referenced from: /Users/samuel/.vscode/extensions/ms-python.python-2018.8.0/languageServer/libcoreclr.dylib (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

[Info  - 11:50:17 PM] Connection to server got closed. Server will restart.
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
  Referenced from: /Users/samuel/.vscode/extensions/ms-python.python-2018.8.0/languageServer/libcoreclr.dylib (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _clock_gettime
  Referenced from: /Users/samuel/.vscode/extensions/ms-python.python-2018.8.0/languageServer/libcoreclr.dylib (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

[Info  - 11:50:18 PM] Connection to server got closed. Server will restart.
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
  Referenced from: /Users/samuel/.vscode/extensions/ms-python.python-2018.8.0/languageServer/libcoreclr.dylib (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _clock_gettime
  Referenced from: /Users/samuel/.vscode/extensions/ms-python.python-2018.8.0/languageServer/libcoreclr.dylib (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

[Info  - 11:50:18 PM] Connection to server got closed. Server will restart.
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
  Referenced from: /Users/samuel/.vscode/extensions/ms-python.python-2018.8.0/languageServer/libcoreclr.dylib (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _clock_gettime
  Referenced from: /Users/samuel/.vscode/extensions/ms-python.python-2018.8.0/languageServer/libcoreclr.dylib (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

[Error - 11:50:19 PM] Connection to server got closed. Server will not be restarted.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
samuelchencommented, Nov 29, 2018

@DonJayamanne sorry too late to answer. I tried Jedi and it worked. Later I upgraded memory & SSD so that I could upgrade to latest MacOS. It works well.

0reactions
brettcannoncommented, Nov 28, 2018
  • Test Python code
  • Fix PyPI dependency installation
  • Test macOS
  • Test Linux
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to reliably detect os/platform in Go - Stack Overflow
I'm on Windows, and my GetData func in data_windows.go is "redeclared" because of GetData in data_unix.go . Both have proper build contraints ( ......
Read more >
Language Server Extension Guide - Visual Studio Code
Learn how to create Language Servers to provide rich language features in Visual Studio Code.
Read more >
vlang/vls: V language server - GitHub
V Language Server (also known as "VLS") is a LSP v3.15-compatible language ... Pre-built binaries for Windows (x64), MacOS (x64/M1), and Linux (x64)...
Read more >
User Manual - rust-analyzer
Linux (Remote, such as WSL): ~/.vscode-server/extensions. macOS: ~/.vscode/extensions. Windows: %USERPROFILE%\.vscode\ ...
Read more >
How to Check Python Version in Linux, Mac, & Windows
Linux : Ctrl-Alt-T, Ctrl-Alt-F2; Windows: Win+R > type powershell > Enter/OK; MacOS: Finder > Applications > Utilities > Terminal. There are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found