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 

INCLUDE files not showing up in Project Explorer

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato
View previous topic :: View next topic  
Author Message
wahorger



Joined: 13 Oct 2014
Posts: 394
Location: Morrison, CO

PostPosted: Tue Oct 14, 2014 8:50 pm    Post subject: INCLUDE files not showing up in Project Explorer Reply with quote

I have quite a large number of INCLUDE files. But I can't add then to the Project Explorer; I right click/left click/... and nothing allows me to add these files.

I have added the path to the INCLUDE files to the project. They still don't show up.

A post from a few years ago seems to state that the include files will show up in Project Explorer automatically. But I'm not seeing it.

Any clues as to what I might be doing wrong?
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Wed Oct 15, 2014 7:43 am    Post subject: Reply with quote

INCLUDE files should appear automatically in the Project Explorer window. There should be a "Sources Files" icon and an "Include Files" icon in the tree. The include files should appear automatically under "Include Files".

Failing this you could Add the include files to your project and then exclude them from the build by using the Properties dialog for the file (right click in the Project Explorer window).
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 394
Location: Morrison, CO

PostPosted: Wed Oct 15, 2014 2:57 pm    Post subject: Reply with quote

The Source Files icon show, and is right-clickable to add items.

The Include Files icon is visible, but not clickable at all.

Is it the file extent I use? I'm using older files that I have named with .INS extension. Still, I should be able to add....

Oh well! Your suggestion is certainly workable. Thanks for the response.

Bill
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Wed Oct 15, 2014 7:45 pm    Post subject: Reply with quote

The include files will probably be revealed by the file dependency checking.
Is this switched on? See Project menu.
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 394
Location: Morrison, CO

PostPosted: Wed Oct 15, 2014 8:44 pm    Post subject: Reply with quote

Yes, it is turned on.

I've tried turning it off, perform rebuild, turn back on, then rebuild. No effect.

Turn it off, exit Plato, restart Plato, rebuild, rebuild dependencies. No effect.

Exit plato, start plato and reload project, enable dependency checking, rebuild project, rebuild dependencies. No effect.
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Wed Oct 15, 2014 9:36 pm    Post subject: Reply with quote

The <projectName>.ini file (in the project subfolder) is a text file that reveals the file handles and the dependency lists generated by Plato.
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 394
Location: Morrison, CO

PostPosted: Thu Oct 16, 2014 12:05 am    Post subject: Reply with quote

Perhaps this will help. This is one of the .INI file in the solution.

[Switches]
plugInID=1
[Breakpoints]
[Handles]
Next=8
1=D:\CMASTER.Virtual\CMASTERF95\CMAIN.FOR
2=D:\CMASTER.Virtual\CMASTERF95\CBLOCK.FOR
3=D:\CMASTER.Virtual\CMASTERF95\CCATALOG.FOR
4=D:\CMASTER.Virtual\CMASTERF95\CLITHO.FOR
5=D:\CMASTER.Virtual\CMASTERF95\CLOGPLT.FOR
6=D:\CMASTER.Virtual\CMASTERF95\CPRTCOD.FOR
7=D:\CMASTER.Virtual\CMASTERF95\CEDITS.FOR
[Dependents]
1=
2=
3=
4=
5=
6=
7=
[OpenFiles]
0="D:\CMASTER.Virtual\CMASTERF95\CMAIN.FOR",62,0,1,-1,-1,-1,-1,2,20,1075,523
Index=1
1="D:\CMASTER.Virtual\CMASTERF95\CEDITS.FOR",13,0,1,-1,-1,-1,-1,2,20,1075,523
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Thu Oct 16, 2014 6:29 am    Post subject: Reply with quote

OK so Plato is not finding any dependencies.

What does an include statement look like in your code?
Can you post a very simple example of two files, one with a main program with an INCLUDE and one listing the INCLUDEd file.
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 394
Location: Morrison, CO

PostPosted: Thu Oct 16, 2014 3:57 pm    Post subject: Reply with quote

I've set up two projects, one for the MAIN's that I'm working with and the second for the supporting functions/subroutines. I've combined these into a SOLUTION. That said, dealing with only a project or the solution makes no difference in the detection of the dependencies.

This is a shortened MAIN program I'm using. The INCLUDEd files are in the same directory:
PROGRAM CMAIN
CHARACTER*256 PR,CMPROGNM@
PR = CMPROGNM@()
PRINT *,"PROGRAM NAME=[",TRIM(PR),"]"
CALL XMCLOG
CALL CEXIT
END
SUBROUTINE XMCLOG
LOGICAL LDONE,SVONLY,LQUIT,REFILE,HASHLP
INCLUDE <FOREXT.INS>
CHARACTER*84 LOGINF,LOGHLD
CHARACTER*4 BPROJ,DPROJ,BSTATE,DSTATE
CHARACTER*12 BQUAD,DQUAD
CHARACTER*16 LSPERS
CHARACTER*12 LSDATE
CHARACTER*84 LSTTMP
character*80 out_list(20)
INTEGER IBSC,IDSC,BID
REAL BSC,DSC
LOGICAL NEWNAM,PROCHD
INTEGER RECNDX(32001)
INCLUDE <FORDEF.INS>
INCLUDE <FORCOM.INS>
INCLUDE <FOREQU.INS>
COMMON/MAIN1/BPROJ,DPROJ,BQUAD,DQUAD,BSTATE,DSTATE
COMMON/SORTX2/RECNDX
DATA HASHLP/.FALSE./
C
C --- INITIALIZE BLOCK COMMON
C
print *,"Calling BLOCKD"
CALL BLOCKD(.TRUE.)
APROJ = " "
stop
end

This is an abbreviated function (shortest one with includes, but it won't compile as written). These functions are in a sub-directory to the main one, but the INCLUDEd files are in the next level up (ergo the syntax differences).

SUBROUTINE BREGPR(IOPT,NFLAG)
INCLUDE <..\FORDEF.INS>
LOGICAL TOKEN,ICOMP,TTHELP
INCLUDE <..\ROCKDEF.INS>
INCLUDE <..\FORCOM.INS>
INCLUDE <..\ROCKCOM.INS>
INCLUDE <..\FOREQU.INS>
C
C --- PROCESS THE DESIRED OPTION
C
IF(IOPT.LT.0)GO TO 1600
C ENTER UNUSED DISPLAY CLEAR OPT INPUT
GO TO (1000,1000,1300,1400,1500),IOPT
1000 CONTINUE
C --- MAIN ENTRY
WRITE(ITTY,99900)
99900 FORMAT(' 2. BED CODE REGION: ',A)
IF(TTHELP(BUFF,102))GO TO 1000
1100 CONTINUE
NFLAG=0
STOP
END

Hope this helps.
Back to top
View user's profile Send private message Visit poster's website
JohnCampbell



Joined: 16 Feb 2006
Posts: 1835
Location: Sydney

PostPosted: Thu Oct 16, 2014 11:02 pm    Post subject: Reply with quote

Change your include file names from <...> to '...'
<...> indicates the file is in the ...\FTN95\INCLUDE folder; ie the folder defined by the "ftn95include" environment variable.

INCLUDE <FOREXT.INS>
should be changed to
INCLUDE 'FOREXT.INS'

and
INCLUDE <..\FORDEF.INS>
to
INCLUDE '..\FORDEF.INS'

There are some cases where <FOREXT.INS> may be useful, storing the file in the ...\FTN95\INCLUDE folder, when you want this include file to be available for all programs. I would not recommend this for general use.

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



Joined: 13 Oct 2014
Posts: 394
Location: Morrison, CO

PostPosted: Thu Oct 16, 2014 11:38 pm    Post subject: Reply with quote

Great! Thanks, and I'll make those changes momentarily.

Appreciate the help.
Bill
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato All times are GMT + 1 Hour
Page 1 of 1

 
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