It is currently Sat Jan 23, 2021 8:32 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: [BY_DESIGN] IDE scans files without parsing into AST
PostPosted: Mon May 18, 2015 5:08 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Feb 19, 2010 3:42 am
Posts: 544
Hello!

The auto completion does not work currently when a usemodule M1 is used and M1 has includeFiles; not even when the files are located under a project and the autocomplete settings are done.

This is explained here http://www.purebasic.fr/blog/?p=417 .
The IDE does not scan or evaluate includes.

But, that blog entry is from 2013; can something be done to enable autocomplete and argument help for modules which are built up from multiple include files?

Maybe EnableExplicit and UseModule shall be switched?
Any trick?


Main.pb

Code:
IncludeFile "M1.pb"

DeclareModule Main
   EnableExplicit
   
   UseModule M1
      
   declare test()   
EndDeclareModule

Module Main
   EnableExplicit
   
   UseModule M1
   
Procedure test()
  debug "in test..."
  M1::testOfM1()   ; auto complete shown
  M1::testOfM2() ; auto complete not shown
   EndProcedure
EndModule



M1.pb:
Code:
DeclareModule M1
   EnableExplicit
   
   includefile "M1.d.pb"
   
   declare testOfM1()
   
EndDeclareModule

Module M1
   EnableExplicit

   includefile "M1.i.pb"
   
   Procedure testOfM1()
   
   EndProcedure   
EndModule



M1.i.pb:
Code:
Procedure testOfM2()
   debug "in testOfM2..."
EndProcedure


M1.d.pb:
Code:
declare testOfM2()



Thanks in advance!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye