NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.18k stars 13.47k forks source link

jetbrains IDEs on darwin not linked to bin/mac binaries (fsnotifier, libnst64.dylib, etc) #87609

Open ldeck opened 4 years ago

ldeck commented 4 years ago

Describe the bug The bin directory for darwin installs of jetbrains idea-community and idea-ultimate contains linux binaries instead of those intended for mac.

To Reproduce Steps to reproduce the behavior:

  1. add overlay to fix the jbrsdk on darwin (see this issue)
  2. nix-env -iA jetbrains.idea-ultimate
  3. idea-ultimate
  4. create project ’test-project’ (optional)

Expected behavior Expect to contain macOS binaries. See Jetbrains/intellij-community/bin/mac.

Actual behavior idea-ultimate-*/bin, for example, contains binaries for linux.

ls -1 /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin
appletviewer.policy
format.sh
fsnotifier
fsnotifier64
idea.png
idea.properties
idea.sh
idea.svg
idea.vmoptions
idea64.vmoptions
inspect.sh
libdbm64.so
log.xml
printenv.py
restart.py

Additional context

% idea-ultimate 
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020-05-11 09:08:31,397 [   1818]   WARN - i.mac.MacOSApplicationProvider - No URL bundle (CFBundleURLTypes) is defined in the main bundle.
To be able to open external links, specify protocols in the app layout section of the build file.
Example: args.urlSchemes = ["your-protocol"] will handle following links: your-protocol://open?file=file&line=line 
2020-05-11 09:08:31,456 [   1877]  ERROR - m.intellij.ui.mac.touchbar.NST - Failed to load nst library for touchbar:  
java.lang.UnsatisfiedLinkError: 'libnst64.dylib' not found in '/nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin' among [inspect.sh, idea64.vmoptions, fsnotifier64, idea.properties, idea.vmoptions, printenv.py, idea.sh, appletviewer.policy, restart.py, fsnotifier, idea.svg, idea.png, log.xml, libdbm64.so, format.sh]
    at com.intellij.util.loader.NativeLibraryLoader.loadPlatformLibrary(NativeLibraryLoader.java:25)
    at com.intellij.ui.mac.touchbar.NST.loadLibrary(NST.java:93)
    at com.intellij.ui.mac.touchbar.NST.initialize(NST.java:58)
    at com.intellij.ui.mac.touchbar.TouchBarsManager.initialize(TouchBarsManager.java:183)
    at com.intellij.idea.ApplicationLoader$startApp$3.run(ApplicationLoader.kt:152)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
    at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
    at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:222)
    at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:29)
    at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:201)
    at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:193)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
2020-05-11 09:08:31,459 [   1880]  ERROR - m.intellij.ui.mac.touchbar.NST - IntelliJ IDEA 2020.1  Build #IU-201.6668.121 
2020-05-11 09:08:31,459 [   1880]  ERROR - m.intellij.ui.mac.touchbar.NST - JDK: 11.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o 
2020-05-11 09:08:31,459 [   1880]  ERROR - m.intellij.ui.mac.touchbar.NST - OS: Mac OS X 
2020-05-11 09:08:31,461 [   1882]  ERROR - m.intellij.ui.mac.touchbar.NST - nst library wasn't loaded 
java.lang.Throwable: nst library wasn't loaded
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:146)
    at com.intellij.ui.mac.touchbar.NST.initialize(NST.java:83)
    at com.intellij.ui.mac.touchbar.TouchBarsManager.initialize(TouchBarsManager.java:183)
    at com.intellij.idea.ApplicationLoader$startApp$3.run(ApplicationLoader.kt:152)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
    at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
    at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:222)
    at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:29)
    at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:201)
    at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:193)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
2020-05-11 09:08:31,461 [   1882]  ERROR - m.intellij.ui.mac.touchbar.NST - IntelliJ IDEA 2020.1  Build #IU-201.6668.121 
2020-05-11 09:08:31,461 [   1882]  ERROR - m.intellij.ui.mac.touchbar.NST - JDK: 11.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o 
2020-05-11 09:08:31,462 [   1883]  ERROR - m.intellij.ui.mac.touchbar.NST - OS: Mac OS X 
2020-05-11 09:08:31,706 [   2127]   WARN - Container.ComponentManagerImpl - Do not use constructor injection (requestorClass=com.google.cloud.tools.intellij.analytics.DefaultUsageTrackingManagementService) 
2020-05-11 09:08:31,991 [   2412]   WARN - pl.local.NativeFileWatcherImpl - /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: cannot execute binary file 
2020-05-11 09:08:31,992 [   2413]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 126 
2020-05-11 09:08:32,002 [   2423]   WARN - pl.local.NativeFileWatcherImpl - /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: cannot execute binary file 
2020-05-11 09:08:32,002 [   2423]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 126 
2020-05-11 09:08:32,010 [   2431]   WARN - pl.local.NativeFileWatcherImpl - /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: cannot execute binary file 
2020-05-11 09:08:32,011 [   2432]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 126 
2020-05-11 09:08:32,018 [   2439]   WARN - pl.local.NativeFileWatcherImpl - /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: cannot execute binary file 
2020-05-11 09:08:32,025 [   2446]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 126 
2020-05-11 09:08:32,033 [   2454]   WARN - pl.local.NativeFileWatcherImpl - /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: cannot execute binary file 
2020-05-11 09:08:32,043 [   2464]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 126 
2020-05-11 09:08:32,051 [   2472]   WARN - pl.local.NativeFileWatcherImpl - /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: cannot execute binary file 
2020-05-11 09:08:32,052 [   2473]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 126 
2020-05-11 09:08:32,058 [   2479]   WARN - pl.local.NativeFileWatcherImpl - /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: cannot execute binary file 
2020-05-11 09:08:32,059 [   2480]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 126 
2020-05-11 09:08:32,067 [   2488]   WARN - pl.local.NativeFileWatcherImpl - /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: cannot execute binary file 
2020-05-11 09:08:32,095 [   2516]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 126 
2020-05-11 09:08:32,108 [   2529]   WARN - pl.local.NativeFileWatcherImpl - /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: cannot execute binary file 
2020-05-11 09:08:32,109 [   2530]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 126 
2020-05-11 09:08:32,131 [   2552]   WARN - pl.local.NativeFileWatcherImpl - /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: /nix/store/n24hq1pgs6x4c33zibhn3n9kk9j6vqic-idea-ultimate-2020.1/idea-ultimate-2020.1/bin/fsnotifier: cannot execute binary file 
2020-05-11 09:08:32,131 [   2552]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 126 
2020-05-11 09:08:32,131 [   2552]   WARN - api.vfs.impl.local.FileWatcher - File watcher failed to start 
2020-05-11 09:08:32,357 [   2778]   WARN - nSystem.impl.ActionManagerImpl - keymap "Xcode" not found [Plugin: com.intellij] 

Notify maintainers @edwtjo

Metadata Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

% nix-shell -p nix-info --run "nix-info -m"
these paths will be fetched (0.01 MiB download, 0.03 MiB unpacked):
  /nix/store/0z43a7al49m7yqm7ym81mzgrwjpkkzn5-nix-info
  /nix/store/79ghvvck1zc4jxmb22szbx6c8zh2hza3-DarwinTools-1
copying path '/nix/store/79ghvvck1zc4jxmb22szbx6c8zh2hza3-DarwinTools-1' from 'https://cache.nixos.org'...
copying path '/nix/store/0z43a7al49m7yqm7ym81mzgrwjpkkzn5-nix-info' from 'https://cache.nixos.org'...
 - system: `"x86_64-darwin"`
 - host os: `Darwin 19.4.0, macOS 10.15.4`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.4`
 - channels(ldeck): `"nixpkgs-20.09pre224406.5f14d99efed"`
 - nixpkgs: `/Users/ldeck/.nix-defexpr/channels/nixpkgs`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: 
  nixpkgs:
    jetbrains:
      - idea-ultimate
      - idea-community
stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info