View previous topic :: View next topic |
Author |
Message |
Kenneth_Smith
Joined: 18 May 2012 Posts: 697 Location: Hamilton, Lanarkshire, Scotland.
|
Posted: Thu May 13, 2021 9:47 pm Post subject: Plato highlighting matching WHERE/ELSEWHERE/ENDWHERE |
|
|
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 |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2819 Location: South Pole, Antarctica
|
Posted: Fri May 14, 2021 2:21 am Post subject: |
|
|
I 'd like to see highlighting of IF/EndIF and Do/Enddo in SDBG64 debugger too |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Fri May 14, 2021 7:14 am Post subject: |
|
|
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 |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2819 Location: South Pole, Antarctica
|
Posted: Sat May 15, 2021 4:32 pm Post subject: |
|
|
I compile using batch files, but will try. Thanks, Paul |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Sun May 16, 2021 9:10 am Post subject: |
|
|
Ken
I have made a note of the problem with WHERE/ELSE WHERE. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Wed May 19, 2021 9:01 am Post subject: |
|
|
Ken
I have fixed the WHERE/ELSE WHERE highlighting failure for the next release of Plato. |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2819 Location: South Pole, Antarctica
|
Posted: Thu May 20, 2021 2:57 am Post subject: |
|
|
Let's try to use it for first time as usually without reading anything about it, checking how intuitively it works 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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2819 Location: South Pole, Antarctica
|
Posted: Sun May 23, 2021 7:59 pm Post subject: |
|
|
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
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 |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2554 Location: Sydney
|
Posted: Mon May 24, 2021 8:01 am Post subject: |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Mon May 24, 2021 8:44 am Post subject: |
|
|
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 |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2819 Location: South Pole, Antarctica
|
Posted: Mon May 24, 2021 9:15 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Tue May 25, 2021 6:33 am Post subject: |
|
|
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 |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2819 Location: South Pole, Antarctica
|
Posted: Wed May 26, 2021 7:31 am Post subject: |
|
|
How about adding option for automatic free/fixed recognition? It is easy to implement. If failed - computer will ask |
|
Back to top |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2554 Location: Sydney
|
Posted: Wed May 26, 2021 11:20 am Post subject: |
|
|
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 |
|
|
|