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

Fixing addtestdep not defined #104

Closed
wants to merge 1 commit into from
Closed

Conversation

aminya
Copy link
Contributor

@aminya aminya commented Jun 24, 2020

In this new configuration, people cannot call the internal functions of each package through SnoopCompile.

We should probably use @reexport to solve this issue.

@aminya aminya marked this pull request as draft June 24, 2020 02:25
@aminya
Copy link
Contributor Author

aminya commented Jun 24, 2020

This does not solve the issue, and I cannot run SnoopCompile.addtestdep().
https://github.com/JuliaMusic/MusicXML.jl/runs/801791877#step:4:175

@timholy
Copy link
Owner

timholy commented Jun 24, 2020

You just to say using SnoopCompileBot: privatefunction in src/SnoopCompile.jl. I'll split what I have in #101 out and submit separately without bumping the version.

@@ -236,7 +236,7 @@ function pathof_noload(package_name::String)
end

################################################################

export addtestdep
Copy link
Owner

Choose a reason for hiding this comment

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

Don't do this. Use using SnoopCompileBot: addtestdep instead.

@@ -20,7 +20,7 @@ end

using SnoopCompileBot
export BotConfig, snoop_bot, snoop_bench
export timesum, pathof_noload, GoodPath
export timesum, pathof_noload, GoodPath, addtestdep
Copy link
Owner

Choose a reason for hiding this comment

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

No, definitely not!

@aminya
Copy link
Contributor Author

aminya commented Jun 24, 2020

#107 solves this

@aminya aminya closed this Jun 24, 2020
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.

2 participants