본문 바로가기
개발/개발 Tool

[Intellij] Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1

by zuzuu 2021. 11. 30.
반응형

인텔리제이에서 yml 파일에 한글 주석이 있을 경우 발생하는 에러

 

1. 파일 위치 : C:/Program Files/JetBrains/IntelliJ IDEA 2021.1.2/bin/idea64.exe.vmoptions

-Dfile.encoding=UTF-8 추가

-Xms128m
-Xmx750m
-XX:ReservedCodeCacheSize=512m
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
-Dfile.encoding=UTF-8

 

2. 인텔리제이에서 Help > Edit Custom VM Options

-Dfile.encoding=UTF-8 추가

-Xms128m
-Xmx2018m
-XX:ReservedCodeCacheSize=512m
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
-Dfile.encoding=UTF-8
-Dconsole.encoding=UTF-8
728x90
반응형

댓글