美文网首页程序员thingsboard
解决 thingsboard在 idea 报Cannot res

解决 thingsboard在 idea 报Cannot res

作者: 永和包仔 | 来源:发表于2022-02-21 16:57 被阅读0次

    本人idea 版本为 2021.1,顺利编译 thingsboard 打开进行源码阅读时,发现报 Cannot resolve symbol 'TransportProtos',如下图:


    image.png

    解决方式:打开idea菜单: File->setting->plugins 搜索 proto*, 安装 protocol Buffer Linter插件, 并重启

    image.png

    重启后,又出一个问题:

     The file size(3.67 MB) exceeds the configured limit(2.56 MB). Code insight features are not available
    

    如图:


    image.png

    解决方式:
    打开idea 的路径,找到 bin 下的 idea.properties 配置文件, 记事本打开,搜索 idea.max.intellisense.filesize将值修改更大一些, 再重启idea

    # Maximum file size (in KiB) 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 of their size.
    #---------------------------------------------------------------------
    idea.max.intellisense.filesize=5000
    
    image.png

    相关文章

      网友评论

        本文标题:解决 thingsboard在 idea 报Cannot res

        本文链接:https://www.haomeiwen.com/subject/javglrtx.html