forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Won't take me to error line
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
wsmith9920



Joined: 16 Sep 2013
Posts: 19

PostPosted: Sat Oct 19, 2013 4:09 pm    Post subject: Won't take me to error line Reply with quote

After compiling my code, and clicking on the error message, Plato won't take me to the error line. The message is "File System Error" and "Access denied." (This worked on older versions on another computer). Any suggestions? Plato 4.61, FTN95 6.3.5.0, Windows 7 Pro, checkmate win32.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7467
Location: Salford, UK

PostPosted: Sat Oct 19, 2013 4:19 pm    Post subject: Reply with quote

I looks like a runtime error so try running the program using the debugger.
Back to top
View user's profile Send private message AIM Address
wsmith9920



Joined: 16 Sep 2013
Posts: 19

PostPosted: Sat Oct 19, 2013 6:10 pm    Post subject: Reply with quote

This is a compile time issue. When a compiler error is detected, Plato reports the error at the bottom. It used to be when you clicked on the compiler error message, Plato would take you to the offending line of code. In my current installation, it won't take me to the offending line. Once the offending line of code is fixed, the program runs fine.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7467
Location: Salford, UK

PostPosted: Sun Oct 20, 2013 9:29 am    Post subject: Reply with quote

Is this always the case for every kind of error?
Just add an extra false character somewhere and see what happens when you compile.

The latest version of Plato allows you to use 64 bit gFortran and you may get this kind of problem because Plato does not always recognise the layout of the gFortran error messages. Otherwise it should work OK for FTN95 and SCC.
Back to top
View user's profile Send private message AIM Address
wsmith9920



Joined: 16 Sep 2013
Posts: 19

PostPosted: Sun Oct 20, 2013 8:24 pm    Post subject: Reply with quote

I get this for any compiler error message. None can be clicked to take me to the offending line in the code. Also, the same happens with warnings as well. I know my Windows 7 Pro is installed as 64 bit, but FTN95 installed itself under "Program Files (x86)" if that makes any difference. This did work on an older version of FTN95 on a Windows XP machine. Thank you for your help!
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7467
Location: Salford, UK

PostPosted: Sun Oct 20, 2013 9:24 pm    Post subject: Reply with quote

Using a 64 bit operating system should make no difference.

What happens if you right click on the error line and select "Goto error/tag"?
Back to top
View user's profile Send private message AIM Address
wsmith9920



Joined: 16 Sep 2013
Posts: 19

PostPosted: Mon Oct 21, 2013 12:31 am    Post subject: Reply with quote

The same thing: an error box pops up. The menu bar says "File System Error," and the message is "Access is Denied." If it means anything, it took Plato several seconds to respond the first time, after which subsequent responses were instantaneous.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7467
Location: Salford, UK

PostPosted: Mon Oct 21, 2013 7:16 am    Post subject: Reply with quote

This look like a run time error and not a compiler error.
Back to top
View user's profile Send private message AIM Address
JohnCampbell



Joined: 16 Feb 2006
Posts: 2434
Location: Sydney

PostPosted: Mon Oct 21, 2013 7:43 am    Post subject: Reply with quote

This looks to me that you have access rights problems to some of the directories being used, probably for creating or writing a file.

If you get an error then the file sdbg.ini might be created in
c:\Windows\sdbg.ini or
c:\users\your_name\AppData\Local\VirtualStore\Windows\sdbg.ini

Alternatively you may not have create or write access in the directory where you are trying to compile.

Are you compiling a file in C:\ ?

If you can start the compiler and get some sort of message, then presumably you have installed the compiler and have read access to C:\Program Files (x86)\Silverfrost\ftn95

John
Back to top
View user's profile Send private message
wsmith9920



Joined: 16 Sep 2013
Posts: 19

PostPosted: Sat Oct 26, 2013 2:30 pm    Post subject: Reply with quote

Just wanted to summarize. I can compile, link, and run error-free code without any trouble. Plato is listing compile errors (and warnings) at the bottom window in the usual way. All errors (and warnings) are completely normal and as expected, and disappear as the code is fixed. What is not happening in Windows 7 Pro (and worked fine in XP) is the ability for me to double click the error message in the bottom window, and then have the upper window adjust itself automatically to display the offending line of code.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7467
Location: Salford, UK

PostPosted: Sat Oct 26, 2013 3:51 pm    Post subject: Reply with quote

Plato is trying to access a file called ErrorLog in the current working directory.
Do you have read access to that file?
Back to top
View user's profile Send private message AIM Address
wsmith9920



Joined: 16 Sep 2013
Posts: 19

PostPosted: Sat Oct 26, 2013 4:15 pm    Post subject: Reply with quote

When looking under properties of the ErrorLog file, it is owned by administrators. System and administrators had full control access, users did not. I gave users full control access, but this did not solve the problem. I looked into the file, the contents look reasonable. The file has no associations; I had to select notepad to read it.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7467
Location: Salford, UK

PostPosted: Sat Oct 26, 2013 4:59 pm    Post subject: Reply with quote

Plato will delete the file and create it again so giving access rights afterwards will not help.
What happens if you run Plato as an Administrator?
Back to top
View user's profile Send private message AIM Address
wsmith9920



Joined: 16 Sep 2013
Posts: 19

PostPosted: Sat Oct 26, 2013 7:40 pm    Post subject: Reply with quote

Neither logging in as administrator, nor right-clicking Plato in my user to run under administrator, helped. I still cannot double-click to the offending code line.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7467
Location: Salford, UK

PostPosted: Sun Oct 27, 2013 8:54 am    Post subject: Reply with quote

As I understand it, your ErrorLog file does not have read access because of its location. Have you tried putting your files in a folder the has general access rights?
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group