jow- / ucode

JavaScript-like language with optional templating
ISC License
87 stars 24 forks source link

ctx.changes('system') does not load configuration into cursor #188

Closed pony1k closed 4 months ago

pony1k commented 4 months ago

Hi!

Simple example:

import { cursor } from 'uci';

let ctx = cursor();
//ctx.get('system','a','a');
ctx.changes('system');
let name = ctx.add('system', 'foo');
print(name+'\n');

It prints null, unless the line ctx.get('system','a','a'); is uncommented. The documentation states that the requested configuration is implicitly loaded if it not already loaded into the cursor.

ucode version: 2023-11-07-a6e75e02-1