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

[BUG] Error when running aeproject test #394

Closed
VitalJeevanjot opened this issue Jan 22, 2022 · 1 comment · Fixed by #409
Closed

[BUG] Error when running aeproject test #394

VitalJeevanjot opened this issue Jan 22, 2022 · 1 comment · Fixed by #409
Labels
aeproject bug Something isn't working

Comments

@VitalJeevanjot
Copy link

Describe the bug
With current state of this branch https://github.com/genievot/zk-ae-private-transactions/tree/errors_tracking When I try to run aeproject test it doesn't work as expected and gives an error message. It seems that it is some random issue with regexp (sometimes work [when executed rgxIncludePath.exec(rootInclude) twice] sometimes doesn't) in aeproject/src/lib/util.js line 30 (When checking for paths etc.). It occurs when including more than 1 library file.

To Reproduce
Steps to reproduce the behavior:

  1. Clone my repo (errors_tracking branch) https://github.com/genievot/zk-ae-private-transactions/tree/errors_tracking
  2. Install Depds
  3. Run local nodes
  4. Run aeproject test & see the error.

Expected behavior
It should work fine without running it like this

    const contractPath = rgxMainPath.exec(contractSource);
    const includeRelativePath = rgxIncludePath.exec(rootInclude);

    console.log("includeRelativePath==")
    console.log(rgxIncludePath.exec(rootInclude))
    console.log("==includeRelativePath")
    // eslint-disable-next-line no-continue
    if (defaultIncludes.includes(includeRelativePath[1])) continue;

Which works but removing console wrapper doesn't

Screenshots
image
the 1 is here:
image
As when loading second library it just fills it as null, In our case it is with include "List.aes".

Aeproject information (please complete the following information):

  • OS executed at: [e.g. Ubuntu 20]
  • AEproject Version [e.g. @4.0.0-alpha.2]
@VitalJeevanjot VitalJeevanjot added aeproject bug Something isn't working labels Jan 22, 2022
@thepiwo
Copy link
Collaborator

thepiwo commented Feb 11, 2022

this is fixed in v4.0.0-beta.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aeproject bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants