[BY_DESIGN] IDE scans files without parsing into AST

Working on new editor enhancements?
HanPBF
Enthusiast
Enthusiast
Posts: 563
Joined: Fri Feb 19, 2010 3:42 am

[BY_DESIGN] IDE scans files without parsing into AST

Post by HanPBF »

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: Select all

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: Select all

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: Select all

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

Code: Select all

declare testOfM2()

Thanks in advance!