[{ "resource": "/C:/myself/package main.go", "owner": "_generated_diagnostic_collection_name_#1", "severity": 8, "message": "gopls was not able to find modules in your workspace.\nWhen outside of GOPATH, gopls needs to know which modules you are working on.\nYou can fix this by opening your workspace to a folder inside a Go module, or\nby using a go.work file to specify multiple modules.\nSee the documentation for more information on setting up your workspace:\nhttps://github.com/golang/tools/blob/master/gopls/doc/workspace.md.", "source": "go list", "startLineNumber": 1, "startColumn": 1, "endLineNumber": 1, "endColumn": 13 }]
时间: 2023-08-16 15:10:33 浏览: 112
这是一个关于 gopls 的错误消息,它表示在您的工作空间中找不到模块。当在 GOPATH 之外时,gopls 需要知道您正在使用哪些模块。您可以通过将工作空间打开到 Go 模块中的文件夹,或者使用 go.work 文件来指定多个模块来解决此问题。请参阅文档以获取有关设置工作空间的更多信息:https://github.com/golang/tools/blob/master/gopls/doc/workspace.md。
相关问题
/bin/sh: 1: ../../catkin_generated/env_cached.sh: Permission denied
这个错误通常表示你在运行脚本时没有执行权限。你可以尝试使用`chmod +x`命令给脚本添加执行权限,例如:
```
chmod +x ../../catkin_generated/env_cached.sh
```
然后再次运行脚本看看是否能够执行成功。如果问题仍然存在,可能是由于其他权限或路径问题导致的,请提供更多的上下文信息,以便我能够更好地帮助你。
翻译 { "resource": "/C:/Users/lenovo/WeChatProjects/miniprogram-2/app.json", "owner": "_generated_diagnostic_collection_name_#0", "code": "768", "severity": 4, "message": "Unable to load schema from 'https://dldir1.qq.com/WechatWebDev/editor-extension/
这段代码是指在路径为 "C:/Users/lenovo/WeChatProjects/miniprogram-2/app.json" 的资源中,无法从"https://dldir1.qq.com/WechatWebDev/editor-extension/"加载模式。这可能是因为该模式不存在或无法访问。错误代码为768,严重程度为4。
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)