-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Tarpaulin fails with Error: cannot find attribute 'skip' in this scope"
with rust 1.52.0 even if skip isn't used
#756
Comments
Error: cannot find attribute
skip in this scope"
with rust 1.52.0 even if skip isn't usedError: cannot find attribute 'skip' in this scope"
with rust 1.52.0 even if skip isn't used
Interestingly, I got the same error but with a better message, it seems the error comes from an older version of bitvec which is used by nom (which is used by syslog_loose and hdrhistogram). It's bitvec 0.19.5 and they're currently on 0.22.3. Also, nom can't update to the later bitvec which doesn't have the issue without bumping their MSRV so it might not be easily solvable. I think the issue there is likely down to the breaking change in the tarpaulin attributes and there is I tried with |
oh I realised you're on 0.16.0 instead of one of the alphas so don't have |
Oi, would it be possible to ignore attributes in dependencies? Making sure that all 700 dependencies have their tests written with up-to-date tarpaulin attributes will be a bit of a nightmare. if tarpaulin gains more traction the rust ecosystem tendencies to small dependencies / crates could make that a bigger problem for breaking changes in the future.
they all should be locked in the lockfile so a updated rust-toolchaiun should ™️ not cause a change in dependencies |
We'd need a way to apply rust flags to only the top level crate and not the dependencies, unless there's something rust can do that I'm not aware of. I tried to do this once by calling rustc directly but it didn't work very well. The attributes also had the breaking change in 0.14.0 after I found minimal use of them in peoples code I don't expect a change like that again anytime soon. (Also, there is the flag to enable the legacy behaviour)
So in my own production rust I rely on |
The coverage analysis currently fails while compiling `bitvec`. This is tracked as xd009642/tarpaulin#756.
The coverage analysis currently fails while compiling `bitvec`. This is tracked as xd009642/tarpaulin#756.
CI: Cycle cargo binary cache and add `--avoid-cfg-tarpaulin` to tarpaulin see xd009642/tarpaulin#756 r? `@ghost`
I tried it with |
Hi,
|
Update: I did try with the 18 alpha, which gets past it and compilation. the procedural-masquerade error is based on a false positive in a warning: rust-lang/rust#83125 and can be solved with with that tarpaulin runs again :D so the 18-alpha is a workaround but I'm still curious what causes the degradation 😅 |
Had the same issue, also with On my repo I had no further errors/warnings. |
hello, I'm really sorry about the issues with bitvec and nom. I started the work on nom 7 which should fix them, but the rest of what I'd like to pass in that version is not ready yet, so in the meantime I published nom 7.0.0-alpha1 which only includes dependency updates. |
Hi Geal, don't be sorry :)! I can't test it sadly since nom isn't a direct dependency but rather pulled in in a number of different versions over a few other sub dependencies :( |
@Licenser You can use |
* Update to Polkadot 0.9.9 * Update runtimes and tests * Make actions workflow use newer rustc * Update benchmarks * Fix xd009642/tarpaulin#756 * Update deps for ethash and ethabi-decode
I'm still encountering this issue on the latest release. |
@djc so it's not in tarpaulins dependency tree but rather projects wih tarpaulin being ran on them and there is the |
So anyone using hdrhistogram can now upgrade to 7.4.0 and that will be one more instance of skip removed from their dependency tree (and maybe the last one). I've just had to go to a PC without everything installed but iirc it was the only instance of skip in tremor @Licenser |
7.4.0* :) |
Oops, used to everyone being like me and too shy to go 1.0.0 😅 |
It's just a number, it's fine 😁 |
I'll check :D |
Yay it is the last! 🚀 |
And with updating to 0.18.3 free 2% test coverage :D 🚀 from our side this is fully resolved :) |
If everyone else with issues wants to check and let me know the projects if they still fail. I'll go on a hunt around the ecosystem upgrading things as needs be 😄 also if I don't hear anything else in a month or so I'll probably close this issue as inactive |
I still get this on cargo-tarpaulin version: 0.18.5, rustc 1.56.1 (59eed8a2a 2021-11-01). |
@ehiggs have you used |
I used |
I was already on github doing some stuff 😅. I'd still be interested in what the dependency is and if it's been updated or needs updating though |
|
Okay just checked and the askama 0.12 beta has nom at 0.7 so you'll be able to remove the flag once the next version of askama is released (unless you wanted to move to a beta release ofc). |
The next version of Askama will hopefully be released soon, so it will no longer trigger this problem. |
Closing this as it's been resolved for us :) |
* Update to Polkadot 0.9.9 * Update runtimes and tests * Make actions workflow use newer rustc * Update benchmarks * Fix xd009642/tarpaulin#756 * Update deps for ethash and ethabi-decode
Seeing this again @xd009642:
|
@0xAlcibiades you can use |
Describe the bug
When trying to run tarpaulin in our project with rust v1.52.0 it fails with the error:
tarpaulin works with rust 1.51.0 and we do not use the
skip
attribute in the codebaseTo Reproduce
clone https://github.com/tremor-rs/tremor-runtime and update the
rust-toolchain
file to 1.52.0Expected behavior
projects working in 1.51.0 also work in 1.52.0
The text was updated successfully, but these errors were encountered: