Change:
A clear and concise description of what the bug is. JetBrains editors run with which result in project built under the editors (i.e. in 's terminal) always picks up from . Even if the project is using for example . This result in ABI conflict when the build executable runs, because other components - which built using , outside clion - use from Steps to reproduce the behavior: well, this might be tricky to prepare a small project needed to support itself, should not leak into projects it edits  I suspect and in are problematic too introduced in
it seems that the fix should be to use command line switch instead of environment variable
And (or ), because JNA is looking for .so files there, so should be on one of them instead of
This is still a problem
Can confirm, this is an issue when using per-project environments which are on a different channel than my systems'. Shouldn't the "internals" be patched using e.g. instead?
For anyone else running into this: the workaround is to clear the environment variable in the IDE settings for the commands you want to run. Cumbersome, but it works.
The above workaround doesn't completely work. For instance, there is no way to remove when setting the project interpreter in PyCharm.
The following seems to work: I'll try to prepare a PR in the coming days. EDIT: It even discovered some missing dependencies and .
Has there been an update on this? I am trying to use prettier in Webstorm and all other tools to have needed the to be reset, if I want to run them. But this is not possible for prettier. I suspect that it would work with unset.
Just had this come up again trying to build a program with gcc 13 in CLion. Simply removing from in fixes the issue and doesn't appear to break clion, idea, or rider.

Discussion:
, gdb , zlib , python3 <del> , icu </del> , lldb , dotnet-sdk_7 , maven

, openssl , expat , libxcrypt-legacy <ins> , fontconfig </ins> , vmopts ? null }:

(mkJetBrainsProduct { inherit pname version src wmClass jdk buildNumber; product = "Rider"; <del> # icu is required by Rider.Backend extraLdPath = [ icu ]; </del> meta = with lib; { homepage = "https://www.jetbrains.com/rider/"; inherit description license platforms;

maintainers = with maintainers; [ raphaelr ]; }; }).overrideAttrs (attrs: { <del> postPatch = lib.optionalString (!stdenv.isDarwin) (attrs.postPatch + '' interp="$(cat $NIX_CC/nix-support/dynamic-linker)" patchelf --set-interpreter $interp  lib/ReSharperHost/linux-x64/Rider.Backend  plugins/dotCommon/DotFiles/linux-x64/JetBrains.Profiler.PdbServer rm -rf lib/ReSharperHost/linux-x64/dotnet ln -s ${dotnet-sdk_7} lib/ReSharperHost/linux-x64/dotnet ''); </del> <ins> nativeBuildInputs = (attrs.nativeBuildInputs or [ ]) ++ lib.optionals (stdenv.isLinux) [ autoPatchelfHook ]; buildInputs = (attrs.buildInputs or [ ]) ++ lib.optionals (stdenv.isLinux) [ stdenv.cc.cc zlib fontconfig  # plugins/dotTrace/DotFiles/linux-x64/libSkiaSharp.so ]; dontAutoPatchelf = true; postFixup = (attrs.postFixup or "") + lib.optionalString (stdenv.isLinux) '' ( cd $out/rider # Remove dotnet copy first so it's not considered by autoPatchElf rm -rf lib/ReSharperHost/linux-x64/dotnet autoPatchelf  lib/ReSharperHost/linux-x64/  plugins/dotCommon/DotFiles/linux-x64/  plugins/dotTrace/DotFiles/linux-x64/ ln -s ${dotnet-sdk_7} lib/ReSharperHost/linux-x64/dotnet ) ''; </ins> }); buildRubyMine = { pname, version, src, license, description, wmClass, buildNumber, ... }:

if [ -d "plugins/remote-dev-server" ]; then patch -p1 < ${./JetbrainsRemoteDev.patch} fi <ins> vmopts_file=bin/linux/${vmoptsName} if [[ ! -f $vmopts_file ]]; then vmopts_file=bin/${vmoptsName} if [[ ! -f $vmopts_file ]]; then echo "ERROR: $vmopts_file not found" exit 1 fi fi echo -Djna.library.path=${lib.makeLibraryPath ([ libsecret e2fsprogs libnotify # Required for Help -> Collect Logs # in at least rider and goland udev ])} >> $vmopts_file </ins> ''; installPhase = ''

wrapProgram  "$out/$pname/bin/${loName}.sh"  --prefix PATH : "$out/libexec/${pname}:${lib.makeBinPath [ jdk coreutils gnugrep which git python3 ]}"  <del> --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath ([ # Some internals want libstdc++.so.6 stdenv.cc.cc.lib libsecret e2fsprogs libnotify # Required for Help -> Collect Logs # in at least rider and goland udev ] ++ extraLdPath)}"  </del> <ins> --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath extraLdPath}"  </ins> ${lib.concatStringsSep " " extraWrapperArgs}  --set-default JDK_HOME "$jdk"  --set-default ANDROID_JAVA_HOME "$jdk"