After updating my codemirror/lang-sql from 6.5.0 to 6.6.4 (really need the auto-complete quotations you added thanks by the way for that). I am getting the following error:
Cannot read properties of undefined (reading ‘deserialize’):
setProp node_modules/@lezer/lr/dist/index.js:1481
1478 | for (let i = 0; i < nodeNames.length; i++)
1479 | nodeProps.push([]);
1480 | function setProp(nodeID, prop, value) {>
1481 | nodeProps[nodeID].push([prop, prop.deserialize(String(value))]);
I have tried updating all my dependencies to the latest versions:
Which version of @lezer/common are you seeing when you run npm ls -a? This sounds like it’s using a pre-1.2 version (though @codemirror/lang-sql depends on 1.2 now)
Thanks, I am seeing the dependancies all using 1.2.1 after installing with npm rather than yarn. It causes a bunch of other problems, but not related to these packages. Thanks for helping me get to the bottom of the version issues.
Ok I’ve resolved the other package issues so I am now using version 6.6.4 of the @codemirror/lang-sql package but the autocomplete is still not adding the double quotes.
I don’t think that feature does what you think it does. It’ll quote table names from object keys, but for completion objects that you directly provide, you’ll have to do the quoting yourself.
Oh I see, I can just add a function to pre-process the schema I am fetching and add the quotes in myself for the columns, thank you so much for your assistance!