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

FileNotFoundException when setting or adding a configuration on a fresh install #42

Closed
cbmarcum opened this issue Jan 28, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@cbmarcum
Copy link
Owner

No $HOME/.skeletal directory has been created yet so when skeletal tries to create the managed-config.json the error is thrown.

$ skeletal config add simpleRepositories "https://codebuilders.jfrog.io/artifactory/generic/openoffice-templates"
Exception in thread "main" java.io.FileNotFoundException: /home/carl/.skeletal/managed-config.json (No such file or directory)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
	at org.codehaus.groovy.runtime.ResourceGroovyMethods.write(ResourceGroovyMethods.java:855)
	at org.codehaus.groovy.runtime.ResourceGroovyMethods.write(ResourceGroovyMethods.java:836)
	at org.codehaus.groovy.runtime.ResourceGroovyMethods.setText(ResourceGroovyMethods.java:780)
	at org.codehaus.groovy.runtime.dgm$1108.invoke(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:247)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148)
	at uk.co.cacoethes.lazybones.config.Configuration.storeSettings(Configuration.groovy:131)
	at uk.co.cacoethes.lazybones.config.Configuration$storeSettings$7.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)
	at uk.co.cacoethes.lazybones.commands.ConfigCommand.configAdd(ConfigCommand.groovy:181)
@cbmarcum cbmarcum added the bug Something isn't working label Jan 28, 2023
@cbmarcum cbmarcum self-assigned this Jan 28, 2023
@cbmarcum
Copy link
Owner Author

need to check for the profile directory and create it if needed.

cbmarcum added a commit that referenced this issue Feb 12, 2023
update documentation for new version command
fix create missing user profile on config change
add version command integration tests

Refs: #7, #42
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

1 participant