simultaneous editing of program files

For making suggestions and/or requests for new features you'd like added to EViews.

Moderators: EViews Gareth, EViews Moderator

tvonbrasch
Posts: 280
Joined: Fri Apr 15, 2011 5:35 am

simultaneous editing of program files

Postby tvonbrasch » Thu Jun 30, 2016 10:59 pm

Hi

It would be nice if one could simultaneous edit program files with colleagues.

With Google docs, or MS Word online, you can simultaneous edit text files. In Eviews, I can open text files. If I could include text files in program files, then I could in practice be simultaneous editing Eviews program files with colleagues through Google docs or MS word online.

How can I make a code so that I
a) make a new program
b) include a text document in the program
c) close the program
d) execute the program
?

Or maybe you have a better way of doing this?
Thomas

tvonbrasch
Posts: 280
Joined: Fri Apr 15, 2011 5:35 am

Re: simultaneous editing of program files

Postby tvonbrasch » Tue Jul 05, 2016 11:34 pm

if the include statement would also include text files, that would do it. Can you add this functionality? or is there another way to do it?


Thomas

tvonbrasch
Posts: 280
Joined: Fri Apr 15, 2011 5:35 am

Re: simultaneous editing of program files

Postby tvonbrasch » Fri Jul 08, 2016 5:24 am

I managed to open a text file and execute the textfile as a program file using

text _t
_t.append(file) .\test2.txt
_t.save .\testsave.prg
exec .\testsave


in google docs i can simulateneously edit this document with others, but for some reason, i cannot open the document in Eviews. I can access my GDrive account, but i get the error message

"unable to open file <Google Drive vonbrasch> :test2.txt",

when executing the command:

open "<Google Drive vonbrasch>:\KVARTS\test2.txt"

opening a workfile through Gdrive works fine (wfopen(2) "<Google Drive vonbrasch>:\KVARTS\kvarts.WF1")

Do you know what is causing this error?
Thomas

EViews Jason
EViews Developer
Posts: 672
Joined: Tue Sep 16, 2008 3:50 pm

Re: simultaneous editing of program files

Postby EViews Jason » Fri Jul 08, 2016 8:44 am

There is a problem with opening text files on google drive. We will get it fixed

tvonbrasch
Posts: 280
Joined: Fri Apr 15, 2011 5:35 am

Re: simultaneous editing of program files

Postby tvonbrasch » Sun Jul 10, 2016 10:46 pm

ok, perfect, thanks
Thomas

tvonbrasch
Posts: 280
Joined: Fri Apr 15, 2011 5:35 am

Re: simultaneous editing of program files

Postby tvonbrasch » Fri Jul 29, 2016 12:14 pm

Hi Jason,

I still have a problem with Google Docs.

when i run the program:
text _t 'lag en tekstfil
_t.append(file) <vonbrasch>:\KVARTS\test2.txt
_t.save .\testsave.prg 'lagre teksfilen som et program
exec .\testsave 'kjør den nye programfilen



i get the error message:

"Ï»¿GENR is not defined or is an illegal command in "Ï»¿GENR
A_A=0" in TESTSAVE.PRG."

attached is a picture of the error message, a picture of the text file loaded in eviews, and the text file downloaded from google docs.

Do you understand what is causing this error?
Thomas
Attachments
eviews_google_docs.PNG
eviews_google_docs.PNG (95.42 KiB) Viewed 2758 times
eviews_error_google_docs.PNG
eviews_error_google_docs.PNG (75.57 KiB) Viewed 2758 times
test2.txt.txt
(13 Bytes) Downloaded 39 times

EViews Jason
EViews Developer
Posts: 672
Joined: Tue Sep 16, 2008 3:50 pm

Re: simultaneous editing of program files

Postby EViews Jason » Fri Jul 29, 2016 3:36 pm

The test2.txt file appears to contain some unicode characters that does not appear in notepad or after it has been read in by EViews. This explains the strange start of the error message "Ï»¿GENR ..."

You will have to remove these characters from the text file that you normally use.

The attached file does not have the extraneous characters.
Attachments
test2.txt
(10 Bytes) Downloaded 37 times

tvonbrasch
Posts: 280
Joined: Fri Apr 15, 2011 5:35 am

Re: simultaneous editing of program files

Postby tvonbrasch » Fri Jul 29, 2016 11:30 pm

Hi

Buy why does the text file include some unicode characters? I have not entered these characters in my Google doc file. I suspect something is going on when eviews reads the file from Google docs. I will try to create another Google doc text file to see if the same problem occurs again.
Thanks for your quick response
Thomas

tvonbrasch
Posts: 280
Joined: Fri Apr 15, 2011 5:35 am

Re: simultaneous editing of program files

Postby tvonbrasch » Sun Aug 07, 2016 11:30 am

Hi Jason

I don’t understand it.

If I create the following document in google docs:
‘genr a=3


I can read this in Eviews, and it displays as

‘genr a=3


in a text object.

But, as I notet in my previous post, when loading the text file as a program file it reads the characters:

‘genr a=3


See attached photo.
eviews_gdocs.PNG
eviews_gdocs.PNG (81.79 KiB) Viewed 2703 times


You say that this means there are some Unicode characters that Eviews do not read. But if Eviews cannot read simple google doc text files, there is not much point in being able to access google docs….? Can you please fix it so that eviews understands the text:
‘genr a=3
? Since Eviews displays the google doc correctly in Eviews as a text object, it must “understand” the Unicode characters, and hopefully it should be easy for you guys to fix this.

I also have a second problem with using google docs. When changing a text file in google docs, and reloading it in Eviews using a program code, Eviews will fetch the old version. It can take several minutes before the new version is downloaded correctly to Eviews. However, if a change a google doc text file, and manually open it from Eviews by clicking file/open/text file, the newly changed text file opens without a problem. Why will manually opening a google doc text file work correctly, while doing it with a program code will not load the updated version? Is this something you can also fix?

Thomas

EViews Jason
EViews Developer
Posts: 672
Joined: Tue Sep 16, 2008 3:50 pm

Re: simultaneous editing of program files

Postby EViews Jason » Mon Aug 08, 2016 3:20 pm

When saving text files on Google drive, apparently Google adds 'byte order marking' to the beginning of every text file. This tells the reading application the file encoding. We will get this fixed.

We will also look in to editing the text file from within google drive as well.

tvonbrasch
Posts: 280
Joined: Fri Apr 15, 2011 5:35 am

Re: simultaneous editing of program files

Postby tvonbrasch » Mon Aug 08, 2016 11:05 pm

perfect, thanks!
Thomas

tvonbrasch
Posts: 280
Joined: Fri Apr 15, 2011 5:35 am

Re: simultaneous editing of program files

Postby tvonbrasch » Thu Aug 11, 2016 11:41 pm

Hi again

and thanks for updating Eviews so quickly.

I still experience some problems when downloading text files from Google Drive.

1) a textfile in Google Drive
‘genr a=3
is read by Eviews as
‘genr a=3
. This is much better than what it was. Now I can just replace
‘
with the apostrophe
'
. But it would be great if you could fix this also. The apostrophe
'
is often used in Eviews programs to comment out stuff.

2) For some reason, when I make changes to a Google Drive document, it still can take some time before the updated version is downloaded into Eviews correctly. I ran a program 08:06, but changes I had made to the text file 2 minutes earlier (08.04) was not updated when downloading into Eviews, see picture:
Eviews does not update.PNG
Eviews does not update.PNG (68.27 KiB) Viewed 2661 times
. I am not sure what is causing this. Manually downloading the file from within Eviews yields the same text file as when downloading it within a program.

3) Eviews stops working: When trying out downloading text files from Google Drice to Eviews, Eviews has stopped working five times during a period of about 20 minutes, see picture:
Eviews stop working when downloading file from Google Drive.PNG
Eviews stop working when downloading file from Google Drive.PNG (53.23 KiB) Viewed 2661 times


I hope this is also something you can fix. We are now so close to being able to use Google docs as a platform for running Eviews programs.

Thomas

EViews Jason
EViews Developer
Posts: 672
Joined: Tue Sep 16, 2008 3:50 pm

Re: simultaneous editing of program files

Postby EViews Jason » Fri Aug 12, 2016 8:10 am

1)The main problem is google docs supports unicode and EViews does not. EViews assumes text files and programs are in ascii. You can fix this specific problem by selecting (in google docs) tools->preferences and then deselecting 'Use smart quotes'. To be more EViews/ASCII compliant, you should also deselect 'Automatic substitution'.

2) We are still working on this one.

3) We will get this fixed as well.

tvonbrasch
Posts: 280
Joined: Fri Apr 15, 2011 5:35 am

Re: simultaneous editing of program files

Postby tvonbrasch » Fri Aug 12, 2016 10:51 am

perfect, thanks for your reply. i was not aware that i could change those settings
thomas

tvonbrasch
Posts: 280
Joined: Fri Apr 15, 2011 5:35 am

Re: simultaneous editing of program files

Postby tvonbrasch » Fri Aug 12, 2016 11:12 am

when you have fixed those things, could you please also create an option in the Eviews exec command that allows one to execute a text file from google drive as a program file, i.e., that does something similar to


Code: Select all

text _t
_t.append(file) "<Google Drive>:\filename"
_t.save .\testsave.prg
exec .\testsave


or is there a better way of doing this already?
Thomas


Return to “Suggestions and Requests”

Who is online

Users browsing this forum: No registered users and 1 guest