Comments (10)
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.
Okay, I clone the repo again and will back to you
from plugindevelopment.
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.
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.
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.
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.
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.
If you want to make pull request feel free, otherwise I think that the problem should be handled in the tiddlywiki core.
from plugindevelopment.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugindevelopment.