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/libLLVM-4.0.so.1: version `LLVM_4.0’ not found (required by clang)

Library exist on the system:
stojanos@stojanos-EZbook:~/Documents$ ldd /usr/bin/clang
linux-vdso.so.1 => (0x00007ffceb7b3000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f129c79b000)
libLLVM-4.0.so.1 => /usr/lib/x86_64-linux-gnu/libLLVM-4.0.so.1 (0x00007f129980d000)
libjsoncpp.so.1 => /usr/lib/x86_64-linux-gnu/libjsoncpp.so.1 (0x00007f12995db000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1299255000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1298eff000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1298ce8000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1298908000)
/lib64/ld-linux-x86-64.so.2 (0x00007f129e865000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f1298700000)
libedit.so.2 => /usr/lib/x86_64-linux-gnu/libedit.so.2 (0x00007f12984c9000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f12982c5000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f129809c000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1297e7f000)
stojanos@stojanos-EZbook:~/Documents$

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.