# 10月14号的vscode插件问题

**URL:** <https://taolun.moonbitlang.com/t/topic/990>\
**Category:** 欢迎\
**Tags:** moonbit-ide\
**Created:** [2024 年10 月 16 日 11:53 UTC](https://taolun.moonbitlang.com/t/topic/990 "2024-10-16T11:53:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

作者： ![suiyunonghen](https://taolun.moonbitlang.com/user_avatar/taolun.moonbitlang.com/suiyunonghen/32/593_2.png) [@suiyunonghen](https://taolun.moonbitlang.com/u/suiyunonghen)\
发布日期： [2024 年10 月 16 日 11:53 UTC](https://taolun.moonbitlang.com/t/topic/990/1 "2024-10-16T11:53:50Z")

</div>

![image](https://taolun.moonbitlang.com/uploads/default/original/1X/955f8a9d6bbbb546e0ccde384078953f30b8ffb5.png)  
14号插件全部都是这种说没有方法的错误，实际上这些都是有的，以前都正常，然后就是编译的时候结构体中没有使用声明，直接报错，编译不通过了  
 ![1729079595721(1)](https://taolun.moonbitlang.com/uploads/default/original/1X/d03573b30dab04b60bb3d193da6956bcb6e5759c.png)

---

<div class="post-metadata">

作者： ![ChenYubin](https://taolun.moonbitlang.com/letter_avatar_proxy/v4/letter/c/ee59a6/32.png) [@ChenYubin](https://taolun.moonbitlang.com/u/ChenYubin)\
发布日期： [2024 年10 月 17 日 02:10 UTC](https://taolun.moonbitlang.com/t/topic/990/2 "2024-10-17T02:10:59Z")

</div>

如果你的代码包含这样的编译错误：

```auto
Error (warning): The mutability of field ... is never used

```

这是因为我们近期修复了struct field的可变性没有使用时，编译器诊断没有警告的问题。和局部变量的可变性没有使用的情况类似，这种警告默认被编译器配置为编译错误。

你可以在moon.mod.json中重新将这个诊断配置为warning：

```auto
{
  ...
  "warn-list": "-15+15"
}

```

---

<div class="post-metadata">

作者： ![suiyunonghen](https://taolun.moonbitlang.com/user_avatar/taolun.moonbitlang.com/suiyunonghen/32/593_2.png) [@suiyunonghen](https://taolun.moonbitlang.com/u/suiyunonghen)\
发布日期： [2024 年10 月 17 日 09:50 UTC](https://taolun.moonbitlang.com/t/topic/990/3 "2024-10-17T09:50:59Z")

</div>

目前改了，可以编译过了，但是这个是别人三方包的呢，那不是要改别人的包了？另外一个就是，这个vscode插件那些红色提示说导出内容不存在的问题，目前没法解决吗？

---

<div class="post-metadata">

作者： ![ChenYubin](https://taolun.moonbitlang.com/letter_avatar_proxy/v4/letter/c/ee59a6/32.png) [@ChenYubin](https://taolun.moonbitlang.com/u/ChenYubin)\
发布日期： [2024 年10 月 18 日 03:36 UTC](https://taolun.moonbitlang.com/t/topic/990/4 "2024-10-18T03:36:45Z")

</div>

建议用moon check确认一下代码有没有问题，如果没有问题，可以尝试重启LSP。如果是第三方包无法构建，需要联系这个包的作者，或者fork一份根据自己需要修改
