Clang not detected on Ubuntu 17.10

Hi All,

Clang is not detected on a new Ubuntu 17.10 beta. Platformio is complaining that clang is not installed and ask me to install now, remind later or disable. Clang is installed and if I click install now it is successful and ask me to restart. After restart it still complains.

Here is the output about clang version from terminal:

clang --version

clang version 4.0.1-5ubuntu1 (tags/RELEASE_401/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Is it something that I am doing wrong or this is a bug ?

Thanks !

Could you open PIO IDE Terminal (not a system) and type clang --version?

From PIO terminal it is reported with an error:
stojanos@stojanos-EZbook:~/Documents/PlatformIO/Projects/171007-115736-pro8MHzatmega328$ clang --version
clang: /snap/atom/36/usr/lib/x86_64-linux-gnu/ version `LLVM_4.0’ not found (required by clang)

Library exist on the system:
stojanos@stojanos-EZbook:~/Documents$ ldd /usr/bin/clang => (0x00007ffceb7b3000) => /lib/x86_64-linux-gnu/ (0x00007f129c79b000) => /usr/lib/x86_64-linux-gnu/ (0x00007f129980d000) => /usr/lib/x86_64-linux-gnu/ (0x00007f12995db000) => /usr/lib/x86_64-linux-gnu/ (0x00007f1299255000) => /lib/x86_64-linux-gnu/ (0x00007f1298eff000) => /lib/x86_64-linux-gnu/ (0x00007f1298ce8000) => /lib/x86_64-linux-gnu/ (0x00007f1298908000)
/lib64/ (0x00007f129e865000) => /usr/lib/x86_64-linux-gnu/ (0x00007f1298700000) => /usr/lib/x86_64-linux-gnu/ (0x00007f12984c9000) => /lib/x86_64-linux-gnu/ (0x00007f12982c5000) => /lib/x86_64-linux-gnu/ (0x00007f129809c000) => /lib/x86_64-linux-gnu/ (0x00007f1297e7f000)

Just for background - I have installed Atom from ubuntu software center and then installed platformio-ide from Atom.

Thanks for looking into it.

Have you resolved this issue?

Software center installs Atom as a snap. Uninstall the existing Atom and install using the .deb file available from the Atom website. Then, your issue will be solved.