Drasil icon indicating copy to clipboard operation
Drasil copied to clipboard

ODE info related chunks are suffixed but not added to chunk database automatically

Open jackwyand opened this issue 5 months ago • 0 comments

Spin-off of #4298 (comment)

/ODELibraries.hs and related files have multiple functions adding suffixes to existing chunks, but are not adding them to the corresponding chunk database. This results in an error as nothing will result from searching these new UIDs. Currently this is fixed following the proposal in this comment, however it should be done 'the right way,' in that the new chunks should be added automatically.

These are the functions that have this behaviour:

arrayVecDepVar https://github.com/JacquesCarette/Drasil/blob/f235ebf5027fc446e792b116ce3ff04edf4a2377/code/drasil-code/lib/Data/Drasil/ExternalLibraries/ODELibraries.hs#L302-L306

diffCodeChunk https://github.com/JacquesCarette/Drasil/blob/f235ebf5027fc446e792b116ce3ff04edf4a2377/code/drasil-code/lib/Data/Drasil/ExternalLibraries/ODELibraries.hs#L632-L636

modifiedODESyst https://github.com/JacquesCarette/Drasil/blob/f235ebf5027fc446e792b116ce3ff04edf4a2377/code/drasil-code/lib/Data/Drasil/ExternalLibraries/ODELibraries.hs#L642-L646

(Not in /ODELibraries.hs but is used there nonetheless) listToArray https://github.com/JacquesCarette/Drasil/blob/f235ebf5027fc446e792b116ce3ff04edf4a2377/code/drasil-lang/lib/Drasil/Code/CodeVar.hs#L132-L137

jackwyand avatar Jul 28 '25 14:07 jackwyand