-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Windows: Backslash in a path to contract leads to solc crash #3968
Comments
Issue Status: 1. Open 2. Started 3. Submitted 4. Done This issue now has a funding of 75.0 DAI (75.0 USD @ $1.0/DAI) attached to it.
|
I assume you already read through this, but just incase I wanted to link Solidities documentation on this issue - https://solidity.readthedocs.io/en/latest/layout-of-source-files.html#paths I also noticed that you have a forward slash in one of your example and a backslash in another, could you have gotten them mixed up? Finally is it possible back slashes have another meaning in Soliditiy and need to be escaped to work properly? |
I'm aware that Solidity Just to clarify this: I'm quite sure if I tried call solc manually I would use a forward slash. But I found this bug when called solc programmatically from java. |
I agree, the commandline interface should support both backslashes and forward slashes on windows, while import statements should only support forward slashes. This should all be taken care of by boost::filesystem, it just looks like there is a bug about how we distinguish directories and files. |
@asifmallik Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done @asifmallik due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Hi @asifmallik we see you've created a PR here - are you able to close the loop on the tests @axic has requested? Hope you're doing well! @chriseth Let me know if you think I'm missing something here 😄 |
@vs77bb Sorry, I had been busy in the last couple of days. I am looking into it right now! |
@asifmallik Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
1 similar comment
@asifmallik Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done @asifmallik due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
@asifmallik Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done @asifmallik due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Using forward slashes does not solve the issue. |
Is this still an open issue? Of not, I would like to try. Please confirm. |
@cnusrini please coordinate with @asifmallik , they were still working on #4070 two weeks ago. |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done Work has been started. These users each claimed they can complete the work by 2 days, 22 hours from now. 1) asifmallik has started work. I have fixed this bug by replacing the string() method with generic_string() to ensure backslash separated paths are also internally represented as paths separated with forward slashes. Learn more on the Gitcoin Issue Details page. |
I confirm that it has been solved by @asifmallik |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done Work for 75.0 DAI (75.0 USD @ $1.0/DAI) has been submitted by: @gdipri01 please take a look at the submitted work:
|
@gdipri01 could you please release the bounty? |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done The funding of 75.0 DAI (75.0 USD @ $1.0/DAI) attached to this issue has been approved & issued to @asifmallik.
|
Steps to reproduce:
solc -o . --bin .\A.sol B.sol
Expected result:
Contracts to be compiled successfully
Actual result:
Solc crashed
Output:
solc version:
0.4.23+commit.124ca40d.Windows.msvc
platform:
win7
The text was updated successfully, but these errors were encountered: