Closed ab36245 closed 2 years ago
So a couple of issues.
I've been working in the nullsafety branch. I've now merged it into master so masters is once again master.
The merged code correctly initialises mode.
The code however has a second problem in that I'm having trouble with the mode bits. This could be because I'm doing the bit manipulation incorrectly or the struct mapping is wrong.
I'm bogged down with some other projects at the moment so If you have the time to look at the problem that would be great.
If you run the stat_test.dart unit test the problem shows itself.
I've pushed the latest code.
I decided to have a quick look at the stat function and I found the problem.
I've just released 2.2.0 so try with the latest and let me know how you go.
Thanks for the very fast turnaround @bsutton. I'll test it tomorrow and let you know
Thanks @bsutton. I can confirm that the mode field is set correctly after a stat() call in 2.2.0.
There is a problem, however, with the mode bits as you say. I'll raise a separate issue for that.
thanks for the confirmation.
I'm trying to use the mode property of the Stat class, but as soon as I access it I get
Looking at stat.dart it seems like mode is the only late initialized property:
The _fromNativeStat constructor looks like it just omits the mode initialization.
Is adding initialization to the constructor a nice quick fix?