# VS Code documentation in \*\*\* settings \*\*\* section throws mutex error

**URL:** <https://forum.robotframework.org/t/vs-code-documentation-in-settings-section-throws-mutex-error/4548>\
**Category:** Robot Framework\
**Created:** [19 August 2022 07:35 UTC](https://forum.robotframework.org/t/vs-code-documentation-in-settings-section-throws-mutex-error/4548 "2022-08-19T07:35:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pZq](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/pzq/32/1800_2.png) [@pZq](https://forum.robotframework.org/u/pZq)\
**Post date:** [19 August 2022 07:35 UTC](https://forum.robotframework.org/t/vs-code-documentation-in-settings-section-throws-mutex-error/4548/1 "2022-08-19T07:35:32Z")

</div>

Hi,

I’m new to robot framework but i noted that .robot or .resource files with a \*\*\* settings \*\*\* section in start of a file with documentation throws this error for me.  
**Error collecting Robocop errors: Unable to get mutex for: c:\users\user.robotframework-ls\specs\v2\769da057\_5.0.1\builtins\xml.libspec after 30 seconds.**

![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/1/16c78e29c5941822ef7e5eb4a2894bbd112a6e59.png)

To get rid of the error, i have to take the documentation descriptions away fully. So if i leave resource definitions only, the error gets away (but only after restarting VS code).

**I use**  
VS Code 1.70.2  
Python 3.10  
**VS extension →** Robot framework language server v.1.0.0 → last updated 17.8.2022 (17th of august).

Am i doing something wrong or do i miss some extension needed ?

---

<div class="post-metadata">

**Author:** ![pZq](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/pzq/32/1800_2.png) [@pZq](https://forum.robotframework.org/u/pZq)\
**Post date:** [19 August 2022 13:21 UTC](https://forum.robotframework.org/t/vs-code-documentation-in-settings-section-throws-mutex-error/4548/2 "2022-08-19T13:21:13Z")

</div>

Ok, seems like documentation removal did not fix the problem. its back again…

---

<div class="post-metadata">

**Author:** ![GLMeece](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/glmeece/32/1553_2.png) [@GLMeece](https://forum.robotframework.org/u/GLMeece)\
**Post date:** [19 August 2022 15:38 UTC](https://forum.robotframework.org/t/vs-code-documentation-in-settings-section-throws-mutex-error/4548/3 "2022-08-19T15:38:21Z")

</div>

I experience this as well. I believe it is the [Robocorp LSP](https://robocorp.com/docs/developer-tools/visual-studio-code/overview) (which, IMO, is generally pretty great) + [Robocop](https://robocop.readthedocs.io/en/stable/). When I hover over the red squiggly line, I (mostly) get this error message:

`Error collecting Robocop errors: 'Variable' object has no attribute 'error'`

I honestly don’t know how to get this error to go away. 😒

---

<div class="post-metadata">

**Author:** ![robinmackaij](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/robinmackaij/32/126_2.png) [@robinmackaij](https://forum.robotframework.org/u/robinmackaij)\
**Post date:** [21 August 2022 18:19 UTC](https://forum.robotframework.org/t/vs-code-documentation-in-settings-section-throws-mutex-error/4548/4 "2022-08-21T18:19:38Z")

</div>

I would suggest creating an issue for this in the GitHub repo for the LSP.

---

<div class="post-metadata">

**Author:** ![pZq](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/pzq/32/1800_2.png) [@pZq](https://forum.robotframework.org/u/pZq)\
**Post date:** [22 August 2022 11:49 UTC](https://forum.robotframework.org/t/vs-code-documentation-in-settings-section-throws-mutex-error/4548/5 "2022-08-22T11:49:31Z")

</div>

**i raised an issue:**

> <https://github.com/robocorp/robotframework-lsp/issues/733>
>
> \*\*Describe the bug\*\*
> 
> In VS CODE -\> .robot or .resource files with a \*\*\* setti…ngs \*\*\* section in start of a file throws this error for me.
> \*\*Error collecting Robocop errors: Unable to get mutex for: c:\\users\\user\\.robotframework-ls\\specs\\v2\\769da057\_5.0.1\\builtins\\xml.libspec after 30 seconds.\*\*
> 
> !\[image\](https://user-images.githubusercontent.com/6633097/185843392-ef2c070d-3dfa-4806-a4b7-bd20b9b8ee96.png)
> 
> At some point it seemed like the error went away when i deleted Documentation from \*\*\* settings \*\*\* section but after a while the error returned.
> 
> Is it missconfiguration of VS code and if so, please suggest what setting i should be looking for to fix it ?
> I understand mutex is some kind of multithreading but thats all i understand about mutex :)
> 
> I use also TFS checkout extension and the files i have open in the folder view are all in a TFS folder -\> Just in case, if that would lead to some sort of problems... But the TFS sync folder is not the one the error states so i think TFS extension is not the issue in this case.
> 
> I tried also to give permissions for that builtin folder for everyone and full permissions but that didn't help either.
> 
> \*\*To Reproduce\*\*
> Just install LSP extension in VS code and make a \*\*\* settings \*\*\* section, maybe some testcase needs to be also be built just some simple.
> 
> \*\*Expected behavior\*\*
> \---\> I think mutex problem should not be seen.
> 
> \*\*Screenshots\*\*
> Screenshot in description.
> 
> \*\*Versions:\*\*
> I use
> Windows 10 pro 10.0.19043 
> VS Code 1.70.2
> Python 3.10.6 on win32
> Robot framework version v5.0.1
> VS extension → Robot framework language server v.1.0.0 → last updated 17.8.2022 (17th of august).
> 
> \*\*Logs\*\*
> Error collecting Robocop errors: Unable to get mutex for: c:\\users\\user\\.robotframework-ls\\specs\\v2\\769da057\_5.0.1\\builtins\\xml.libspec after 30 seconds.
