vscode点击ctrl键报错Request textDocument/definition failed.
现象
用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.的更多相关文章
- 报错:Method definition shorthands are not supported by current JavaScript version
当你在html中使用调用js中的方法时,会出现这行报错: method definition shorthands are not supported by current JavaScript ve ...
- python——报错ImportError:DLL load failed with error code -1073741795的解决方式
python中导入一个包,import cv2总是报错'ImportError:DLL load failed with error code -1073741795',报错形式: 网上找了好久的解决 ...
- 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 ...
- php curl报错:417 - Expectation Failed
当我在post提交的数据增加一段内容后会报错:417 - Expectation Failed. 查资料发现在使用curl做POST时,当post的数据大于1024字节时,curl并不会直接发起pos ...
- 配置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 ...
- ssh 报错Host key verification failed 或Ubuntu connect to serve 失败
ssh 报错Host key verification failed 或Ubuntu connect to serve 失败 通常是因为没有装ssh sudo apt-get install o ...
- 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 ...
- 单点登录(十)-----遇到问题-----cas启用mongodb验证方式报错com.mongodb.CommandFailureException---Authentication failed
cas启用mongodb验证方式报错com.mongodb.CommandFailureException---Authentication failed. 完整报错信息: 二月 08, 2017 5 ...
- win10 git 报错 Host key verification failed
从code.aliyun.com切回github 原先的known_hosts里记录的是code.aliyun.com的ip,必须新加一个github的. known_hosts报错Host key ...
随机推荐
- The Last Puzzle ZOJ - 3541
题目链接 本题也是区间dp,贪心可证,每一次出发必定是从端点,否则必然有重复,不会是最小值,那我们可以设dpi,j,0/1,0代表从左端点出发,1代表从右端点,因为每次都是从端点出发,状态方程为 dp ...
- ios中为视图添加圆角
1.使用 layer设置指定圆角 或者设定一个或几个圆角 码修 关注 2017.04.20 19:03* 字数 107 阅读 656评论 0喜欢 0 由于项目中需要给按钮左下 和左上加圆角,我司可爱的 ...
- VIM 练级
https://coolshell.cn/articles/5426.html
- 吴裕雄--天生自然TensorFlow2教程:输出方式
sigmoid out' = sigmoid(out) # 把输出值压缩在0-1 import tensorflow as tf a = tf.linspace(-6., 6, 10) a tf.si ...
- vs code 本地调试配置
{ "name": "使用本机 Chrome 调试", "type": "chrome", "request& ...
- CPD
CPD,Cost per day的缩写,意思是按天收费,是一种广告合作方式.在实际的广告合作中根据行业不同还包括Cost per Download的缩写含义,意思是依据实际下载量收费.
- 「CF126B」Password
题目描述 给定一个字符串 \(S\),我们规定一个字符串 \(P\) 是可行解,\(P\) 需要满足: \(P\) 是 \(S\) 的前缀 \(P\) 是 \(S\) 的后缀 \(P\) 出现在 \( ...
- Scrapy 常用的shell执行命令
1.在任意系统下,可以使用 pip 安装 Scrapy pip install scrapy/ 确认安装成功 >>> import scrapy >>> scrap ...
- 吴裕雄 Bootstrap 前端框架开发——Bootstrap 按钮:让按钮看起来像个链接 (仍然保留按钮行为)
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> ...
- mybatis注解基础使用
一.创建Maven项目 代码:pom.xml <?xml version="1.0" encoding="UTF-8"?> <projec ...