现象

用vscode写java代码的时候突然出现,修复问题点击Ctrl时,输出窗口就打日志,报错Request textDocument/definition failed。

我百度唯一的有用线索就是这个报错有一个关于js的报错也是输出的Request textDocument/definition failed。

有一个回答就是说"这是一个bug,等待解决"。Spring Boot Tools当前的版本是1.8.0.我回退到1.7.0,成功了

错误

[Error - 下午8:28:20] Request textDocument/definition failed.
Error: The received response has neither a result nor an error property.
at handleInvalidMessage (C:\**省略*\.vscode\extensions\pivotal.vscode-spring-boot-1.8.0\node_modules\vscode-jsonrpc\lib\main.js:517:40)
at processMessageQueue (C:\**省略*\.\.vscode\extensions\pivotal.vscode-spring-boot-1.8.0\node_modules\vscode-jsonrpc\lib\main.js:266:17)
at Immediate.setImmediate (C:\**省略*\.0\.vscode\extensions\pivotal.vscode-spring-boot-1.8.0\node_modules\vscode-jsonrpc\lib\main.js:247:13)
at runCallback (timers.js:696:18)
at tryOnImmediate (timers.js:667:5)
at processImmediate (timers.js:649:5)

解决方式

我尝试回退Spring Boot Tools至1.7.0,问题解决了。

我再次升级版本值1.8.0问题浮现

更新日志

## 2019-06-21 (4.3.0 RELEASE)
* *(Spring Boot)* improvement: project classpath notifications now happen in batch on startup to further optimize performance and job load on the Eclipse side
* *(Spring Boot)* improvement: symbols are now being re-created if dependent types change
* *(Spring Boot)* fixed: Slow code completion takes more than a 1 sec. ([#293](https://github.com/spring-projects/sts4/issues/293 "https://github.com/spring-projects/sts4/issues/293"))
* *(Spring Boot)* fixed: content-assist for Spring XML config files now working again in VS Code and Theia
* *(Spring Boot)* fixed: ClassCast Exception in Boot LS while application.yml file opened in the editor
* *(Spring Boot)* fixed: Anonymous inner type beans don't have boot hints ## 2019-05-24 (4.2.2 RELEASE) * *(all language servers)* performance: additional improvements to language server startup time
* *(Spring Boot)* new: additional fine-grained preferences for Spring XML config file support
* *(Spring Boot)* new: navigation for bean identifiers, bean classes, and property names for Spring XML config files
* *(Spring Boot)* new: content-assist rolled out for many more Spring XML config elements and attributes
* *(Spring Boot)* new: live bean information now showing up in types from class files (when source code is shown) - *VSCode and Theia only at the moment*
* *(Spring Boot)* improvement: hugely improved content-assist for bean class attribute in Spring XML config files (incl. package name proposals and vastly improved performance)
* *(Spring Boot)* improvement: property name content-assist in Spring XML config files now shows proposals from properties defined in supertypes, too
* *(Spring Boot)* improvement: symbol scanning skips output folders now

结语

对于官方的版本也出现这样的bug,我觉得开源也不是良药,有的时候会在生产和工作中带来负面后果。稳定反而更迫切!

vscode点击ctrl键报错Request textDocument/definition failed.的更多相关文章

  1. 报错:Method definition shorthands are not supported by current JavaScript version

    当你在html中使用调用js中的方法时,会出现这行报错: method definition shorthands are not supported by current JavaScript ve ...

  2. python——报错ImportError:DLL load failed with error code -1073741795的解决方式

    python中导入一个包,import cv2总是报错'ImportError:DLL load failed with error code -1073741795',报错形式: 网上找了好久的解决 ...

  3. iOS报错:linker command failed with exit code 1 (use -v to see invocation) 问题解决方式之一

    百度库原版本:3.2.1  更新为:4.2.0,两个库相隔2年时间: 问题i: 更新CocoaPods的同时更新了百度地图库的版本,运行程序报错: linker command failed with ...

  4. php curl报错:417 - Expectation Failed

    当我在post提交的数据增加一段内容后会报错:417 - Expectation Failed. 查资料发现在使用curl做POST时,当post的数据大于1024字节时,curl并不会直接发起pos ...

  5. 配置web pack loader 报错:Module build failed: Error: The node API for `babel` has been moved to `babel-core`.

    报错如下 Module build failed: Error: The node API for `babel` has been moved to `babel-core`. 在我配置loader ...

  6. ssh 报错Host key verification failed 或Ubuntu connect to serve 失败

    ssh 报错Host key verification failed  或Ubuntu connect to serve 失败  通常是因为没有装ssh sudo apt-get install  o ...

  7. webpack报错:Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module 'babel-preset-env' from '...' - Did you mean "@babel/env"?

    webpack报错:Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find mo ...

  8. 单点登录(十)-----遇到问题-----cas启用mongodb验证方式报错com.mongodb.CommandFailureException---Authentication failed

    cas启用mongodb验证方式报错com.mongodb.CommandFailureException---Authentication failed. 完整报错信息: 二月 08, 2017 5 ...

  9. win10 git 报错 Host key verification failed

    从code.aliyun.com切回github 原先的known_hosts里记录的是code.aliyun.com的ip,必须新加一个github的. known_hosts报错Host key ...

随机推荐

  1. 误删Django的model中的表解决办法

    误删Django的model中的表解决办法 1.model里面的表格实际的操作都在migrations文件夹中,里面记录了操作过程,当在database和model中删除表格时要注意初始化数据库时会报 ...

  2. HTML、HTML5重难点

    一.XHTML与HTML的区别 文档结构 XHTML DOCTYPE 是强制性的 <html>中的 XML namespace 属性是强制性的 <html>.<head& ...

  3. 13 JavaScript Array对象&Boolean对象&Math对象&RegExp对象

    万物皆对象,数组是对象,数组可以存储元素,函数,数组等对象 创建数组的三个方式: 常规方式:var myCars = new Array(); 简介方式:var myCars = new Arrray ...

  4. ToString 奇淫技巧

    int和float同样结果 decimal decTemp = 2.1m; Console.WriteLine(decTemp.ToString("#0.00")); //输出2. ...

  5. Lightroom中几个重要名词术语的解释

    Lightroom是照片管理.处理.发布的综合性智能软件,里面有几个重要的专有技术名词,通过我的理解做一个总结: 一.目录(Catalog) 就是Lightroom的数据库,会把用户的照片的信息.照片 ...

  6. Flask - 上下文管理(核心)

    参考 http://flask.pocoo.org/docs/1.0/advanced_foreword/#thread-locals-in-flask https://zhuanlan.zhihu. ...

  7. 查漏补缺之Go的Strings, bytes, runes和字符

    字节遍历,字符遍历 https://play.golang.org/p/DeZcCN9aHXo package main import ( "fmt" "unicode/ ...

  8. C++中%d,%s,%x,%f,%.100f,%的意思

    C++中%d,%s,%x,%f,%.100f,%的意思 标准格式化输出:格式字符有d,o,x,u,c,s,f,e,g等. 格式说明:由“%”和格式字符组成,如%d.%f等. %c用来输出一个字符; % ...

  9. antd组件实现上传证书

  10. 【剑指Offer面试编程题】题目1504:把数组排成最小的数--九度OJ

    题目描述: 输入一个正整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个.例如输入数组{3,32,321},则打印出这三个数字能排成的最小数字为321323. 输入: 输 ...