OK, I have replicated the issue.  It has nothing to do with the JSON 
imports or the occasional errors in the JSON.  It is due to the 
tiddlywiki/tiddlyweb plugin in my tiddlywiki.info file.

This script replicates the issue (empty.html is the clean TW dowloaded) as 
simply as I can without any JSON imports - just an init, load and build:

$tests = ( "good", "bad" )

foreach ($test in $tests) {
Remove-Item -Path ".\twtest" -Force -Recurse -ErrorAction "Ignore" # purge 
wikifolder completely
& tiddlywiki twtest --verbose --init
Copy-Item ".\tiddlywiki.$($test).info" -Destination 
.\twtest\tiddlywiki.info -Force # Needed to enabled the filesystem plugin, 
otherwise the load can't save the tiddlers anywhere
# Bring in base template to the nodejs TW
& tiddlywiki twtest --verbose --load empty.html
# Build the single file TW
& tiddlywiki twtest --verbose --build
# Copy the output for comparison
Copy-Item ".\twtest\output\index.html" -Destination ".\$test.html" -Force
}


The only difference between the good and bad .info files is the tiddlyweb 
plugin (which it looks like I don't need for this).

I can't say if this is a bug or what.  When I was initially trying to get 
node to import the JSON, it was saying it was importing but there was 
nothing in the folder, and the exports were empty too.  That's when I added 
the plugins.

Hopefully that helps determine if anything needs to change or what.

Thanks,

Cade

On Wednesday, August 28, 2019 at 9:48:18 AM UTC-5, @TiddlyTweeter wrote:
>
> Its then a serious issue of real substance. I can't replicate it on TW 
> stand alone so can't help.
>
> TT
>
> On Wednesday, 28 August 2019 16:45:18 UTC+2, Cade Roux wrote:
>>
>> It's generated JSON.
>>
>> When you get a JSON error on the command-line, it just gives a JSON error 
>> at a character in the JSON file, but it's not clear how to see what this 
>> affects in TW.  It does make a .tid file with the error in the name in the 
>> tiddlers folder.  I fix the problem, delete that tiddler and re-run the 
>> import without any error.
>>
>> I'm going to try to experiment with increasing subsets of the import.
>>
>> Thanks,
>>
>> Cade
>>
>> On Wednesday, August 28, 2019 at 6:19:28 AM UTC-5, @TiddlyTweeter wrote:
>>>
>>> Cade Roux wrote:
>>>>
>>>> I have imported a lot of JSON tiddlers, sometimes with errors, and I 
>>>> think these must bash something.  Typically, it's something in the JSON 
>>>> that's not escaped properly.
>>>
>>>
>>> Doesn't this answer your own question?
>>>
>>> I never seen a TiddlyWiki JSON EXPORT ever fail on IMPORT.
>>>
>>> *So are you talking about TiddlyWiki created JSON? *OR something else?
>>>
>>> TT
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b19e9f54-205f-4394-8ad7-48fa67cc656f%40googlegroups.com.

Attachment: tiddlywiki.bad.info
Description: Binary data

Attachment: tiddlywiki.good.info
Description: Binary data

Reply via email to