gcv / julia-snail

An Emacs development environment for Julia
GNU General Public License v3.0
230 stars 21 forks source link

problem with julia-snail-send-buffer-file #13

Closed dahtah closed 4 years ago

dahtah commented 4 years ago

This issue appears a bit non-deterministically but here's a minimal reproducing example:

  1. open a one-line .jl file with an error, eg.
    factorial(1.2)
  2. Hit C-c C-z, then C-c C-k. The error buffer appears (as expected)
  3. Comment out the error, then C-c C-k: the message "xyz.jl loaded" appears
  4. Uncomment, reinserting the error, then C-c C-k
  5. Comment again, C-c C-k ("xyz.jl loaded")
  6. Uncomment, C-c C-k: the message "xyz.jl loaded" appears, incorrectly

julia-snail-send-region doesn't seem to be affected.

gcv commented 4 years ago

I can't reproduce it. 😕 Are you sure you saved the file after uncommenting the offending line? I should probably put in a check for that...

If you can reproduce it in a fresh session and making sure you save after every change, please attach the contents of the *julia* process buffer.

gcv commented 4 years ago

I added an explicit check for unsaved files to julia-snail-send-buffer-file in d5425ed. Please reopen if you still run into trouble.