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
Previously, loading buffers of read-only files wasn't possible, as
cornelis would try to write the file before loading (which would fail
and abort the command).
Add `silent` to the command to ignore failed writes. This should be
a safe fallback.
Fixesagda#116.
Loading an Agda module in a read-only file (such as one in a system location) fails with the following error:
I think the culprit is this line:
https://github.com/isovector/cornelis/blob/bfada15978fc7c0f0797ec3977c5069be4a22b0e/src/Plugin.hs#L85
Maybe the correct thing to do here is to execute the write silently (
:h :silent!
) and thus ignore any errors?The text was updated successfully, but these errors were encountered: