HDFS源码文件过大,IDEA打开失败解决方法
程序员文章站
2024-01-16 12:15:46
问题现象:hadoop 3.1.0源码文件ClientNamenodeProtocolProtos大小4M+,IDEA打开时加载失败,ClientNamenodeProtocolPB报错找不到类。 问题原因:IDEA默认加载文件大小不超过2500KB,配置项为idea.max.intellisens ......
问题现象:hadoop 3.1.0源码文件clientnamenodeprotocolprotos大小4m+,idea打开时加载失败,clientnamenodeprotocolpb报错找不到类。
--------------------------------------------------------------------------------------------------------------------------------------
问题原因:idea默认加载文件大小不超过2500kb,配置项为idea.max.intellisense.filesize(idea安装目录bin/idea.properties文件)
--------------------------------------------------------------------------------------------------------------------------------------
解决方法:
方法1:
编辑bin/idea.properties, 将其中的idea.max.intellisense.filesize设置为更大的值,比如10m+.
重启生效。
方法2:
打开“help”菜单栏,点击“edit custom properties”,在新生成的idea.properties文件(windows一般在c盘用户目录下),增加选项
idea.max.intellisense.filesize=25000(自行设置该value值),重启生效。
相关配置项参考:
/*------------------------------------------bin/idea.properties--------------------------------------------*/
#---------------------------------------------------------------------
# maximum file size (kilobytes) ide should provide code assistance for.
# the larger file is the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. remove this property or set to very large number if you need
# code assistance for any files available regardless their size.
#---------------------------------------------------------------------
idea.max.intellisense.filesize=99999
# maximum file size (kilobytes) ide should provide code assistance for.
# the larger file is the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. remove this property or set to very large number if you need
# code assistance for any files available regardless their size.
#---------------------------------------------------------------------
idea.max.intellisense.filesize=99999
#---------------------------------------------------------------------
# maximum file size (kilobytes) ide is able to open.
#---------------------------------------------------------------------
idea.max.content.load.filesize=20000
# maximum file size (kilobytes) ide is able to open.
#---------------------------------------------------------------------
idea.max.content.load.filesize=20000