OS X 0.1 issue

23 views
Skip to first unread message

Tyler Weir

unread,
Apr 19, 2012, 10:03:35 AM4/19/12
to visi...@googlegroups.com
After playing with Visi for 3 save-run cycles, the OS X app will no run valid code.

If I copy the source into a new window, everything is fine.

The code is below.  The failure occurred when I added "SumPlusTax", the code would not be run and the UI bits for SumPlusTax would not show.
I can explore more if need be.

?hourly
?count

x = hourly * count

"Sum" = x
"SumPlusTax" = x * 1.13


David Pollak

unread,
Apr 19, 2012, 2:05:53 PM4/19/12
to visi...@googlegroups.com
Tyler,

I copied and pasted the code into Visi and it worked as I expected it to work.

There's an "issue" with computations that do not terminate.  If the computation engine is running a computation, then it will never be able to parse and update the model.  And then it looks like your model isn't doing anything.

Can you give me more detailed instructions on reproducing the issue?

Thanks,

David

--
Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro
Lift, the simply functional web framework http://liftweb.net


Tyler Weir

unread,
Apr 19, 2012, 9:27:55 PM4/19/12
to visi...@googlegroups.com
Sorry, I explained that poorly.

I started with a new file, and iterated with a couple of lines to test it out.
Everything was fine, then I wrote some incorrect code.

I fixed the mistake and added the final output.

Asking to run the model would result in no action.

I then copied the source to a new file and it ran as expected.

The problem seemed to be in the development cycle, and maybe I ran into the issue you described.

David Pollak

unread,
Apr 20, 2012, 7:01:10 PM4/20/12
to visi...@googlegroups.com
I updated the code to 0.1.1.  This release contains a 'catch' around the main event loop.  If any exceptions are thrown, they will show up on the console.  Please see http://blog.visi.la/visi-011-patch/

Thanks for the bug report.
Reply all
Reply to author
Forward
0 new messages