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

Generated karabiner.json file in different location from GOKU_EDN_CONFIG_FILE #208

Open
kaushikgopal opened this issue Jan 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kaushikgopal
Copy link

If I change my edn config file by setting a different path via GOKU_EDN_CONFIG_FILE, post goku generation Goku, it still caches the old location for the karabiner.json file.

$> mv ~/.config/karabiner/karabiner.edn ~/.karabiner.edn
$> export GOKU_EDN_CONFIG_FILE=~/.karabiner.edn
$> goku
# generated file remains in ~/.config/karabiner/karabiner.json

If i nuke the old file I get a file not found exception:

$> rm ~/.config/karabiner/karabiner.json 
$> goku
# 🚨exception

Exception is:

Exception in thread "main" java.io.FileNotFoundException: ~/.config/karabiner/karabiner.json (No such file or directory)
	at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST_FileNotFoundException_constructor_970c509c6abfd3f98898b9a7521945418b90b270(JNIJavaCallWrappers.java:0)
	at java.io.FileInputStream.open0(FileInputStream.java)
	at java.io.FileInputStream.open(FileInputStream.java:216)
	at java.io.FileInputStream.<init>(FileInputStream.java:157)
	at clojure.java.io$fn__11617.invokeStatic(io.clj:229)
	at clojure.java.io$fn__11617.invoke(io.clj:229)
	at clojure.java.io$fn__11569$G__11523__11576.invoke(io.clj:69)
	at clojure.java.io$fn__11629.invokeStatic(io.clj:258)
	at clojure.java.io$fn__11629.invoke(io.clj:254)
	at clojure.java.io$fn__11569$G__11523__11576.invoke(io.clj:69)
	at clojure.java.io$fn__11591.invokeStatic(io.clj:165)
	at clojure.java.io$fn__11591.invoke(io.clj:165)
	at clojure.java.io$fn__11530$G__11519__11537.invoke(io.clj:69)
	at clojure.java.io$reader.invokeStatic(io.clj:102)
	at clojure.java.io$reader.doInvoke(io.clj:86)
	at clojure.lang.RestFn.invoke(RestFn.java:410)
	at karabiner_configurator.misc$load_json.invokeStatic(misc.clj:56)
	at karabiner_configurator.misc$load_json.invoke(misc.clj:53)
	at karabiner_configurator.core$update_to_karabiner_json.invokeStatic(core.clj:87)
	at karabiner_configurator.core$update_to_karabiner_json.doInvoke(core.clj:83)
	at clojure.lang.RestFn.invoke(RestFn.java:439)
	at karabiner_configurator.core$parse.invokeStatic(core.clj:138)
	at karabiner_configurator.core$parse.doInvoke(core.clj:130)
	at clojure.lang.RestFn.invoke(RestFn.java:439)
	at karabiner_configurator.core$_main.invokeStatic(core.clj:229)
	at karabiner_configurator.core$_main.doInvoke(core.clj:224)
	at clojure.lang.RestFn.invoke(RestFn.java:397)
	at clojure.lang.AFn.applyToHelper(AFn.java:152)
	at clojure.lang.RestFn.applyTo(RestFn.java:132)
	at karabiner_configurator.core.main(Unknown Source)
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