Skip to content
ChartDeck ChartScript docs Account Open the terminal

CS4103

error Scripts link each other in a circle: path.

#What it means

Scripts link each other in a circle (the message shows the chain): A reads B, and B, directly or through others, reads A. A script that shares values must run before the scripts that read them, so in a circle no script can run first. A circle is found when you save, not while you type.

#Typical cause

  • Two scripts that each read a value of the other.

#How to fix it

Break the circle. Move what both need into one script that both link, or, if it is a calculation, into a library that both import. See Linking scripts.

#Example

It needs two or more saved scripts that link each other, which a single script cannot show.

  • CS4102 — A script cannot link itself (path).
  • CS4107 — Links go more than max scripts deep: path.
  • CS4002 — Libraries import each other in a circle: path.

The ChartScript documentation is in English for now; translations will follow.