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 

Plato highlighting matching WHERE/ELSEWHERE/ENDWHERE
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
Kenneth_Smith



Joined: 18 May 2012
Posts: 506
Location: Hamilton, Lanarkshire, Scotland.

PostPosted: Thu May 13, 2021 9:47 pm    Post subject: Plato highlighting matching WHERE/ELSEWHERE/ENDWHERE Reply with quote

I really like the new feature of Plato which highlights matching IF/ELSEIF/ENDIF etc.

One (very minor) thing I have noticed is that with WHERE/ELSEWHERE/ENDWHERE, only the initial WHERE and ENDWHERE are highlighted which differs from the IF/ELSEIF/ENDIF construction where all intermediate ELSEIF/ELSE statements are highlighted.

This difference can be a little confusing. For example with you select an intermediate ELSEIF statement the whole of the IF/ELSEIF/ENDIF construct is highlighted, but this is not the case if you select an intermediate ELSEWHERE.
Back to top
View user's profile Send private message Visit poster's website
DanRRight



Joined: 10 Mar 2008
Posts: 2479
Location: South Pole, Antarctica

PostPosted: Fri May 14, 2021 2:21 am    Post subject: Reply with quote

I 'd like to see highlighting of IF/EndIF and Do/Enddo in SDBG64 debugger too
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Fri May 14, 2021 7:14 am    Post subject: Reply with quote

Dan

Plato has SDGB64 code built into it. You just have to select an option in the Settings to "Integrate SDBG64" as opposed to spawning it.

Even if you prefer a different code editor, you can still run the debugger that way. Then you get all the Plato syntax colouring whilst debugging.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2479
Location: South Pole, Antarctica

PostPosted: Sat May 15, 2021 4:32 pm    Post subject: Reply with quote

I compile using batch files, but will try. Thanks, Paul
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sun May 16, 2021 9:10 am    Post subject: Reply with quote

Ken

I have made a note of the problem with WHERE/ELSE WHERE.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


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

PostPosted: Wed May 19, 2021 9:01 am    Post subject: Reply with quote

Ken

I have fixed the WHERE/ELSE WHERE highlighting failure for the next release of Plato.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2479
Location: South Pole, Antarctica

PostPosted: Thu May 20, 2021 2:57 am    Post subject: Reply with quote

Let's try to use it for first time as usually without reading anything about it, checking how intuitively it works Smile I find this as the best way to learn. A decade ago there was a 30 seconds video how to do that, please remind if anyone knows. Anyone using PLATO, i do not like to ask Paul about this trivial stuff

1) Naturally, I thought if instead of SDBG64 i will add EXE file (built old way by batch file) to Plato then i will run it this way and see the colored text in case of error but i failed to start exe file via PLATO. May be it's impossible to run this way?

2) OK, since this does not work easily, then i took simple structured program which uses just two major Fortran source files + one include Fortran file + some resource bitmap and icon files (at the end of one of two major Fortran files ). I tried to add Fortran files to the project and compile everything. I failed to add the source file which one of my source files INCLUDEs. There exist option with right click to add source files to the project but there is no similar option to add INCLUDE file in the project tree. Without this file i failed to compile
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu May 20, 2021 6:49 am    Post subject: Reply with quote

https://www.silverfrost.com/59/ftn95/videos.aspx

Try "Getting started with FTN95" and skip the first part.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2479
Location: South Pole, Antarctica

PostPosted: Sun May 23, 2021 7:59 pm    Post subject: Reply with quote

I failed.
My impression after another attempt i tried it 10 years ago? Yes, there are improvements.
But it is not ready for everyday use.
Clearly either no one uses PLATO, or no one reports bugs, problems or suggestions for improvement.

Because here are still a lot of obvious clearly visible problems and inconveniences.

All this comes from the many times expressed here opinion that the authors do not use it seriously for their own work. May be it is used for small demos but not for larger projects.

Did company ever asked any of users with larger programs what they think and send their suggestions to improve anything? It's time now because clearly a lot was done in 20 years and what is left to make Plato robust, stable and convenient software is just the intensive feedback users-developers. If company more welcomed users critics and suggestions, literally periodically soliciting them, Plato would be ready 20 years ago. Smaller company has no chance to beat larger competitors with large users base like Intel with its Fortran without actively "shaking" potential users constantly emphasizing their advantages and quickly fixing problems.

We just see that everywhere. Take for example Brave browser. Have anyone heard about it? But its website in huge red font tells

"Browse 3x faster than Chrome! Brave stops online surveillance, loads content faster, and uses 35% less battery"
We all know what’s wrong.
As a user, access to your web activity and data is sold to the highest bidder. Internet giants grow rich, while publishers go out of business. And the entire system is rife with ad fraud. DOWNLOAD BRAVE

Good browser, i use it. Anyway, to be able for Plato to tell users such bold words Plato needs quick fixes.
1) Something is wrong with coloring. It sometimes coloring letter n in the word integer Smile
2) I do not see the reason not to debug in Plato after i compiled my code using command prompt. SDBG64 is doing that but Plato refuses as if not the same company made it. One has everything for start debug but another missing something.
3) I still failed to compile the programs which uses "INCLUDE filename". I added appropriate file to INCLUDE FILES in the project by drag and dropping it (there is no right click option to do that) still compilation failed
4) My files are all named with *.for extension but some are of free and some fixed format. After right click on Properties in Project Explorer there exist an option to clearly tell that to Plato but this does not change anything in text coloring scheme
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2357
Location: Sydney

PostPosted: Mon May 24, 2021 8:01 am    Post subject: Reply with quote

Dan,

Can you be clearer about problems using Plato.

I use Plato as my IDE and can't recall any significant issues.

* The recent change to auto compile and getting an "E" on a line I am typing, I see as a good thing. It is very helpful.

* I would like better control on which compiler I am using, as I use FTN95, FTN95 /64 and gFortran -fopenmp. There are clashes with .mod files, which could be better managed ? (probably my lazyness in not adopting projects)

* I do find the highlighting of IF ; END IF does have problems when moving the cursor into the IF block.

The main problem I have with Plato is I don't use projects, which would probably solve most of the usage problems I have. For large projects, I use .bat files for recompile and linking, as I use different compile options for different types of calculations.

When I am using Plato, I mostly have the Lahey Language Reference .pdf open. Highlighting a key word or intrinsic function and using F1 to pop up the description of the function or I/O connect-specs would be very helpful (Is it there already?)

I do find Plato very effective for editing code. If I have the .mod files available and the appropriate compiler selected, I can quickly update code to the correct syntax.

For Compile (Ctrl+F7), defaulting to /implicit_none and !$OMP DEFAULT(NONE) would be useful. I would like to be able to edit the default compile commands, as Compile (Ctrl+F7) and Start (Ctrl+F5) are the most frequent options I use.

Anyway, Dan, can you suggest some improvements that could be implemented.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon May 24, 2021 8:44 am    Post subject: Reply with quote

Dan

Perhaps you should test out Visual Studio. It would be interesting to read your experience and reactions. Then we could reflect upon a) the size of Microsoft compared with the size of Silverfrost and b) the number of users of Plato compared with the number of users of Visual Studio.

In my opinion (as the author of Plato) for Fortran, Plato is on a par with Visual Studio. In some respects it is better, in others not as good.

I use both Plato and Visual Studio all the time (meaning literally, all the time I am working I have both running).

Not that I want to persuade you to use Plato. My only concern is that you don't put others off.

There are a number of different YouTube demos (in various languages) that use FTN95 and Plato and the total number of "Views" is in the tens of thousands if not more. So I suspect that your experience is not typical.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2479
Location: South Pole, Antarctica

PostPosted: Mon May 24, 2021 9:15 pm    Post subject: Reply with quote

Plato is used by people? Great, will return to drawing board and try again.

OK, John, next time we will find the bug, defect or inconvenience we know who we have to blame for procrastination of reporting it Smile
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue May 25, 2021 6:33 am    Post subject: Reply with quote

Plato assumes by default that files with the extension .for use fixed format Fortran, etc.. This could explain a poor experience with the syntax colouring.

It can be configured differently via the Settings dialog.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2479
Location: South Pole, Antarctica

PostPosted: Wed May 26, 2021 7:31 am    Post subject: Reply with quote

How about adding option for automatic free/fixed recognition? It is easy to implement. If failed - computer will ask
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2357
Location: Sydney

PostPosted: Wed May 26, 2021 11:20 am    Post subject: Reply with quote

Dan,

.f or .for are reserved for fixed-format, while .f90 or .f95 are reserved for free-format.
Mixing these is asking for trouble, as we have always had with include files.

Perhaps the request should be to have FTN95 identify if include files are free or fixed format.

I have always used a ".ins" file suffix for include file ($INSERT was used a long time ago in FTN77).
I have never thought to test if a .f90 include file would be interpreted as free format, if referenced from a .for file ?
Given the mess of mixed formats used in FTN95 include files, having .f90 instead of .ins as a suffix could have provided more readable include files.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General 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