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

.direnv folder crashes emanote #563

Open
FelipeMarcelino opened this issue Dec 24, 2024 · 4 comments
Open

.direnv folder crashes emanote #563

FelipeMarcelino opened this issue Dec 24, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@FelipeMarcelino
Copy link

Describe the bug
Trying to execute emanote on my NixOS with flake but got the following error:

emanote: /home/felipemarcelino/Zettelkasten/.direnv/flake-inputs/lrmxkfadhlcrakza60w0mc8sc327a5qg-source/pkgs/test/nixpkgs-check-by-name/tests/symlink-invalid/pkgs/by-name/fo/foo/foo.nix: getFileStatus: does not exist (No such file or directory)

To Reproduce
Steps to reproduce the behavior:
Go to the folder of zettelkasten (zk) and execute Emanote

Expected behavior
To have a monitored site with zettelkaten notes being monitored by Emanote regarding changes on text

Screenshots
image

Desktop (please complete the following information):
Firefox

@FelipeMarcelino FelipeMarcelino added the bug Something isn't working label Dec 24, 2024
@srid srid changed the title Got getFileStatus: does not exist (no such file or directory) when trying to execute emanote (file .../by-name/fo/foo/foo.nix) .direnv folder crashes emanote Dec 24, 2024
@srid
Copy link
Owner

srid commented Dec 24, 2024

Looks like direnv's cache folder is getting in the way.

Normally hidden folders (starting with .) should be ignored per:

ignorePatterns :: [FilePattern]
ignorePatterns =
[ -- Ignore all dotfile directories (eg: .git, .vscode)
"**/.*/**"

resulting in you seeing instead:

image

@FelipeMarcelino
Copy link
Author

Should I delete the direnv folder and recreate, or only delete can solve my problem?

@srid
Copy link
Owner

srid commented Dec 24, 2024

Until this bug gets fixed in emanote, for now - direnv deny && rm -rf ./.direnv should avoid the problem.

@srid
Copy link
Owner

srid commented Dec 24, 2024

@FelipeMarcelino Could you try 55c1161 to see if this bug still happens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants