question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build-docs fails out of the box

See original GitHub issue

problem statement

immediately after installing semantic-ui, and using the default settings at user prompt, I did the following:

cd semantic && gulp build-docs, which yields

$ gulp build-docs
[12:44:31] Using gulpfile ~/node/octagon.react/semantic/gulpfile.js
[12:44:31] Starting 'build-docs'...
Building Metadata
Copying examples
Copying LESS source
Building Semantic for docs
(node:92547) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
[12:44:31] Finished 'build-docs' after 59 ms
[12:44:31] Starting 'package compressed docs css'...
[12:44:31] Starting 'package compressed docs js'...
[12:44:31] Starting 'package uncompressed docs js'...
[12:44:31] Starting 'package uncompressed docs css'...
fs.js:89
      throw err;  // Forgot a callback but don't know where? Use NODE_DEBUG=fs
      ^

Error: ENOENT: no such file or directory, open '/Users/cdieringer/node/docs/out/metadata.json'
    at rethrow (fs.js:89:21)
    at maybeCallback (fs.js:107:42)
    at Object.fs.writeFile (fs.js:1284:18)
    at Stream.<anonymous> (/Users/cdieringer/node/octagon.react/semantic/tasks/docs/build.js:83:10)
    at emitNone (events.js:86:13)
    at Stream.emit (events.js:185:7)
    at end (/Users/cdieringer/node/octagon.react/node_modules/map-stream/index.js:116:39)
    at Stream.stream.end (/Users/cdieringer/node/octagon.react/node_modules/map-stream/index.js:122:5)
    at DestroyableTransform.onend (/Users/cdieringer/node/octagon.react/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_reada
ble.js:523:10)
    at DestroyableTransform.g (events.js:291:16)

discussion

  • the installer dumped a semantic.json in my package root, vs in the semanic/ folder. when i go to build the docs, it tries to build docs in parent dir to my project. this is erroneous
  • when I do move my semantic.json to the semantic/ folder, it fails with the above again, but this time because <project-root>/docs/out doesn’t exist. if i manually create docs/out, the content generates
  • i expected build-docs to build docs. instead, what i got was a bunch of SUI assets.

this was confusing to me.

what i was hoping for was a tool I could run against a config or a dir in my project that builds the SUI CSS with my customizations. it would be great if at some point semantic can modularize some, such that I don’t need to copy all of the semantic base source into my project–i can just include my modifications, run semantic-ui build -c my-semantic-config --css-only -o ./blah.css

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ziaratbancommented, Sep 28, 2018

i solved this problem. semantic document is not clear or it can be bug.

step by step

  1. install semantic-ui in this folder c:\test\semantic-org. (use default setting for installing)
    • after install
      • you can see folder semantic in c:\test\semantic-org
      • run gulp build in c:\test\semantic-org\semantic
        • after build , you can see folder dist in c:\test\semantic-org\semantic
  2. So far everything is good
  3. download Semantic Docs and extract to in c:\test\docs
    • after install
      • run npm install -g docpad in c:\test\docs
      • run npm install docpad in c:\test\docs
      • run docpad install eco; and docpad update; docpad upgrade; in c:\test\docs
      • run docpad run in c:\test\docs
        • after run
          • copy c:\test\semantic-org\semantic\dist to c:\test\docs\out
          • run gulp build-docs in c:\test\semantic-org\semantic
  4. go to http://localhost:9778
0reactions
stale[bot]commented, Feb 23, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generating JSON for single component gives JSON incompatible ...
For this reason, buildDocs.sh fails on the single-component object because it can't iterate over a non-object: $ react-docgen components/Component.js | .
Read more >
Troubleshooting build errors | Cloud Build Documentation
This page provides troubleshooting strategies as well as solutions for some common error messages that you might see when running a build.
Read more >
Troubleshooting failed packer build - Stack Overflow
Hi Ele, how can you ssh into the box without the --debug flag, which prints out connection details, passwords, and private keys, etc?...
Read more >
packer build - Commands - HashiCorp Developer
The `packer build` command takes a template and runs all the builds within it in order to generate a set of artifacts. The...
Read more >
Kedro's command line interface - Read the Docs
kedro build-docs (deprecated from version 0.19.0). kedro build-reqs (deprecated from version ... Here is a list of CLI arguments supported out of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found