altmany / export_fig

A MATLAB toolbox for exporting publication quality figures
BSD 3-Clause "New" or "Revised" License
1.27k stars 365 forks source link

After running export_fig('-update'), the warning still appears stating a newer version of export_fig exists #320

Closed bachus34 closed 4 years ago

bachus34 commented 4 years ago

After running export_fig on Matlab R2020a, I get the warning stating there is a new version available and can be updated via the command window using export_fig('-update'). I do so and run export_fig, but I get the same warning.

altmany commented 4 years ago

@bachus34 - did you get a confirmation message that the update was successfully installed? Please paste the export_fig command together with the text outputs from the Matlab Command Window to help diagnose the problem.

bachus34 commented 4 years ago

I get the following warning, then run the update, get a successful installation notification, but when I run export_fig again, I get the same warning.

Warning: A newer version of export_fig is available. You can download it from GitHub or Matlab File Exchange, or run export_fig('-update') to install it directly.

In export_fig>checkForNewerVersion (line 1734) In export_fig (line 304) In plot_StrainRefinement_forZa (line 101)

export_fig('-update')

If you need expert assistance with Matlab, please consider my professional consulting/training services (https://UndocumentedMatlab.com)

Successfully installed the latest export_fig version in /Users/UserName/Documents/MATLAB/User function/altmany-export_fig-a83b407

altmany commented 4 years ago

ah - this is probably because you are running export_fig version 3.05 or older, the -update problem was fixed in version 3.06. Simply re-download the latest version from the Matlab File Exchange or from GitHub, and overwrite your existing version with the latest one.

altmany commented 4 years ago

see issue #302 for reference