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

EISDIR error when paths.sources directory name contains . #879

Closed
AntonGulak opened this issue Apr 4, 2024 · 2 comments
Closed

EISDIR error when paths.sources directory name contains . #879

AntonGulak opened this issue Apr 4, 2024 · 2 comments
Labels

Comments

@AntonGulak
Copy link

AntonGulak commented Apr 4, 2024

Solidity Coverage crashes with the error "Error in plugin solidity-coverage: Error: EISDIR: illegal operation on a directory, read"

For example, if the contracts are in the ./Solidity-4.21 directory (crashes because of a dot in the folder name)

paths: {
sources: ./Solidity-4.21,
tests: "./test",
cache: "./cache",
artifacts: "./artifacts",
},

     HardhatPluginError: Error: EISDIR: illegal operation on a directory, read
     at SimpleTaskDefinition.action 
     solidity-coverage\plugins\hardhat.plugin.js:269:35

     at async Environment._runTaskDefinition 
     hardhat\src\internal\core\runtime-environment.ts:359:14

    at async Environment.ru
    hardhat\src\internal\core\runtime-environment.ts:192:14

    at async main
    hardhat\src\internal\cli\cli.ts:323:7

package versions:
"hardhat": "^2.22.1",
"solidity-coverage": "github:sc-forks/solidity-coverage#master"

@cgewecke cgewecke changed the title Solidity Coverage crashes EISDIR error when paths.sources is relative path Apr 4, 2024
@cgewecke cgewecke changed the title EISDIR error when paths.sources is relative path EISDIR error when paths.sources directory name contains . Apr 4, 2024
@cgewecke cgewecke added bug and removed Investigate labels Apr 4, 2024
@cgewecke
Copy link
Member

cgewecke commented Apr 4, 2024

Thanks again @AntonGulak! This should be fixed by #880.

@cgewecke
Copy link
Member

cgewecke commented Apr 5, 2024

Published in v0.8.12

@cgewecke cgewecke closed this as completed Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants