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

no field 1 on type Loc #985

Closed
zktony opened this issue Mar 3, 2022 · 5 comments
Closed

no field 1 on type Loc #985

zktony opened this issue Mar 3, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@zktony
Copy link

zktony commented Mar 3, 2022

Version
ethers = { git = "https://github.com/gakonst/ethers-rs.git", features = ["ws"] }
Commit :- 9626cc1

├── ethers v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13)
│   ├── ethers-addressbook v0.1.0 (https://github.com/gakonst/ethers-rs.git#9626cc13)
│   │   ├── ethers-core v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13)
│   ├── ethers-contract v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13)
│   │   ├── ethers-contract-abigen v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13)
│   │   │   ├── ethers-core v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   │   ├── ethers-contract-derive v0.6.0 (proc-macro) (https://github.com/gakonst/ethers-rs.git#9626cc13)
│   │   │   ├── ethers-contract-abigen v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   │   │   ├── ethers-core v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   │   ├── ethers-core v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   │   ├── ethers-providers v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13)
│   │   │   ├── ethers-core v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   ├── ethers-core v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   ├── ethers-etherscan v0.2.0 (https://github.com/gakonst/ethers-rs.git#9626cc13)
│   │   ├── ethers-core v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   │   ├── ethers-solc v0.3.0 (https://github.com/gakonst/ethers-rs.git#9626cc13)
│   │   │   ├── ethers-core v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   ├── ethers-middleware v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13)
│   │   ├── ethers-contract v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   │   ├── ethers-core v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   │   ├── ethers-etherscan v0.2.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   │   ├── ethers-providers v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   │   ├── ethers-signers v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13)
│   │   │   ├── ethers-core v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   ├── ethers-providers v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   ├── ethers-signers v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
│   └── ethers-solc v0.3.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)
├── ethers v0.6.0 (https://github.com/gakonst/ethers-rs.git#9626cc13) (*)

Description
It was working earlier, but today I cleaned cache and tried to build it again but now I am getting following error :-

error[E0609]: no field `1` on type `Loc`
   --> /Users/krishnasingh/.cargo/git/checkouts/ethers-rs-c3a7c0a0ae0fe6be/9626cc1/ethers-solc/src/resolver/mod.rs:759:31
    |
759 |         Location { start: src.1, end: src.2 }
    |                               ^

error[E0609]: no field `2` on type `Loc`
   --> /Users/krishnasingh/.cargo/git/checkouts/ethers-rs-c3a7c0a0ae0fe6be/9626cc1/ethers-solc/src/resolver/mod.rs:759:43
    |
759 |         Location { start: src.1, end: src.2 }
    |                                           ^

For more information about this error, try `rustc --explain E0609`.
 
@zktony zktony added the bug Something isn't working label Mar 3, 2022
@z80dev
Copy link

z80dev commented Mar 3, 2022

Also getting this error on build

@DanWizard
Copy link

DanWizard commented Mar 3, 2022

@zktony having same issue. Still working through resolution but for some reason build is installing solang-parser version 0.1.10 instead of 0.1.2 so src is expection Loc::File not Loc, see here

@nopang2021
Copy link

also for me

@z80dev
Copy link

z80dev commented Mar 3, 2022

I was able to get my project to build by setting a tag for the dependency, not sure how much new functionality or bug fixes I'm missing out on but at least this builds

ethers = { git = "https://github.com/gakonst/ethers-rs", tag ="0.6.0" }

or a newer version from crates.io

ethers = "0.6.2"

@gakonst gakonst closed this as completed in de275db Mar 4, 2022
@gakonst
Copy link
Owner

gakonst commented Mar 4, 2022

Really sorry about that folks. Fixed now!

jsLover1117 added a commit to jsLover1117/ethers-rs that referenced this issue Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants