Page 1 of 1

Text mode problem

Posted: Sat Jan 26, 2019 3:08 pm
by RWTH_FCN
Hi,
I closed my model yesterday without any problem, but when I want to open it today it is text mode. When I want to change its mode from text to sketch I get this error: "Syntax error". Can you help me how to fix this problem.
Best Regards

Re: Text mode problem

Posted: Sat Jan 26, 2019 3:19 pm
by Administrator
Can you share the syntax error?

And do you save your models in Dropbox/OneDrive/Google drive?

Re: Text mode problem

Posted: Sat Jan 26, 2019 3:24 pm
by RWTH_FCN
Administrator wrote: Sat Jan 26, 2019 3:19 pm Can you share the syntax error?

And do you save your models in Dropbox/OneDrive/Google drive?
I get attached error. No I do save it in Dropbox/OneDrive/Google drive.

Re: Text mode problem

Posted: Sat Jan 26, 2019 3:40 pm
by Administrator
It's hard to see anything on that image. What is "min cost flows"? And where does the cursor end up when you click ok?

Re: Text mode problem

Posted: Sat Jan 26, 2019 4:03 pm
by RWTH_FCN
Administrator wrote: Sat Jan 26, 2019 3:40 pm It's hard to see anything on that image. What is "min cost flows"? And where does the cursor end up when you click ok?
I solved it. The problem was related to the compiler. Vensim had lost its connection to compiler, as a result, I could not change its text mode to sketch mode.

Re: Text mode problem

Posted: Tue Jan 29, 2019 1:08 pm
by Phill
Strange that you should ask about Dropbox/One Drive/Google Drive though! I use a Windows 10 computer for Vensim and can't run any MDL file with external data sources if I save it to One Drive. In fact, I can't even run them if saved directly to a synchronised folder on my local drive and I have to go through the OS - Users - Documents - Folders route to be able to run Vensim models. Is there any work around for this, so that I can run the models directly from One Drive? Models without external data sources work without any problems, by the way.

Phill

Re: Text mode problem

Posted: Tue Jan 29, 2019 1:21 pm
by Administrator
OneDrive/other file syncing apps will often lock a file while it is syncing/checking. This is obviously a problem for programs like Vensim that need to read from them which is why things go wrong.

Re: Text mode problem

Posted: Tue Jan 29, 2019 5:05 pm
by tomfid
Strange that you should ask about Dropbox/One Drive/Google Drive though! I use a Windows 10 computer for Vensim and can't run any MDL file with external data sources if I save it to One Drive.
This is indeed strange. I use OneDrive and Dropbox with models every day, on both Win7 and Win10, with no problems at all.

Re: Text mode problem

Posted: Tue Jan 29, 2019 5:09 pm
by tomfid
However ... what are your external data sources? If you're using GET XLS with Office365, that might be the problem. OneDrive+365 is basically Sharepoint, and Sharepoint is very stupid about working offline and insists on trying to open everything via the cloud rather than locally. That might screw things up. You could try GET DIRECT instead.

Re: Text mode problem

Posted: Wed Jan 30, 2019 9:26 am
by Phill
In the cases where I have these problems, I am indeed using GET XLS with Office 365. I'll try using GET DIRECT instead and see if that changes things.
Thanks