Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit cf3cd6f

Browse files
committed
[[ Bug ]] Ensure commercial ext api is copied across to docs cache
1 parent e5ba453 commit cf3cd6f

1 file changed

Lines changed: 19 additions & 11 deletions

File tree

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10902,33 +10902,41 @@ private function revIDEGetExtensionDocsData pAPI
1090210902
revIDEEnsurePath tCachedDataFolder
1090310903

1090410904
local tInputs
10905-
put tFolder & slash & tSource into tInputs[1]
10905+
put empty into tInputs
10906+
if tSource is not empty then
10907+
put tFolder & slash & tSource into tInputs[1]
10908+
end if
1090610909

1090710910
# If we are running from source, also add the docs parser as an input
1090810911
# dependency of the docs files
1090910912
if not revEnvironmentIsInstalled() then
10910-
put the effective filename of stack "revDocsParser" into tInputs[2]
10913+
put the effective filename of stack "revDocsParser" into \
10914+
tInputs[the number of elements in tInputs + 1]
1091110915
end if
1091210916

1091310917
local tNeedUpdate, tError, tAPIDoc
1091410918
put tCachedDataFolder & slash & "api.lcdoc" into tAPIDoc
10915-
put revIDEIsFilesetStale(tInputs, \
10916-
tAPIDoc, false, tError) \
10919+
put revIDEIsFilesetStale(tInputs, tAPIDoc, false, tError) \
1091710920
into tNeedUpdate
1091810921

1091910922
# If there is an up-to-date api.lcdoc in the source folder, just copy that across
1092010923
local tSourceAPI
1092110924
put tFolder & slash & "api.lcdoc" into tSourceAPI
10922-
if tNeedUpdate is true and there is a file tSourceAPI then
10923-
if revIDEIsFilesetStale(tInputs, \
10924-
tSourceAPI, false, tError) \
10925-
is false then
10926-
10927-
revIDESetUTF8FileContents tAPIDoc, revIDEUTF8FileContents(tSourceAPI)
10925+
if there is a file tSourceAPI then
10926+
if tSource is empty then
1092810927
put false into tNeedUpdate
10928+
if there is no file tAPIDoc then
10929+
revIDESetUTF8FileContents tAPIDoc, revIDEUTF8FileContents(tSourceAPI)
10930+
end if
10931+
else if tNeedUpdate then
10932+
if revIDEIsFilesetStale(tInputs, tSourceAPI, false, tError) \
10933+
is false then
10934+
10935+
revIDESetUTF8FileContents tAPIDoc, revIDEUTF8FileContents(tSourceAPI)
10936+
put false into tNeedUpdate
10937+
end if
1092910938
end if
1093010939
end if
10931-
1093210940
# Regenerate the lcdoc file if required
1093310941
if tNeedUpdate is true then
1093410942
# Generate the docs text in lcdoc format

0 commit comments

Comments
 (0)