RyanHendricks / doxity-simpleton

Solidity Documentation
https://ryanhendricks.github.io/doxity-simpleton/
15 stars 3 forks source link

With truffle.js not compiling #3

Open scientistnik opened 6 years ago

scientistnik commented 6 years ago

All work fine, but if create file touch truffle.js contracts not compiling: SyntaxError: Error parsing It don't know interface!

But if delete truffle.js it write interfaces is not a valid file. Skipping.

RyanHendricks commented 6 years ago

Is interface the name of a contract? Also, the compiler used here is solc but try with different solidity files in the contracts directory.

scientistnik commented 6 years ago

No, interface NameInterface {} - it is Solidity code!

When I run doxity build without truffle.js-file, doxity skipping some file. But when I create truffle.js-file, doxity crash on this files with error parsing.

RyanHendricks commented 6 years ago

This most likely stems from an issue still present from the original project which is essentially caused by the compiler version not supporting interface contracts.

I will see if I can't implement a fix or workaround but it most likely won't be in the immediate future unfortunately. If you do manage to fix it yourself in the meantime I would super thankful if you could submit a PR but otherwise I will leave this open for now as a todo.