Closed jsoo1 closed 5 years ago
The tests breaking seem to be because *idris-events*
is no longer created. Any idea why that might happen because of these changes?
Ah, I think it was due to #445.
Moved the travis fixes and test fixes to their own separate PRs.
I have pretty low brain bandwidth right now. Can you say a few words on what the underlying issue is and how this fixes it?
Totally understood. The issue is with interactions with other modes that change the current buffer when using load-file
. Spacemacs uses popwin, for instance, that changes the current buffer to the holes buffer when load file is first called. So during the async parts of load file, (buffer-file-name)
returns nil when checking (idris-filename-to-load)
. I think I explained it better in #423 in this comment. Does that make sense?
Gonna cherry pick this onto a fresh branch.
If popwin opens some buffer aside from the idris source buffer when the file has not finished loading, then the result of (buffer-file-name) will be wrong or nil when the callback for idris-load-file is reached.
Closes #423