-
Notifications
You must be signed in to change notification settings - Fork 5
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
adding gcsafe pragmas for findOne to work #29
Conversation
Can we try to use push-pop pragma? i.e |
I was unaware of this use ok, did my homework. Are you thinking of applying this on several modules, all procs? (avoiding templates of course). What would be the strategy? sounds good, just want to learn what would be the best way to approach it on all the hard work you already put in place on this project. |
Perfectly fine with both direction, the push-pop pragma or manually adding the |
I would vote for non-push/pop because I am a bit afraid of the push/pop solution - theoretically it sounds correct, but, and like you said, - it is more safe to apply the effect to minimum possible code. In my case it was just two functions |
this is a really good point, and would like to run some tests first. I think this is working with update and findOne, but will try the |
Not sure whether template is safe or not, but if you want to avoid interweaving push-pop when finding templates, you can move the template definitions to above so inside the |
I will test this! So far, with this, find, findOne, and update work fine. So it seems it's only these procs that were causing #27 |
I've been revewing this, and I think there are very few procs that will cause the compile time error to go off for CRUD procs. I think we should just keep If you agree I will continue with the merge. I've been testing 2 weeks on my applications, no errors in compile time have showed up! |
@samsamros just merge it. It would not make things worse than we have now :) |
I just spent an hour trying to figure out why my code wasn't working even though I saw this was fixed in this PR. For anyone else who is confused, this change has not made it to a new version of the package yet so I had to change my dependencies to reference the HEAD of this Github repo. ie: |
Hi @danbarbarito , the latest version includes these changes. I've faced this issue before, and I've had to uninstall the package with nimble We should, however, bump the version to avoid conflict with existing versions. I'm opening an issue to do this next. editThe version has been updated to v0.7.1 . You should be able to install just by prompting |
Thank you @samsamros! |
Adding gcsafe pragma to several procs, including the ones referenced in #28 , this resolves the issue for findOne in #27 , update is still pending testing!