-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tiddlywikicore-5.3.2.js contains wrong tiddlers #324
Comments
I'm building the external core edition like this:
Or with uglify on the js file:
|
Re the uglify theory, I got the same result with or without the uglify plugin, so I don't think that is the cause. Perhaps the |
IMO they are not wrong. They are uglified. It looks OK to me. |
Bear in mind that there is a slight known issue using Uglify with 5.3.2. It should be resolved after the TiddlyWiki core PR TiddlyWiki/TiddlyWiki5#7895 is merged. |
To elaborate here, there were changes to the way whitespace after pragma is handled by the wikiparser. It's now preserved except in cases when |
when I do the build I do not see this error: git clone https://github.com/Jermolene/TiddlyWiki5 . I had to rename 'tiddlywikicore-5.3.2.min.js' to 'tiddlywikicore-5.3.2.js' |
Just to be sure you've seen this one: TiddlyWiki/TiddlyWiki5#7904 |
I think I was mistaken. Now it looks like the problem goes away if the uglify plugin is not used, as @buggyj found. |
The problem will go away with v5.3.3, but I'll also be pushing a new Uglify version soon which will make an exception for v5.3.2 anyway. |
In case anyone is wondering what the plan is: I'm going to assume this is not causing any major problems on Tiddlyhost currently, and just wait for the upcoming fixes to land. If you are seeing any problem with the external core TW 5.3.2 on Tiddlyhost let me know - I could build and push a non-uglified core js if needed. |
I've released Uglify v1.8.0 which has full support for Tiddlywiki 5.3.2, including support for the anomalous behavior that Tiddlywiki introduced. I recommend migrating to Tiddlywiki 5.3.3 as soon as it releases because the workaround for the core bug means Uglify has to forgo some compression it'd ordinarily want to do. |
Thanks - Pushing a release to Tiddlyhost now. |
Ps, it is perhaps surprising for Tiddlyhost users to notice that tiddler content is different when using an external core TiddlyWiki on Tiddlyhost (due to the uglify). Is there an option for uglify so it compresses the javascript but leaves the content of the shadow tiddlers uncompressed? |
seems to be fixed in v5.3.3 |
Yes. The documentation on how to do that through a NodeJS compile is here. It's the last one described. If you're using the wizard (which I don't think you are), it's just a matter of unchecking the |
But actually, now that I think about it, you probably just want to use the |
I want to do some debugging on #324 and this will be useful.
There are some fixes related to whitespace IIUC. It was suggested that this would fix #324, but actually I'm not sure if that is accurate.
I create a new external core wiki on tiddlyhost and dragged $:/core/ui/SideBar/Open from tiddlywiki.com on to https://testincludecore.tiddlyhost.com/ - imported it then compared - they are different -
The text was updated successfully, but these errors were encountered: