brownplt / pyret-lang

The Pyret language.
Other
1.07k stars 109 forks source link

Compiling from different dir gives different result #1227

Closed sorawee closed 6 years ago

sorawee commented 6 years ago
~/cs173/interp $ pyret sandbox/test-sute.arr
1/1 modules compiled (graded-file.arr)
Cleaning up and generating standalone...
The expression at file:///home/sorawee/cs173/interp/sandbox/graded-file.arr:62:0-82:3 contains a block that contains multiple expressions: file:///home/sorawee/cs173/interp/sandbox/graded-file.arr:63:2-81:13 Either simplify this block to a single expression, or mark the outer expression with `block:` to indicate this is deliberate.
There were compilation errors
~/cs173/interp $ cd sandbox
~/cs173/interp/sandbox $ pyret test-sute.arr
All modules already compiled. Cleaning up and generating standalone...
Looks shipshape, all 152 tests passed, mate!
sorawee commented 6 years ago

Also note that when I automate this, I get the error message

The expression at file:///home/sorawee/cs173/interp/sandbox/graded-file.arr:52:6-75:9 contains a block that contains multiple expressions: file:///home/sorawee/cs173/interp/sandbox/graded-file.arr:54:10-73:13 Either simplify this block to a single expression, or mark the outer expression with `block:` to indicate this is deliberate.
There were compilation errors

The location is off by 10 lines. I have no idea how this happens.

jpolitz commented 6 years ago

I'm having a lot of trouble reproducing this.

Are any of the files involved symlinks?

sorawee commented 6 years ago

Nope. I will describe more how these happen when I'm free.

sorawee commented 6 years ago

I think this is related to "source file not touched, so cache is not cleared". Closing...