Sunday, September 30, 2018

brew cask를 통한 java upgrade/uninstall시의 "Cask 'java' is unreadable: undefined method `undent' for" 메세지 해결

brew cask upgrade시에 "Cask 'java' is unreadable: undefined method `undent' for"error message.
brew cask upgrade, brew cask uninstall java도 먹히지 않는다.
해결 방법:
.metadata directory내의 java.rb의 끝에 있는 EOS.undent 블럭을 삭제 & 저장.
바로 brew cask uninstall java && brew cask install java
참고로, EOS.undent가 들어간 파일 찾기.
find / -type d -name .metadata
cd #이동. 이동해 보면 디렉토리의 반복이 계속되어 있어 이동하기귀찮음.
웹에서 아래 코드. 실행은... 이미 지운 뒤라 못해 보았다. ㅠㅠ
grep "<<-eos -r="" .="" .undent="" and="" code="" comment="" lines="" locate="" method="" path_from_above="" relative="" search="" the="" undent="" vim="">

No comments: