Coder Social home page Coder Social logo

Comments (10)

inmysocks avatar inmysocks commented on July 17, 2024

I am going to blame this one on windows and it inability to handle file paths correctly. I have changed it to use the absolute path to the folder which may fix the problem, if not try doing this and see if it given an error, if so it may be a problem with the tiddlywiki core.

in the PluginDevelopment folder type

node ./TiddlyWiki5/tiddlywiki.js ./test/wiki --init empty

it should create an empty wiki in the folder test/wiki, if not we should fix that in the core.

from plugindevelopment.

kookma avatar kookma commented on July 17, 2024

Okay, I clone the repo again and will back to you

from plugindevelopment.

kookma avatar kookma commented on July 17, 2024

May I ask to create Wikis folder like Plugins Themes , ... folder!
I still get error on nested folder! I mean first plugin needs to create like Wikis/author/

from plugindevelopment.

inmysocks avatar inmysocks commented on July 17, 2024

Windows and its weird pathing is going to be the death of me.
The script is updated to create the folder.

But I still would like to know if this command creates a wiki or not:

node ./TiddlyWiki5/tiddlywiki.js ./test/wiki --init empty

from plugindevelopment.

kookma avatar kookma commented on July 17, 2024

Jed,

I checked both using Powershell, bash (from Msys2), cmd.exe and get the below error

Mohammad@N550JK  /c/TW/JDLIB/PluginDevelopment
$ node ./TiddlyWiki5/tiddlywiki.js ./test/wiki --init empty
Error: Error creating directory './test/wiki'

Seems nested directory cannot be created by node.js

from plugindevelopment.

inmysocks avatar inmysocks commented on July 17, 2024

Then the problem is with node and windows, I don't know if there is a fix or not.

Creating wikis like that works on both OS X and linux.
Pathing on windows is strange so people run into a lot of problems on windows that I have no way of finding.

from plugindevelopment.

kookma avatar kookma commented on July 17, 2024

Jed,

In MakePlugin.sh you have used the below code

if [ -d "$PLUGINFOLDER/$AUTHOR" ]; then
  mkdir "$PLUGINFOLDER/$AUTHOR/$PLUGINNAME"
else
  mkdir "$PLUGINFOLDER/$AUTHOR"
  mkdir "$PLUGINFOLDER/$AUTHOR/$PLUGINNAME"
fi

What do you think if a similar script is used for making test wiki!

A comment can be added to explain it is because of Windows issue.

from plugindevelopment.

inmysocks avatar inmysocks commented on July 17, 2024

If you want to make pull request feel free, otherwise I think that the problem should be handled in the tiddlywiki core.

from plugindevelopment.

kookma avatar kookma commented on July 17, 2024

Good,
I make a PR here and will submit issue on Tiddlywiki.com!

The documentation is now very useful! Thank you for all your efforts.

from plugindevelopment.

kookma avatar kookma commented on July 17, 2024

Hi @inmysocks
It was found the error on nested directory is because of bash 4.4.23 (from msys2) on Windows 10!
So, I think there is no need to make any change to the repo!

Thank you again Jed
I will announce the repo on Google Forum!

from plugindevelopment.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.