You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My macro outputs "Help: Searching in directory $CARGO_MANIFEST_DIR" when the file it was looking for doesn't exist, which by its nature, will not always be the same path. However, trybuild for some reason doesn't replace that directory with $DIR but leaves the path untouched.
The text was updated successfully, but these errors were encountered:
Your solution in issue #202 with CARGO_MANIFEST_OVERRIDE works well for me. One thing that is unfortunate though is that when writing tests, the rust analyzer does not detect this, so i think when it runs my macro it is not finding the file correctly, so my macro doesn't expand.
However, when i run my tests, my tests will pass. As a work around what i am doing is putting in the absolute path into my macro during development. and then after testing looks good i insert the relative path. This works ok. but do you have any other ideas for getting rust analyzer to pick up the override?
Thanks!
(Also since #202 is locked i wrote the comment here, hope thats ok)
#202 (comment)
The text was updated successfully, but these errors were encountered: