Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dprint fails to add the plugin to cache on nixos #69

Open
adrian-gierakowski opened this issue Dec 15, 2023 · 1 comment
Open

dprint fails to add the plugin to cache on nixos #69

adrian-gierakowski opened this issue Dec 15, 2023 · 1 comment

Comments

@adrian-gierakowski
Copy link

after running dprint config add prettier I see dprint attempt to download the plugin (twice), which looks as follows

Screenshot_20231215_171317

finally I get the following error:

Error resolving plugin https://plugins.dprint.dev/prettier-0.30.0.json: Error starting /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-prettier/0.30.0/x86_64/dprint-plugin-prettier with args [--parent-pid 740234 --init]. No such file or directory (os error 2)

also:

> ls -al /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-prettier/0.30.0/
total 8
drwxr-xr-x 2 adrian users 4096 Dec 15 17:14 .
drwxr-xr-x 3 adrian users 4096 Dec 15 17:00 ..

OS: NixOs
linux kernel version: 6.5.13

@adrian-gierakowski
Copy link
Author

with --verbose:

> dprint --verbose fmt
[DEBUG] Reading file: /home/adrian/.cache/dprint/cache/plugin-cache-manifest.json
[DEBUG] Creating directory: /home/adrian/.cache/dprint/cache/locks
[DEBUG] Checking path exists: /home/adrian/code/rhinofi/dprint-test/dprint.json
[DEBUG] Reading file: /home/adrian/code/rhinofi/dprint-test/dprint.json
[DEBUG] Reading file: /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-typescript/0.88.7-4.2.2-x86_64-6433037352222950677
[DEBUG] Reading file: /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-json/0.19.1-4.2.2-x86_64-6433037352222950677
[DEBUG] Reading file: /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-markdown/0.16.3-4.2.2-x86_64-6433037352222950677
[DEBUG] Reading file: /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-toml/0.5.4-4.2.2-x86_64-6433037352222950677
[DEBUG] Acquiring file lock at /home/adrian/.cache/dprint/cache/locks/.14222356300968912945.lock
[DEBUG] Acquired file lock at /home/adrian/.cache/dprint/cache/locks/.14222356300968912945.lock
[DEBUG] Reading file: /home/adrian/.cache/dprint/cache/plugin-cache-manifest.json
[DEBUG] Downloading url: https://plugins.dprint.dev/prettier-0.30.0.json
[DEBUG] Downloading url: https://github.com/dprint/dprint-plugin-prettier/releases/download/0.30.0/dprint-plugin-prettier-x86_64-unknown-linux-gnu.zip
[DEBUG] Deleting directory: /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-prettier/0.30.0/x86_64
[DEBUG] Creating directory: /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-prettier/0.30.0/x86_64
[DEBUG] Extracting zip file to directory: /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-prettier/0.30.0/x86_64
[DEBUG] Creating directory: /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-prettier/0.30.0/x86_64
[DEBUG] Writing file: /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-prettier/0.30.0/x86_64/dprint-plugin-prettier
[DEBUG] Checking path exists: /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-prettier/0.30.0/x86_64/dprint-plugin-prettier
[DEBUG] Failed setting up process plugin. Error starting /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-prettier/0.30.0/x86_64/dprint-plugin-prettier with args [--parent-pid 741555 --init]. No such file or directory (os error 2)
[DEBUG] Deleting directory: /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-prettier/0.30.0/x86_64
[DEBUG] Error getting plugin from cache. Forgetting from cache and retrying. Message: Error starting /home/adrian/.cache/dprint/cache/plugins/dprint-plugin-prettier/0.30.0/x86_64/dprint-plugin-prettier with args [--parent-pid 741555 --init]. No such file or directory (os error 2)
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant