{"action":"created","issue":{"url":"https://api.github.com/repos/sdkman/sdkman-cli/issues/425","repository_url":"https://api.github.com/repos/sdkman/sdkman-cli","labels_url":"https://api.github.com/repos/sdkman/sdkman-cli/issues/425/labels{/name}","comments_url":"https://api.github.com/repos/sdkman/sdkman-cli/issues/425/comments","events_url":"https://api.github.com/repos/sdkman/sdkman-cli/issues/425/events","html_url":"https://github.com/sdkman/sdkman-cli/issues/425","id":155691312,"number":425,"title":"After installing the grails, flush candidates and restart, then it is not found","user":{"login":"rbatllet","id":3993987,"avatar_url":"https://avatars.githubusercontent.com/u/3993987?v=3","gravatar_id":"","url":"https://api.github.com/users/rbatllet","html_url":"https://github.com/rbatllet","followers_url":"https://api.github.com/users/rbatllet/followers","following_url":"https://api.github.com/users/rbatllet/following{/other_user}","gists_url":"https://api.github.com/users/rbatllet/gists{/gist_id}","starred_url":"https://api.github.com/users/rbatllet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbatllet/subscriptions","organizations_url":"https://api.github.com/users/rbatllet/orgs","repos_url":"https://api.github.com/users/rbatllet/repos","events_url":"https://api.github.com/users/rbatllet/events{/privacy}","received_events_url":"https://api.github.com/users/rbatllet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-19T09:25:25Z","updated_at":"2016-05-19T13:55:55Z","closed_at":null,"body":"I'm using `Sdkman 4.0.35`. I've installed the grails framework with it but when I flush candidates and restart my mac laptop .... the grails cannot be found anymore.\r\n\r\n```\r\n$ sdk install grails 2.5.0\r\n\r\nDownloading: grails 2.5.0\r\n\r\nHang tight, this could take a while...\r\n\r\nInstalling: grails 2.5.0\r\n\r\nDone installing!\r\n\r\nDo you want grails 2.5.0 to be set as default? (Y/n): Y\r\n```\r\nThen, flush candidates:\r\n\r\n```\r\n$ sdk flush candidates\r\n```\r\n\r\nWhen I restart the laptop:\r\n```\r\n$ grails\r\n-bash: grails: command not found\r\n```\r\n```\r\n$ sdk list grails\r\n\r\nStop! grails is not a valid candidate.\r\n```\r\n\r\nBut, it exists:\r\n\r\n```\r\n$ pwd\r\n/Users/user/.sdkman/candidates/grails\r\n\r\n$ ls\r\n2.5.0\tcurrent\r\n```\r\n\r\nI'm using `java version \"1.8.0_92\"`\r\n\r\n`Note`: If I flush candidates and I don't restart the laptop, the grails still can be used."},"comment":{"url":"https://api.github.com/repos/sdkman/sdkman-cli/issues/comments/220331498","html_url":"https://github.com/sdkman/sdkman-cli/issues/425#issuecomment-220331498","issue_url":"https://api.github.com/repos/sdkman/sdkman-cli/issues/425","id":220331498,"user":{"login":"marc0der","id":144390,"avatar_url":"https://avatars.githubusercontent.com/u/144390?v=3","gravatar_id":"","url":"https://api.github.com/users/marc0der","html_url":"https://github.com/marc0der","followers_url":"https://api.github.com/users/marc0der/followers","following_url":"https://api.github.com/users/marc0der/following{/other_user}","gists_url":"https://api.github.com/users/marc0der/gists{/gist_id}","starred_url":"https://api.github.com/users/marc0der/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marc0der/subscriptions","organizations_url":"https://api.github.com/users/marc0der/orgs","repos_url":"https://api.github.com/users/marc0der/repos","events_url":"https://api.github.com/users/marc0der/events{/privacy}","received_events_url":"https://api.github.com/users/marc0der/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T13:55:55Z","updated_at":"2016-05-19T13:55:55Z","body":"No need to do a flush candidates unless we introduce a new candidate. Also, never need to restart a laptop, opening a new shell should do.\r\n\r\nHaving said that, it is weird behaviour for it not to find grails. Can you try doing the following for me please?\r\n\r\n`$ sdk default grails 2.5.0`\r\n\r\nIf that doesn't work, can you take a look at the content of the 2.5.0 folder? You should see the contents of the sdk in there with bin folder:\r\n\r\n\r\n```ls -lah ~/.sdkman/candidates/grails/2.5.0/bin`"}}