为IDEA配置frida智能提示出现的小问题

ps:为IDEA配置frida智能提示教程:https://blog.csdn.net/freeking101/article/details/112634649

如题,最近在为IDEA配置frida智能提示的时候出现了一个小问题:

D:\git\frida-tsplugin>npm run compile

> frida-tsplugin@0.5.0 compile
> tsc -p .

src/index.ts:65:25 - error TS2554: Expected 7 arguments, but got 6.

65             return tsLS.getCompletionEntryDetails(fileName, position, name, options, source, pref);
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/tsserverlibrary.d.ts:5887:227
    5887         getCompletionEntryDetails(fileName: string, position: number, entryName: string, formatOptions: FormatCodeOptions | FormatCodeSettings | undefined, source: string | undefined, preferences: UserPreferences | undefined, data: CompletionEntryData | undefined): CompletionEntryDetails | undefined;
                                                                                                                                                                                                                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    An argument for 'data' was not provided.


Found 1 error in src/index.ts:65

这明显是传入参数不足,还差一个参数没有传入,于是我就去找index.ts的源码,根据这段错误提示:

node_modules/typescript/lib/tsserverlibrary.d.ts:5887:227
    5887         getCompletionEntryDetails(fileName: string, position: number, entryName: string, formatOptions: FormatCodeOptions | FormatCodeSettings | undefined, source: string | undefined, preferences: UserPreferences | undefined, data: CompletionEntryData | undefined): CompletionEntryDetails | undefined;

发现了,还差一个参数,可以用undefined来代替,于是将最后一个参数添加了上去,问题顺利解决。
在这里插入图片描述
上面这个D:\git是我自己创建的文件夹
在这里插入图片描述
重新运行 npm run compile成功!
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值