easy-yapi icon indicating copy to clipboard operation
easy-yapi copied to clipboard

[Bug] 一导出Idea就占用cpu99%,直接卡死,怎么回事儿?

Open tiger54910 opened this issue 2 years ago • 5 comments

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Detailed Steps to reproduce the behavior:

  1. Open '...'
  2. Click on '....'
  3. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Logs

  1. Add config:

    http.call.before=groovy:logger.info("call:"+request.url())
    http.call.after=groovy:logger.info("response:"+response.string())
    api.class.parse.before=groovy:logger.info("[api] before parse class:"+it)
    api.class.parse.after=groovy:logger.info("[api] after parse class:"+it)
    api.method.parse.before=groovy:logger.info("[api] before parse method:"+it)
    api.method.parse.after=groovy:logger.info("[api] after parse method:"+it)
    api.param.parse.before=groovy:logger.info("[api] before parse param:"+it)
    api.param.parse.after=groovy:logger.info("[api] after parse param:"+it)
    json.class.parse.before=groovy:logger.info("[json] before parse class:"+it)
    json.class.parse.after=groovy:logger.info("[json] after parse class:"+it)
    json.method.parse.before=groovy:logger.info("[json] before parse method:"+it)
    json.method.parse.after=groovy:logger.info("[json] after parse method:"+it)
    json.field.parse.before=groovy:logger.info("[json] before parse field:"+it)
    json.field.parse.after=groovy:logger.info("[json] after parse field:"+it)
    
  2. Console output easy_api

    • Please set Preferences(Settings) > Other Settings > EasyApi > Common > log to `LOW```
  3. Logs of IDEA:
    The easiest way to find the product log file is the Help menu, the item name would depend on the IDE version and OS:- Show Log in Explorer

    • Show Log in Finder
    • Show Log in Konqueror/Nautilus
    • Reveal Log in Explorer
    • Reveal Log in Finder/Finder/Nautilus

Environment (please complete the following information):

  • OS: [e.g. Windows]
  • IDEA version [e.g. 2021.2.3]
  • Plugin version [e.g. 2.2.9]
  • Yapi version [e.g. 1.9.1]

Demo Code

  1. Fork https://github.com/Earth-1610/spring-demo
  2. Write some code to reproduce this error
  3. Now paste the forked repository hear: https://github.com/xxxx/spring-demo

CheckList

  • [ ] Preferences(Settings) > Other Settings > EasyApi > Intelligent > enable infer

Additional context

Add any other context about the problem here.

tiger54910 avatar Aug 06 '22 03:08 tiger54910

  1. 确认一下是所有接口无法导出还是某些接口无法导出?
  2. 导出时Console有日志输出吗?

tangcent avatar Aug 07 '22 23:08 tangcent

我也遇到了,所有接口都无法导出

yizhishang avatar Aug 12 '22 11:08 yizhishang

😂, 提供一点日志啊

tangcent avatar Aug 13 '22 06:08 tangcent

把类型推断关闭掉试试

chenshun00 avatar Aug 14 '22 02:08 chenshun00

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 24 '22 14:09 stale[bot]