<div dir="ltr"><div dir="ltr"><div>the error was</div><div><br></div><div dir="ltr">Error spawning PHP: Command failed: /run/host/usr/bin/php --version<br>/run/host/usr/bin/php: error while loading shared libraries: libargon2.so.0: cannot open shared object file: No such file or directory<br><br></div><div dir="ltr">sh-4.3$ /run/host/usr/bin/php --version<br>/run/host/usr/bin/php: error while loading shared libraries: libargon2.so.0: cannot open shared object file: No such file or directory<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 6, 2019 at 6:35 PM Muayyad AlSadi <<a href="mailto:alsadi@gmail.com">alsadi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>hi,</div><div><br></div><div>I've installed vs code from <br></div><div><br></div><div><a href="https://flathub.org/apps/details/com.visualstudio.code.oss" target="_blank">https://flathub.org/apps/details/com.visualstudio.code.oss</a></div><div><br></div><div>I've noticed that it run inside a container with minimal os</div><div>while the host is mounted on /run/host/</div><div><br></div><div>1. although the minimal os has bash, it uses sh by default</div><div>2. many extensions did not work due to problems with host tools<br></div><div><br></div><div>for example:</div><div>Language Support for Java(TM) by Red Hat<br><a href="https://marketplace.visualstudio.com/items?itemName=redhat.java" target="_blank">https://marketplace.visualstudio.com/items?itemName=redhat.java</a></div><div><br></div><div>PHP IntelliSense<br></div><div><a href="https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-intellisense" target="_blank">https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-intellisense</a><br></div><div><br></div><div>SonarSource SonarQube</div><div><a href="https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube" target="_blank">https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube</a><br></div><div><br></div><div><br></div><div>and maybe eslint (not sure)<br></div><div><br></div><div>for example java is not working because in host they are symbolic links<br></div><div><br></div><div>[alsadi@laptop ~]$ ls -lh /etc/alternatives/java<br>lrwxrwxrwx. 1 root root 72 Feb 5 16:11 /etc/alternatives/java -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b13-0.fc28.x86_64/jre/bin/java<br>[alsadi@laptop ~]$ ls -lh /usr/lib/jvm/<br>total 76K<br>lrwxrwxrwx. 1 root root 26 Feb 5 16:08 java -> /etc/alternatives/java_sdk<br>lrwxrwxrwx. 1 root root 21 Feb 5 16:11 jre -> /etc/alternatives/jre<br>...</div><div><br></div><div>those links would become broken inside the container</div><div><br></div><div>sh-4.3$ ls -lh /run/host/usr/bin/java<br>lrwxrwxrwx 1 nfsnobody nfsnobody 22 Feb 5 16:11 /run/host/usr/bin/java -> /etc/alternatives/java<br>sh-4.3$ ls -lh /etc/alternatives/java<br>ls: cannot access '/etc/alternatives/java': No such file or directory<br>sh-4.3$ ls -lh /run/host/etc/alternatives/java<br>lrwxrwxrwx 1 nfsnobody nfsnobody 72 Feb 5 16:11 /run/host/etc/alternatives/java -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b13-0.fc28.x86_64/jre/bin/java</div><div><br></div><div>and manually setting to did not seem to work<br></div><div><br></div> "java.home": "/run/host/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b13-0.fc28.x86_64/",<br></div><div dir="ltr"> "sonarlint.ls.javaHome": "/run/host/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-11.fc28.x86_64/jre/"<br><div><br></div><div>so with php<br></div><div><br></div><div>PHP executable not found. Install PHP 7 and add it to your PATH or set the php.executablePath setting<br></div><div><br></div><div>I guess there is a way to define a read-only overlay/union between the minimal container and host? can I choose host? do I have to configure all those pathes?<br></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>