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

Multiple subdirectories that have the same rust file name result in accounts not being picked up "Could not resolve Accounts symbol" #1499

Closed
ChewingGlass opened this issue Feb 21, 2022 · 2 comments
Labels
cli help wanted Extra attention is needed

Comments

@ChewingGlass
Copy link
Contributor

Consider the following directory structure:

src
   instructions
      instruction_one
         account.rs
      instruction_two
         account.rs

This will result in

Could not resolve Accounts symbol, lang/syn/src/idl/file.rs:518:22

This is reproducible via https://github.com/StrataFoundation/strata/tree/6b933f8707cb495347af52ec200daee7a5e123ae/programs/spl-token-bonding

@armaniferrante armaniferrante added cli help wanted Extra attention is needed labels Feb 21, 2022
@tomlinton
Copy link
Contributor

I believe #1343 will fix this. I tested it with your repro and it generates this IDL (I did not validate this against your source though): https://gist.github.com/tomlinton/44a80e970aae5883994ab3267cd9e582

@tomlinton
Copy link
Contributor

#1343 was merged so this should be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants