-
Notifications
You must be signed in to change notification settings - Fork 74
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
in M1 Mac Approvals is Not Automatically Opening the Diff editor for received & approved Json Files #312
Comments
Can you provide a bit more info on your dev environment. What IDE were you using when running tests. Which diff viewer application do you expect to open. Was it a plain ApprovalsTest, or using Options or @UseReporter annotation? |
I had the same problem. OSX Monterey, M1. I ended up making my own Reporter for the time being: ` public static class MyIntelliJMacSiliconReporter extends GenericDiffReporter { |
thank you for the code snippet! we will look into this now. Still a bit surprised that this is connected to M1 mac, as I am developing ApprovalTests since 2021 already with a M1 mac, but I notice that you used the path to Intellij Community Edition, that might be the case why we haven't noticed this ourselves yet, as I'm using the Ultimate edition. :) |
We spent quite some time on it today, we didn't manage to fully fix it yet though and then time ran out, but we're on it. If in the meantime you could provide us for example the path on your machine where it tried to find IntelliJ, and where your intellij installation actually is, that would be helpful so that we've some extra inputs for our test. |
Just a note, we continued to work on this today but time is limited and we didn't progress very far. But we're on it :) |
Also, @saicharansigiri is using Android Studio to write his approval tests. |
Apologies from my side, this got missed in Mails. |
It seems the IntelliJPathResolver is not generating/detecting the correct path to the InteliJ executable. Maybe have a global config as fallback option for those that have a different install base. Maybe also generate a more meaningful exception in the logs ("Cannot find intellij install base folder, please specify with -DinteliJHomeFolder=/path/to/intellij" |
Is there a fix planned for this? I ended up creating three new resolvers:
|
in M1 Mac Approvals is Not Automatically Opening the Dif for received & approved Json Files when there is some Difference between both the Files(received&approved)
The text was updated successfully, but these errors were encountered: