Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

-c option and optimizations problem #16

Closed
henryw374 opened this issue Oct 18, 2018 · 8 comments
Closed

-c option and optimizations problem #16

henryw374 opened this issue Oct 18, 2018 · 8 comments

Comments

@henryw374
Copy link
Contributor

Hi, when using the -c option. and when the opts file passed to that contains e.g. :optimizations :advanced or whitespace, or simple, no tests are run. Setting it to :none does work though.

Any ideas?

Thanks,
Henry

@Olical
Copy link
Owner

Olical commented Oct 19, 2018

So I guess this is because advanced optimisations mangle all of the names and maybe test code get's cut out because it's not called directly. Why are you running tests with advanced optimisations anyway? Just to make sure it works?

I think this would require some extern files or something to stop Closure Compiler from mangling the code and deleting things that are actually required.

@henryw374
Copy link
Contributor Author

henryw374 commented Oct 19, 2018 via email

@Olical
Copy link
Owner

Olical commented Oct 22, 2018

So this should be fixed in 3.1.0, let me know what you think! It has the following caveat where cljs-test-runner-out/gen needs to be on the path, but that's all. https://github.com/Olical/cljs-test-runner#advanced-compilation

Seems to work well for me when switching between :none and :advanced a lot. I hope this helps 😃

@Olical Olical closed this as completed Oct 22, 2018
@Olical
Copy link
Owner

Olical commented Oct 23, 2018

Seems to still behave weirdly for :whitespace and maybe things like foreign libs are a bit messed up. It's better but maybe not fixed.

@Olical Olical reopened this Oct 23, 2018
@henryw374
Copy link
Contributor Author

henryw374 commented Oct 23, 2018 via email

@henryw374
Copy link
Contributor Author

Hey, :optimizations :advanced is working fine for me now. creating the directory before running etc not a problem.

I'll leave the issue for you to close in case you're addressing :whitespace but it's not an issue for me.

Thanks

@Olical
Copy link
Owner

Olical commented Nov 1, 2018

I might take another look soon, but if I can't work it out I might just mark it as a known issue. I'm really confused by it, I can understand "no optimisations" and "optimisations" behaving differently. But I would expect once any level of optimisations works, especially advanced, all of the rest will work fine too.

@Olical Olical closed this as completed in 443c99d Nov 7, 2018
@Olical
Copy link
Owner

Olical commented Jun 15, 2019

It looks like #31 has it working fine for :none, :simple and :advanced. :whitespace is still a bit wonky for some reason, seems a lot better though! (sorry to bump a dead thread, just thought this might be useful information for future googlers)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants