Fable: Repl regression

Created on 30 Nov 2017  路  10Comments  路  Source: fable-compiler/Fable

Repl is currently broken, most probably by #1265.

Most helpful comment

@alfonsogarciacaro Idk, it works now, I guess you fixed it :)

All 10 comments

Damn, I really need to add the REPL to CI 馃槵

I'm about to merge #1271 an it seems the JS version is able to compile the Sudoku sample with the current code, how can we test this regression?

@alfonsogarciacaro Did you change something from #1265? It was definitely not working before.

Nothing in particular I can recall, during the tests for #1271 at one point I commented out the suspect lines but I brought them again after confirming they weren't causing any problem.

One noticeable change though is I converted the test_script.fsx into the module test_script.fs because I was getting an "unexpected behavior" error. Is that what you were seeing? What was broken exactly? The FCS/Fable compilation itself, or compiling F# code to JS with the REPL?

@alfonsogarciacaro Idk, it works now, I guess you fixed it :)

Ok, let's call it a fix then! 馃槃 Hopefully now that the REPL is being built by CI I won't be breaking your work as many times as before :wink:

This is not surprising but you were right :wing: For some reason, the test I added to CI passed fine, but when trying to do autocompletion in the repl there were errors, commenting out the Assignments active pattern does prevent the error.

@alfonsogarciacaro Yes, I can confirm that commenting that Assignments active pattern (above) fixes it.
I would say just take it out, at least temporarily until it can be fixed, and close this issue.

Ok, #1284 should fix it. I was interested in having this optimization as it removes a lot of the generated closures to put assignments in expression position. Hopefully this also helps improve the performance of the REPL.

Note to self: don't expose mutable fields, you can't control them ;)

@alfonsogarciacaro Thanks, that fixes it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alfonsogarciacaro picture alfonsogarciacaro  路  37Comments

chrisvanderpennen picture chrisvanderpennen  路  31Comments

grishace picture grishace  路  28Comments

et1975 picture et1975  路  43Comments

tomcl picture tomcl  路  26Comments