본문 바로가기

확인5

Go - 문제해결: Error loading workspace: gopls was not able to find modules in your workspace. VSCode에서 go 파일을 열면 다음과 같은 오류와 함께 package main 에 빨간 줄이 생겼다. (해당 오류가 발생해도 go run 은 문제없이 동작한다.) VSCode 하단에 다음과 같은 알림을 확인하였다. Error loading workspace: gopls was not able to find modules in your workspace. When outside of GOPATH, gopls needs to know which modules you are working on. You can fix this by opening your workspace to a folder inside a Go module, or by using a go.work file to specify multip.. 2022. 9. 27.
Git - 로컬 브랜치와 리모트 브랜치 커밋 상태 비교( 브랜치 추적, 그래프 확인 ) 로컬 브랜치와 리모트 브랜치 상태 비교 Github에 신규저장소를 만들고 로컬PC에서 클론하여 처음부터 브랜치간 차이가 어떻게 발생하는지 확인해본다. 그 과정에서 유용하게 사용되는 CLI 명령을 확인해보자. 개발환경 Windows 10 Git for windows Cmder ( Terminal program ) SourceTree ( Git managing tool ) 1. 브랜치 확인 신규생성한 github 저장소를 clone한 후 로컬과 리모트의 상태를 git branch -av명령으로 확인한다. D:\git_test\advanced_javascript (master -> origin) λ git branch -av * master f386d80 Initial commit remotes/origin/.. 2022. 1. 12.
MacOS - JAVA_HOME 환경설정 추가 및 JDK 버전 변경( zsh, bash 구분 ) JAVA_HOME 환경설정 추가 및 JDK 버전 변경 1. 사용 shell 확인  echo $SHELL /bin/zsh bash이면, ~/.bash_profile 또는 ~/.bashrc에 환경변수 등록. zsh이면, ~/.zshenv 또는 ~/.zshrc에 환경변수 등록. 2. 설치 JDK 확인 MacOS에 설치된 JDK는 아래 경로의 java_home을 통해 확인할 수 있다.  /usr/libexec/java_home -V Matching Java Virtual Machines (2): 11.0.13 (x86_64) "Eclipse Temurin" - "Eclipse Temurin 11" /Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home.. 2022. 1. 4.
Python - pip 설치 라이브러리 및 Path 확인, 버전 업데이트 하기 pip 실행 안될 시 pip 실행파일의 환경변수 Path 등록 여부를 확인, 없다면 Python이 설치된 디렉토리의 Scripts 디렉토리까지 Path로 등록하여 준다. python 명령이 실행된다면 python -m pip로 실행한다. pip 설치 라이브러리 확인 C:\>pip list or C:\>python -m pip list Package Version -------------------- ---------- anyio 2.2.0 argon2-cffi 20.1.0 asgiref 3.3.1 astroid 2.4.2 async-generator 1.10 attrs 20.3.0 Babel 2.9.0 backcall 0.2.0 backtrader 1.9.76.123 beautifulsoup4 4.9.3.. 2021. 3. 25.