# What does \`Exception: Build system error - indirect recursion detected:\` mean?

**URL:** <https://forum.canton.network/t/what-does-exception-build-system-error-indirect-recursion-detected-mean/1088>\
**Category:** App Development\
**Created:** [August 24, 2020, 5:36pm UTC](https://forum.canton.network/t/what-does-exception-build-system-error-indirect-recursion-detected-mean/1088 "2020-08-24T17:36:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gyorgybalazsi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gyorgybalazsi/32/684_2.png) [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Post date:** [August 24, 2020, 5:36pm UTC](https://forum.canton.network/t/what-does-exception-build-system-error-indirect-recursion-detected-mean/1088/1 "2020-08-24T17:36:04Z")

</div>

```haskell
2020-08-24 17:29:29.94 [ERROR] [LanguageServer] [] 
Unexpected exception on request, please report!
Message: RequestMessage {_jsonrpc = "2.0", _id = IdInt 1083, _method = TextDocumentCodeLens, _params = CodeLensParams {_textDocument = TextDocumentIdentifier {_uri = Uri {getUri = "file:///Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Test.daml"}}, _workDoneToken = Nothing}}
Exception: Build system error - indirect recursion detected:
 Key value 1: OfInterest; 
 Key value 2: GetDependencyInformation; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Utilities.daml
 Key value 3: GetLocatedImports; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Utilities.daml
 Key value 4: GetParsedModule; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Utilities.daml
 Key value 5: GhcSession; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Utilities.daml
 Key value 6: GhcSessionIO; 
 Key value 7: GetParsedModule; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Test.daml
 Key value 8: GhcSession; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Test.daml
 Key value 9: GetDependencyInformation; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Test.daml
 Key value 10: GetLocatedImports; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Test.daml
 Key value 11: GetLocatedImports; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Main.daml
 Key value 12: GetParsedModule; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Main.daml
 Key value 13: GhcSession; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Main.daml
 Key value 14: GetDependencies; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Test.daml
 Key value 15: GetDependencyInformation; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Main.daml
 Key value 16: GenerateRawDalf; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Test.daml
Rules may not be recursive

[Error - 7:29:29 PM] Request textDocument/codeLens failed.
 Message: Build system error - indirect recursion detected:
 Key value 1: OfInterest; 
 Key value 2: GetDependencyInformation; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Utilities.daml
 Key value 3: GetLocatedImports; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Utilities.daml
 Key value 4: GetParsedModule; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Utilities.daml
 Key value 5: GhcSession; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Utilities.daml
 Key value 6: GhcSessionIO; 
 Key value 7: GetParsedModule; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Test.daml
 Key value 8: GhcSession; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Test.daml
 Key value 9: GetDependencyInformation; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Test.daml
 Key value 10: GetLocatedImports; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Test.daml
 Key value 11: GetLocatedImports; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Main.daml
 Key value 12: GetParsedModule; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Main.daml
 Key value 13: GhcSession; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Main.daml
 Key value 14: GetDependencies; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Test.daml
 Key value 15: GetDependencyInformation; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Main.daml
 Key value 16: GenerateRawDalf; /Users/gyorgybalazsi/ven/VEN_DAML/ven-iteration-sixth/daml/Test.daml
Rules may not be recursive

 Code: -32603 

```

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [August 24, 2020, 5:37pm UTC](https://forum.canton.network/t/what-does-exception-build-system-error-indirect-recursion-detected-mean/1088/2 "2020-08-24T17:37:03Z")

</div>

That’s a bug in `daml studio`. We’ve seen this a few times but never managed to reproduce it. If you can reproduce it, please let us know!
