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

neil version throws exception when deps.edn doesn't exist #250

Open
rads opened this issue Mar 16, 2025 · 1 comment
Open

neil version throws exception when deps.edn doesn't exist #250

rads opened this issue Mar 16, 2025 · 1 comment

Comments

@rads
Copy link
Collaborator

rads commented Mar 16, 2025

babashka version

v1.12.197

neil version

0.3.68

platform

macOS Sequoia 15.3.2

problem

The neil version command throws an exception when no deps.edn file exists in the current directory.

repro

$ mkdir neil-repro && cd neil-repro && neil version
----- Error --------------------------------------------------------------------
Type:     java.io.FileNotFoundException
Message:  /Users/rads/neil-repro/deps.edn (No such file or directory)
Location: /Users/rads/.gitlibs/libs/io.github.babashka/neil/78ffab1868dc04b2eec5d7195d2d8f92c416e528/neil:864:14

expected behavior

If you create an empty deps.edn, it works as expected. It should work the same way without creating the deps.edn first:

$ touch deps.edn
$ neil version                                     
{:neil "0.3.68", :project :version-not-set}
@rads
Copy link
Collaborator Author

rads commented Mar 16, 2025

I'm documenting this for myself to fix it later.

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