Study: Software(SW)/SW: Error Bug Fix

    [Error fix] 'Java file outside of source root' 오류 해결

    # 문제 상황 외부의 Spring 프로젝트를 불러와 실행하려는데 application.java가 실행할 수 없는 상태가 되어 있어 빌드는 할 수 있으나 실행할 수 가 없다. # 해결 방안 Open Project Structure. Select Modules in Project Settings in left pane. Click on the folder in which your Java files (showing file outside of source root) are present. Then Select Sources from Mark as: option. Apply the same steps for multiple folders. # 참고 [StackOverFlow]: Java file outside..

    [Error fix] Mac에서 ~/.bashrc 적용이 안되는 오류 해결(feat. zsh)

    # 문제 상황 Mac에서 ~/.bashrc를 수정 후 적용하는 과정에서 source ~/.bashrc로 당장에는 적용이 되었으나, 껐다가 킬경우 적용이 안되는 문제가 발생했다. # 해결 방안 기본 쉘 스크립트에 대한 개념을 알고있음에도 생각을 안해서 발생한 문제...(반성하자) 해결 과정은... Mac의 기본 터미널이 'zsh'라는 점이었으며, 따라서 bashrc에 해준 모든 과정을 zsh에 입력해주면 해결되는 문제였다. Mac이 zsh 쉘을 사용한다는 것을 알고는 있었지만, 정말 이런 실수를 하다니 부끄럽다. + 추가 또 깜빡하고 ~/.bashrc에 환경설정을 입력하는 문제를 방지하고자 ~/.profile이나 ~/.zshrc에 다음을 입력해두면 해당 작업 수행시 bashrc도 실행시켜준다. if [ -..

    [Error fix] 'no matching manifest for linux/arm64/v8 in the manifest list entries' 오류 해결 (feat. Docker AppleSilicon/M1)

    # 문제 상황 % docker-compose up -d Pulling elasticsearch (elasticsearch:7.5.0)... 7.5.0: Pulling from library/elasticsearch ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries docker-compose로 elastic-search를 띄우는 과정에서, 위와 같이 linux/arm64/v8 에 해당하는 manifest가 없다는 ERROR 메시지가 발생하였다. # 해결 방안 아래와 같이 'platform: linux/x86_64' 를 명시하여 해결할 수 있습니다. version: '3.3' services: elasticsearch: p..

    [Error fix] 'fatal: refusing to merge unrelated histories' git 오류 해결

    # 문제 상황 로컬 저장소에 있는 프로젝트를 깃허브 사이트를 통해 만든 저장소로 push 하는 경우에 다음과 같은 메시지가 떴다. % git pull origin master From https://github.com/DrawingProcess/docker-compose * branch master -> FETCH_HEAD fatal: refusing to merge unrelated histories # 해결 방안 push 전에 먼저 pull을 해서 프로젝트를 병합해 주어야 한다. refusing to merge unrelated histories 그런데 pull을 실행시켰는데, 위와 같은 오류와 함께 진행되지 않는다면? 다음의 명령어를 실행시켜준다. % git pull origin --allow-un..

    [Error fix] 'zsh: command not found: code' 오류 해결 (feat. 특정 폴더에서 VSCode 실행하기)

    # 문제 상황 특정 폴더에서 Visual Studio Code 를 실행시키기 위한 명령어를 실행시켰으나 다음과 같은 오류가 발생하며 실행되지 않는다. $ code . zsh: command not found: code # 해결 방안 터미널에서 비주얼 스튜디오 코드가 안 열릴때, 명령어를 찾을 때 사용하는 PATH에 code가 등록이 안돼서 생긴 일이다. 방법1. Visual Studio Code에서 Path 등록하기 Visual Studio Code 열기 Command Palette열기 (Show All Commands 단축키 Mac : cmd + shift + p / window : ctr + shift + p) Shell Command: Install 'code' command in PATH 입력 터..