Skip to content
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

Doxity init creates scripts folder but nothing else #9

Closed
elmutt opened this issue Dec 20, 2016 · 15 comments
Closed

Doxity init creates scripts folder but nothing else #9

elmutt opened this issue Dec 20, 2016 · 15 comments
Assignees

Comments

@elmutt
Copy link

elmutt commented Dec 20, 2016

Running "doxity init" creates an empty scripts folder and nothing else.

@IstoraMandiri
Copy link
Contributor

Hi There,

Thanks for the report. What's your OS and doxity version?

Cheers,

@elmutt
Copy link
Author

elmutt commented Dec 20, 2016 via email

@cag
Copy link

cag commented Feb 13, 2017

I got this error as well. This is the response in the console for me. I am running Arch Linux 64-bit Doxity v0.3.2 Node 7.1.0.

$ doxity init
.doxityrc not found or unreadable
Getting "https://github.com/DigixGlobal/doxity-gatsby-starter-project/archive/37f63a26c2664c31f4463a49af939ddb6e2181e7.tar.gz...
(node:7760) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Invalid URI "%22https://github.com/DigixGlobal/doxity-gatsby-starter-project/archive/37f63a26c2664c31f4463a49af939ddb6e2181e7.tar.gz"
(node:7760) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Here is a workaround:

doxity init --source https://github.com/DigixGlobal/doxity-gatsby-starter-project/archive/37f63a26c2664c31f4463a49af939ddb6e2181e7.tar.gz

@IstoraMandiri
Copy link
Contributor

Thanks for the and finding a workaround @cag.

I'm putting doxity on a temporary hold for the moment, as it depends on the native compiler, which doesn't work with truffle imports. I will address this issue once that upgrade is completed.

@yudilevi
Copy link
Contributor

Is the project still on hold?

@tymat
Copy link
Member

tymat commented May 22, 2017

What version of solidity are you using? @yudilevi

@yudilevi
Copy link
Contributor

yudilevi commented May 22, 2017

Latest, 0.4.11 @tymat

@tymat
Copy link
Member

tymat commented May 22, 2017

Do you have doxity 0.5.0?

Also what is in your .doxityrc file?

@yudilevi
Copy link
Contributor

I just installed doxity, latest version (globally).
I didn't use any .doxityrc file - which as I understand uses the defaults.
I also tried using the file but doxity can't find it - I assume because I'm on a windows machine and process.env.PWD is undefined.
I tried to define PWD manually but still no go.

@tymat
Copy link
Member

tymat commented May 22, 2017

What version of nodejs do you have on your machine?

@yudilevi
Copy link
Contributor

yudilevi commented May 22, 2017

node v7.9.0.

And correction about .doxityrc - after setting up process.env.PWD, doxity init seems to find the file, but still stuck in Getting https://github.com/DigixGlobal/doxity-gatsby-starter-project/archive/9445d59056058159ce25d7cd1643039523718553.tar.gz...

Btw I'm also available on gitter.

And thanks!

@tymat
Copy link
Member

tymat commented May 22, 2017

{
  "target": "scripts/doxity",
  "src": "contracts/*",
  "dir": "pages/docs",
  "source": "https://github.com/DigixGlobal/doxity-gatsby-starter-project/archive/a4886b7a7a04c018ac04fed3125d7d4785e74bed.tar.gz",
  "out": "docs"
}

You can try the following .doxityrc

@yudilevi
Copy link
Contributor

yudilevi commented May 22, 2017

Same result - scripts folder is created, stuck at Getting https://github.com/DigixGlobal/doxity-gatsby-starter-project/archive/9445d59056058159ce25d7cd1643039523718553.tar.gz...

Edit: scripts folder is created empty

@yudilevi
Copy link
Contributor

yudilevi commented May 22, 2017

One possible explanation would be that this -
.pipe(targz().createWriteStream(tmpTarget))

Doesn't actually create the entire directory tree, but only creates a single directory and then fails, but haven't debugged it yet.

@IstoraMandiri IstoraMandiri self-assigned this May 22, 2017
@IstoraMandiri
Copy link
Contributor

IstoraMandiri commented May 22, 2017

Doxity is not on hold and should be working with truffle projects. This will be added as a low-priority TODO for now as unfortunately we're not using windows. Do feel free to submit PRs if you'd like to add windows support more quickly.

The OP's issue should now be fixed in latest. @yudilevi It looks like your problems are due to windows, so i am closing this issue and windows issue to #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants