Comments (8)
Sorry for late reply, I was traveling some time ago and just came back
from gitbook-plugin-uml.
Is anyone here?
If this is not an issue, please close this.
Thanks.
from gitbook-plugin-uml.
I tried to reproduce the problem, but found it strange.
The order of my execution commands is as follows:
$ npm -v
6.13.4
$ node -v
v12.9.1
$ uname -a
Linux t480 5.14.5-gentoo-x86_64 #1 SMP Fri Sep 17 22:51:55 CST 2021 x86_64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz GenuineIntel GNU/Linux
And I build up a test environment:
$ npm install honkit --save-dev
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN saveError ENOENT: no such file or directory, open '/home/vowstar/Projects/2020/honkit/cjk_nested_test/package.json'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/home/vowstar/Projects/2020/honkit/cjk_nested_test/package.json'
npm WARN cjk_nested_test No description
npm WARN cjk_nested_test No repository field.
npm WARN cjk_nested_test No README data
npm WARN cjk_nested_test No license field.
+ [email protected]
added 316 packages from 340 contributors and audited 833 packages in 38.318s
14 packages are looking for funding
run `npm fund` for details
found 224 vulnerabilities (82 low, 64 moderate, 78 high)
run `npm audit fix` to fix them, or `npm audit` for details
$ npm install gitbook-plugin-uml --save-dev
npm WARN saveError ENOENT: no such file or directory, open '/home/vowstar/Projects/2020/honkit/cjk_nested_test/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/vowstar/Projects/2020/honkit/cjk_nested_test/package.json'
npm WARN cjk_nested_test No description
npm WARN cjk_nested_test No repository field.
npm WARN cjk_nested_test No README data
npm WARN cjk_nested_test No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ [email protected]
updated 1 package and audited 1070 packages in 9.078s
14 packages are looking for funding
run `npm fund` for details
found 224 vulnerabilities (82 low, 64 moderate, 78 high)
run `npm audit fix` to fix them, or `npm audit` for details
The version I've installed is:
Then I tried to reproduce this issue:
$ npx honkit build
info: 6 plugins are installed
info: 6 explicitly listed
info: plugin "uml" is loaded
info: plugin "highlight" is loaded
info: plugin "search" is loaded
info: plugin "lunr" is loaded
info: plugin "fontsettings" is loaded
info: plugin "theme-default" is loaded
info: found 3 pages
info: found 4 asset files
warn: "book" property is deprecated, use "this" directly instead
warn: "this.generator" property is deprecated, use "this.output.name" instead
warn: "navigation" property is deprecated
warn: "options" property is deprecated, use config.get(key) instead
info: >> generation finished with success in 1.3s !
$ ls _book/assets/images/uml
b25548fd30f84bae07fd6b18e02a5015fe3531d2.svg
$ npx honkit build
info: 6 plugins are installed
info: 6 explicitly listed
info: plugin "uml" is loaded
info: plugin "highlight" is loaded
info: plugin "search" is loaded
info: plugin "lunr" is loaded
info: plugin "fontsettings" is loaded
info: plugin "theme-default" is loaded
info: found 3 pages
info: found 4 asset files
warn: "book" property is deprecated, use "this" directly instead
warn: "this.generator" property is deprecated, use "this.output.name" instead
warn: "navigation" property is deprecated
warn: "options" property is deprecated, use config.get(key) instead
info: >> generation finished with success in 0.4s !
$ ls _book/assets/images/uml
b25548fd30f84bae07fd6b18e02a5015fe3531d2.svg
$ npx honkit build
info: 6 plugins are installed
info: 6 explicitly listed
info: plugin "uml" is loaded
info: plugin "highlight" is loaded
info: plugin "search" is loaded
info: plugin "lunr" is loaded
info: plugin "fontsettings" is loaded
info: plugin "theme-default" is loaded
info: found 3 pages
info: found 4 asset files
warn: "book" property is deprecated, use "this" directly instead
warn: "this.generator" property is deprecated, use "this.output.name" instead
warn: "navigation" property is deprecated
warn: "options" property is deprecated, use config.get(key) instead
info: >> generation finished with success in 0.4s !
$ ls _book/assets/images/uml
b25548fd30f84bae07fd6b18e02a5015fe3531d2.svg
$ npx honkit serve
Live reload server started on port: 35729
Press CTRL+C to quit ...
Starting server ...
info: 7 plugins are installed
info: 7 explicitly listed
info: plugin "uml" is loaded
info: plugin "livereload" is loaded
info: plugin "highlight" is loaded
info: plugin "search" is loaded
info: plugin "lunr" is loaded
info: plugin "fontsettings" is loaded
info: plugin "theme-default" is loaded
info: found 3 pages
info: found 4 asset files
warn: "book" property is deprecated, use "this" directly instead
warn: "this.generator" property is deprecated, use "this.output.name" instead
warn: "navigation" property is deprecated
warn: "options" property is deprecated, use config.get(key) instead
info: >> generation finished with success in 1.0s !
Serving book on http://localhost:4000
^C
$ ls _book/assets/images/uml
b25548fd30f84bae07fd6b18e02a5015fe3531d2.svg
$ npx honkit serve
Live reload server started on port: 35729
Press CTRL+C to quit ...
Starting server ...
info: 7 plugins are installed
info: 7 explicitly listed
info: plugin "uml" is loaded
info: plugin "livereload" is loaded
info: plugin "highlight" is loaded
info: plugin "search" is loaded
info: plugin "lunr" is loaded
info: plugin "fontsettings" is loaded
info: plugin "theme-default" is loaded
info: found 3 pages
info: found 4 asset files
warn: "book" property is deprecated, use "this" directly instead
warn: "this.generator" property is deprecated, use "this.output.name" instead
warn: "navigation" property is deprecated
warn: "options" property is deprecated, use config.get(key) instead
info: >> generation finished with success in 1.6s !
Serving book on http://localhost:4000
^C
$ ls _book/assets/images/uml
b25548fd30f84bae07fd6b18e02a5015fe3531d2.svg
$ npx honkit serve
Live reload server started on port: 35729
Press CTRL+C to quit ...
Starting server ...
info: 7 plugins are installed
info: 7 explicitly listed
info: plugin "uml" is loaded
info: plugin "livereload" is loaded
info: plugin "highlight" is loaded
info: plugin "search" is loaded
info: plugin "lunr" is loaded
info: plugin "fontsettings" is loaded
info: plugin "theme-default" is loaded
info: found 3 pages
info: found 4 asset files
warn: "book" property is deprecated, use "this" directly instead
warn: "this.generator" property is deprecated, use "this.output.name" instead
warn: "navigation" property is deprecated
warn: "options" property is deprecated, use config.get(key) instead
info: >> generation finished with success in 1.7s !
Serving book on http://localhost:4000
^C
$ ls _book/assets/images/uml
b25548fd30f84bae07fd6b18e02a5015fe3531d2.svg
I've run both npx honkit build
and npx honkit serve
3 times in the above order respectively, but can't reproduce this issue.
So I can only make a speculative bug fix update.
The file I've test:
cjk_nested_test.zip
Could you provide more detailed demo files or try the latest version?
from gitbook-plugin-uml.
Please try https://github.com/vowstar/gitbook-plugin-uml/releases/tag/1.2.12
from gitbook-plugin-uml.
Thanks for your checks.
I found the very strange phenomena. I can't explain reproduce procedure.
The first time, unzip the file you provided and try to build, then the issue did NOT happen.
In the same testing folder I replaced all files with mine, then the issue DID happen. (This is the expected result.)
Again in the same folder I replaced all files with unzipped ones you provided, then the issue STILL DID happen!!
This means, my source, config or environment is a trigger of causing issue, but another factor (something like cache?) exists.
My MacOS env (where the issue happens):
$ npm -v
6.14.14
$ node -v
v14.17.4
$ uname -a
Darwin yumeto 19.6.0 Darwin Kernel Version 19.6.0: Tue Aug 24 20:28:00 PDT 2021; root:xnu-6153.141.40~1/RELEASE_X86_64 x86_64
Note:
- The issue still happens after updating to
[email protected]
with my source.
from gitbook-plugin-uml.
I can't provide the source causing the issue because it's owned by my customer.
I'll try to create a sample that always cause the issue.
But it may take a time.
from gitbook-plugin-uml.
According to my verification, this happens if book.js
is configured with root
and is not in the same directory as docs.
from gitbook-plugin-uml.
from gitbook-plugin-uml.
Related Issues (14)
- [Bug] Unable to install and bulid the plugin in macos HOT 1
- Please update npm package HOT 1
- Plugin is not working with relative paths HOT 2
- Does not work with UTF-8 files. HOT 3
- Ebook generate error occur in current HonKit HOT 7
- The installation of node-plantuml fails HOT 7
- Support for retina display HOT 2
- Plugin is not working with [!include] directive HOT 13
- Two or more images in assets/ directory are not copied into _build/ HOT 4
- 中文乱码怎么配置 HOT 1
- honkit shows "Could not find the language 'uml'"
- assets/ is not copied into _book/ directory HOT 2
- Please update node-plantuml HOT 1
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 gitbook-plugin-uml.