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

fix normalizePath #3524

Merged
merged 2 commits into from
Mar 15, 2023
Merged

fix normalizePath #3524

merged 2 commits into from
Mar 15, 2023

Conversation

yann300
Copy link
Contributor

@yann300 yann300 commented Mar 14, 2023

No description provided.

@netlify
Copy link

netlify bot commented Mar 14, 2023

Deploy Preview for remixproject ready!

Name Link
🔨 Latest commit 15ca5b9
🔍 Latest deploy log https://app.netlify.com/sites/remixproject/deploys/641190cf562b43000853c701
😎 Deploy Preview https://deploy-preview-3524--remixproject.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@@ -54,7 +54,7 @@ export class HardhatClient extends PluginClient {
const errMsg = '[Hardhat Compilation]: Cannot compile in read-only mode'
return reject(new Error(errMsg))
}
const cmd = `npx hardhat compile --config ${configPath}`
const cmd = utils.normalizePath(`./node_modules/.bin/hardhat compile --config ${utils.normalizePath(configPath)}`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will only work if node is in the path that electron has when running standalone.
[Hardhat Compilation]: env: node: No such file or directory

Copy link
Collaborator

@bunsenstraat bunsenstraat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will only work if node is in the path that electron has when running standalone.
which it isn't by default, could be in brew, /usr/local/bin, anything, without the path of the user we won't know. On my system it says when I run this in a standalone remix desktop build
[Hardhat Compilation]: env: node: No such file or directory
we need to get the path from 1. the default shell if we can get it to run 2. input of the user.

@yann300 yann300 changed the title fix calling hardhat compile in win32 fix normalizePath Mar 15, 2023
@yann300 yann300 merged commit 6e164d3 into master Mar 15, 2023
@yann300 yann300 deleted the fix_hardhat_call branch March 15, 2023 09:38
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

Successfully merging this pull request may close these issues.

3 participants