[tw5] Re: Tiddlywiki file suddently corrupted on save (commas missing in TW inner JSON file)

2021-10-30 Thread Eric N
FYI, in order to fix my issue, i.e. to overcome the TW's "match" vs 
Eucaly's "match" name conflit mentioned by Mario, here is what it did. 
Might be useful to anyone willing a have a table of content per tiddler

1/ create a new tiddler called $:/core/modules/filters/matcheucaly.js
2/ set type as application/javascript, and field module-type as 
filteroperator
3/ copy paste everything from http://eucaly-tw5.tiddlyspot.com/#MatchFilter 
's $:/core/modules/filters/match.js tiddler into the above tiddler
4/ replace exports.match = ... by exports.matcheucaly = ...
5/ import toc tiddler from http://tidtoc.tiddlyspot.com/#GettingStarted
6/ replace match by matcheucaly in the imported toc tiddler
7/ save, restart
8/ and tada! The TOC per tiddler by Tobias Beer is working again :)

Thanks for all the help,
Eric

On Saturday, October 30, 2021 at 5:33:02 PM UTC+4 Eric N wrote:

> Thanks Mario, I understand better why it wasn't working. 
> And indeed, I am very happy I could save my data !!
>
> On Saturday, October 30, 2021 at 5:25:15 PM UTC+4 PMario wrote:
>
>> It's probably the "match" filter operator that causes the problems. TW 
>> implemented it's own "match" with V5.1.20 and the old plugin probably 
>> overwrites it. 
>> IMO you are lucky, that it didn't "brick" the whole system. ...
>>
>> The "match" operator is used by the 
>> $:/core/templates/store.area.template.html which is responsible to save 
>> the tiddler store. ... Just a guess, but there may be the problem. .. 
>>
>> -mario
>>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b876cb52-0129-4a22-89be-24454bae9d84n%40googlegroups.com.


[tw5] Re: Tiddlywiki file suddently corrupted on save (commas missing in TW inner JSON file)

2021-10-30 Thread Eric N
Thanks Mario, I understand better why it wasn't working. 
And indeed, I am very happy I could save my data !!

On Saturday, October 30, 2021 at 5:25:15 PM UTC+4 PMario wrote:

> It's probably the "match" filter operator that causes the problems. TW 
> implemented it's own "match" with V5.1.20 and the old plugin probably 
> overwrites it. 
> IMO you are lucky, that it didn't "brick" the whole system. ...
>
> The "match" operator is used by the 
> $:/core/templates/store.area.template.html which is responsible to save 
> the tiddler store. ... Just a guess, but there may be the problem. .. 
>
> -mario
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2d87cced-dcdb-4d7b-8b77-bd0474984de7n%40googlegroups.com.


[tw5] Re: Tiddlywiki file suddently corrupted on save (commas missing in TW inner JSON file)

2021-10-30 Thread PMario
It's probably the "match" filter operator that causes the problems. TW 
implemented it's own "match" with V5.1.20 and the old plugin probably 
overwrites it. 
IMO you are lucky, that it didn't "brick" the whole system. ...

The "match" operator is used by the 
$:/core/templates/store.area.template.html which is responsible to save the 
tiddler store. ... Just a guess, but there may be the problem. .. 

-mario

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/535ad9d8-7687-479f-b577-596e6f401daan%40googlegroups.com.


[tw5] Re: Tiddlywiki file suddently corrupted on save (commas missing in TW inner JSON file)

2021-10-30 Thread strikke...@gmail.com
http://eucaly-tw5.tiddlyspot.com/ list matchfilter as *Old Plugins (not 
recommanded). *In a tab below is some explanation of changes in support of 
regexp.

On Saturday, October 30, 2021 at 8:53:17 AM UTC+2 Eric N wrote:

> Hi Jeremy, 
>
> thanks for your answer it was very helpful !!
>
> From your email I understood that my problem could come from a plugin or a 
> javascript module.
>
> I first tried to uninstall all the modules but that didn't help. So I 
> imported all my data (i.e. the tiddlers that I am the creator of) into a 
> fresh empty TW, and I imported the plugins one by one. Doing so, I found 
> the one that broke my TW. Following the instructions on 
> http://tidtoc.tiddlyspot.com/#GettingStarted:
> - install matchfilter from http://eucaly-tw5.tiddlyspot.com/#MatchFilter
> - then drag to my TW the toc snippet from 
> http://tidtoc.tiddlyspot.com/#GettingStarted
>
> I've double checked, tried to import other modules, and my TW is working 
> well, as long as I don't import the two elements above.
>
> From my side, the problem is thus solved.
>
> But if this needs to be investigated further, I"ll be happy to help.
>
> Best,
> Eric
>
> On Friday, October 29, 2021 at 9:29:59 PM UTC+4 jeremy...@gmail.com wrote:
>
>> Hi Eric,
>>
>> Thanks for the detailed report. There is some conditional logic in the 
>> JSON tiddler output template to handle including a comma before every 
>> tiddler except the first. It seems that that logic has got corrupted, but 
>> it's not immediately obvious how.
>>
>> Are you using any TW plugins? Does the wiki include any JavaScript 
>> modules (ie tiddlers with type "application/javascript")?
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>> On Friday, October 29, 2021 at 4:19:43 PM UTC+1 Eric N wrote:
>>
>>> Hi all,
>>>
>>> Today I opened my TW file to work on it, and it was blank. Last time I 
>>> used it it was perfect.
>>>
>>> I tried to import that broken file into a fresh empty TW: error message 
>>> saying that the JSON file was broken, "missing , or ]".
>>>
>>> So I checked the file and I had approx 100 instances of "}{" instead of 
>>> "},{". Weird.
>>>
>>> Fixed them all, then I could open the file again and retrieved my work. 
>>> BUT… I added a new simple tiddler, and saved, and the file got broken 
>>> again. Was back with my 100 "}{".
>>>
>>> Tried to import the fixed file into a fresh empty TW, and add a simple 
>>> tiddler then saved: got a broken TW file with 100 "}{".
>>>
>>> Does anyone knows what is happening ?
>>>
>>> Versions:
>>> - MacOS 11.6
>>> - Firefox 93.0
>>> - TW 5.2.0
>>>
>>> Best,
>>> Eric
>>>
>>>
>>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/137fe3b4-8754-4b6b-b97d-f5155e87377an%40googlegroups.com.


[tw5] Re: Tiddlywiki file suddently corrupted on save (commas missing in TW inner JSON file)

2021-10-30 Thread Eric N
Hi Jeremy, 

thanks for your answer it was very helpful !!

>From your email I understood that my problem could come from a plugin or a 
javascript module.

I first tried to uninstall all the modules but that didn't help. So I 
imported all my data (i.e. the tiddlers that I am the creator of) into a 
fresh empty TW, and I imported the plugins one by one. Doing so, I found 
the one that broke my TW. Following the instructions on 
http://tidtoc.tiddlyspot.com/#GettingStarted:
- install matchfilter from http://eucaly-tw5.tiddlyspot.com/#MatchFilter
- then drag to my TW the toc snippet from 
http://tidtoc.tiddlyspot.com/#GettingStarted

I've double checked, tried to import other modules, and my TW is working 
well, as long as I don't import the two elements above.

>From my side, the problem is thus solved.

But if this needs to be investigated further, I"ll be happy to help.

Best,
Eric

On Friday, October 29, 2021 at 9:29:59 PM UTC+4 jeremy...@gmail.com wrote:

> Hi Eric,
>
> Thanks for the detailed report. There is some conditional logic in the 
> JSON tiddler output template to handle including a comma before every 
> tiddler except the first. It seems that that logic has got corrupted, but 
> it's not immediately obvious how.
>
> Are you using any TW plugins? Does the wiki include any JavaScript modules 
> (ie tiddlers with type "application/javascript")?
>
> Best wishes
>
> Jeremy
>
>
> On Friday, October 29, 2021 at 4:19:43 PM UTC+1 Eric N wrote:
>
>> Hi all,
>>
>> Today I opened my TW file to work on it, and it was blank. Last time I 
>> used it it was perfect.
>>
>> I tried to import that broken file into a fresh empty TW: error message 
>> saying that the JSON file was broken, "missing , or ]".
>>
>> So I checked the file and I had approx 100 instances of "}{" instead of 
>> "},{". Weird.
>>
>> Fixed them all, then I could open the file again and retrieved my work. 
>> BUT… I added a new simple tiddler, and saved, and the file got broken 
>> again. Was back with my 100 "}{".
>>
>> Tried to import the fixed file into a fresh empty TW, and add a simple 
>> tiddler then saved: got a broken TW file with 100 "}{".
>>
>> Does anyone knows what is happening ?
>>
>> Versions:
>> - MacOS 11.6
>> - Firefox 93.0
>> - TW 5.2.0
>>
>> Best,
>> Eric
>>
>>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0090ed6e-c9aa-4963-a576-28b329840d0dn%40googlegroups.com.


[tw5] Re: Tiddlywiki file suddently corrupted on save (commas missing in TW inner JSON file)

2021-10-29 Thread Jeremy Ruston
Hi Eric,

Thanks for the detailed report. There is some conditional logic in the JSON 
tiddler output template to handle including a comma before every tiddler 
except the first. It seems that that logic has got corrupted, but it's not 
immediately obvious how.

Are you using any TW plugins? Does the wiki include any JavaScript modules 
(ie tiddlers with type "application/javascript")?

Best wishes

Jeremy


On Friday, October 29, 2021 at 4:19:43 PM UTC+1 Eric N wrote:

> Hi all,
>
> Today I opened my TW file to work on it, and it was blank. Last time I 
> used it it was perfect.
>
> I tried to import that broken file into a fresh empty TW: error message 
> saying that the JSON file was broken, "missing , or ]".
>
> So I checked the file and I had approx 100 instances of "}{" instead of 
> "},{". Weird.
>
> Fixed them all, then I could open the file again and retrieved my work. 
> BUT… I added a new simple tiddler, and saved, and the file got broken 
> again. Was back with my 100 "}{".
>
> Tried to import the fixed file into a fresh empty TW, and add a simple 
> tiddler then saved: got a broken TW file with 100 "}{".
>
> Does anyone knows what is happening ?
>
> Versions:
> - MacOS 11.6
> - Firefox 93.0
> - TW 5.2.0
>
> Best,
> Eric
>
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9e05208c-6888-4a68-b588-9ce750f7d22en%40googlegroups.com.