Silverfrost Forums

Welcome to our forums

Not Clear diagnostics

9 Oct 2019 8:11 #24496

Paul,

Regarding 'unpaired left bracket' report, I could imagine that gFortran would report the line of code and also place a '1' under that unpaired left bracket, not that I am familiar with this message in gFortran.

Could it be possible for FTN95 to provide an indicator of the position of the offending line of code and the position of this lonely bracket ? For the case of Dan's 100's of continuation lines, it would also be important to identify the correct line of code. (Often the line number is the start of the continuation, rather than the line in the 100's of lines.)

The other related type of error that I have found confusing is when I omit an END IF or END DO in a multi-level IF or DO coding, the reporting is not always clear. Could the report identify the IF or DO level where the problem was identified or the range of lines associated with this DO or IF structure. (This could be identified by BOTH the line where the IF started and the line where it was identified it was not terminated.) Often, I have coded with my informative (to me) indents, but they are not recognisable to the compiler. It becomes difficult to identify the mistake as the code looks clearly set out! Could the .lis report annotate DO or IF by there start and end levels ?

9 Oct 2019 10:06 #24497

John

FTN95 starts by taking out all redundant white space so the column positions are not available when the error is reported. In theory the files could be revisited to do the matching but the information is not immediately available..

9 Oct 2019 2:46 #24498

Adding that will be great. I even did not miss enddo and still suffering in my damn spaghetti code which abruptly reached unmanageable state! 😦 As to showing unmatched bracket additionally - adding that would be also very cool.

By the way I still did not find matching enddo in my source code I mentioned few days back. When I start searching for this enddo again, it hurts my brain quickly. That was the cost for not marking and commenting enddos for easy search done clearly in the hurry. Downloaded Notepad++ but it does not mark matching do/enddos, only if/endifs. Will try Plato next

9 Oct 2019 10:39 #24499

I use a text editor called EditPad (I have the Pro version). It has a way of looking at your FORTRAN code, highlighting keywords, matching parentheses across continuation lines, etc. I find it very useful.Personally, I'm bad about miscounting parens.

DO and END DO are in bold, making them easier to find. Same for SELECT CASE and END SELECT, as well as each CASE() construct, and others.

The editor itself has a lot of other features, like comparing two (or more) files for differences, making a selected region UPPERCASE, split screen in a file, two active copies of the editor, etc.

Worth a look at if, as I do, you spend a lot of time in the text editor! https://www.editpadlite.com/

10 Oct 2019 3:19 #24500

Dan,

I went all the way back to page 1 to see how you started the topic.

The best advice I can possibly give you is to shorten your WINIO@ format strings, and only have one format code that requires multiple parameters or a callback at a time.

Eddie

13 Oct 2019 3:02 #24517

Thanks Bill and John,

I will look at all editors again to see what's changed during decade when I last time scanned all editors. Very important feature I need is to show matching IF/ELSE/ENDIF and matching DO/ENDDO. Just highlighting them is not enough, often there are 100s of Dos and ENDDOs to find where the hell are their heads and ends.

Another feature is to edit both Windows and LINUX/UNIX files without distorting UNIX files with WINDOWs style CR/LF.

Of course dual side by side windows view is a must when you simultaneously can edit two files.

I must is a pasteboard which automatically collects everything you saved before into clipboard.

13 Oct 2019 2:22 #24520

EditPad can handle both Windows and Linux style line terminations with ease! You can select which one you wish and have the preference saved for a specific file-extent if you wish. Since the 'Light' version is free, you might give it a go! I love it! Does not do the Do/ENDDO, though. It's not that context sensitive!

13 Oct 2019 2:49 #24521

At the moment Plato does not show matching DO/ENDDO etc. but it does the other things including Copy/Paste, Spike (adding to the clipboard) and a clipboard ring that remembers the last 16 clips (Alt+V).

14 Oct 2019 2:15 #24529

Quoted from wahorger EditPad can handle both Windows and Linux style line terminations with ease!

Notepad on Windows 10 now finally recognises both Windows and Linux/Unix style line terminations. It has been so annoying that this simple update took so long to be done. Unfortunately, I tried to copy notepad.exe from Win 10 to Win 8 but it did not work. It is a very simple and useful program and have found it so annoying when scanning Linux text file.

Also, have you seen the preview panel on Win 10 Explorer ? This can also be a useful additional feature, that I only recently found. (Has it been there for years ?)

John

14 Oct 2019 12:16 #24532

On the grounds that most Linux and Mac users are pretentious (include appropriate plural noun here), I have to be paid a lot to have anything to do with their outputs!

I use a nice little editor called PFE32 developed by a bloke at Lancaster University. Development of this little utility stopped 20 years ago, so it has a dated look and feel. Perhaps the best bit for me is the default font it uses - no, wait a minute, the 2 best bits are the font and the DOS window, or maybe 3 ...

I tried various text editors, and haven't found anything that suits me better.

Eddie

14 Nov 2019 4:21 #24664

I have updated the 64 bit version of Plato so that it highlights DO/ENDDO etc..

It works like the bracket highlighting. For example, when you click on a line containing DO or ENDDO you get this...

https://i.postimg.cc/fkhnCFDy/imag1.jpg

When you click on a line containing IF or ENDIF you get this...

https://i.postimg.cc/BPCCBtsT/image2.jpg

This will be in the next release. The feature must first be enabled from the Settings dialog.

It works for DO/ENDDO, DO label/CONTINUE, IF/ENDIF, WHERE, FORALL, and SELECT CASE.

14 Nov 2019 10:20 #24665

Thanks Paul,

This looks like a great addition to Plato.

I am assuming that if I hover or click on the DO, the associated END DO will also be highlighted and underlined. Should be a good encouragement to make a DO loop fit on a screen, so that if it is too long, then place some of the contents into a sub-routine. ( should make this and implicit none the default 😄 )

15 Nov 2019 8:05 #24666

At the moment it works by clicking somewhere on the line. It doesn't work via a hover.

15 Nov 2019 8:40 #24667

Great. Looks like I'll be forced to move to Plato. Is there 10 slides guide or 30 seconds movie how to start?

15 Nov 2019 8:51 #24669

There is a video introduction for students here,,, https://www.youtube.com/watch?v=7P8vPlCPxuk.

Plato has a detailed description (with pictures!) accessible from its own menu.

Make sure that you make the 'Build' toolbar visible and use it to Compile, Build etc.

18 Nov 2019 2:38 #24671

John, With time 32bits will go into oblivion even though many or even most tasks do not need 2GB of RAM. Even all cell phones switched to 64bit OS and apps. Supporting two versions is very annoying

18 Nov 2019 7:46 #24674

John

From the user's point of view it makes no difference if an application is 64 bit or 32 bits assuming that they have a 64 bit Windows OS. In other words, in this respect you won't notice any difference between using 32 bit Plato against 64 bit Plato.

From my point of view it is simpler to freeze the 32 bit version and limit the development to the 64 bit version.

On the plus side, 64 bit Plato provides direct access to the code for SDBG64 and this is not feasible from 32 bit Plato. This means that 64 bit Plato can do the debugging of your code directly without launching an independent SDBG64.

Please login to reply.