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

Commit ac810be

Browse files
committed
[[ Bug ]] Ensure dictionary gen ignores protected stacks
This is only an issue when building commercial from source
1 parent 3483226 commit ac810be

1 file changed

Lines changed: 26 additions & 11 deletions

File tree

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10939,16 +10939,24 @@ private function revIDEGetExtensionDocsData pAPI
1093910939
if tExtensionData["source_type"] is "lcb" then
1094010940
dispatch function "revDocsGenerateDocsFileFromModularFile" to stack "revDocsParser" with \
1094110941
tFolder & slash & tSource
10942+
put the result into tDoc
1094210943
else if tExtensionData["source_type"] is "lcs" then
10943-
local tStack
10944-
put the long id of stack (tFolder & slash & tSource) into tStack
10945-
dispatch function "revDocsGenerateDocsFileFromText" to stack "revDocsParser" with \
10944+
local tStack, tPassword
10945+
try
10946+
put the long id of stack (tFolder & slash & tSource) into tStack
10947+
put the password of tStack into tPassword
10948+
end try
10949+
if tStack is not empty and tPassword is empty then
10950+
dispatch function "revDocsGenerateDocsFileFromText" \
10951+
to stack "revDocsParser" with \
1094610952
the script of tStack, tStack
10953+
put the result into tDoc
10954+
end if
10955+
end if
10956+
if tDoc is not empty then
10957+
# Output the lcdoc file
10958+
revIDESetUTF8FileContents tAPIDoc, tDoc
1094710959
end if
10948-
put the result into tDoc
10949-
10950-
# Output the lcdoc file
10951-
revIDESetUTF8FileContents tAPIDoc, tDoc
1095210960
end if
1095310961

1095410962
local tAPIJS
@@ -11299,10 +11307,17 @@ private command revIDEGenerateDistributedAPI
1129911307
put the stackfiles of stack "home" into tIDELibs
1130011308
split tIDELibs by return and comma
1130111309
repeat for each key tStackName in tIDELibs
11302-
get revDocsGenerateDocsFileFromText(the script of stack tStackName, \
11303-
the long id of stack tStackName)
11304-
if it is not empty then
11305-
put it into tIDEA[tIDECount]
11310+
local tStack, tPassword, tDoc
11311+
try
11312+
put the long id of stack tStackName into tStack
11313+
put the password of tStack into tPassword
11314+
end try
11315+
if tStack is not empty and tPassword is empty then
11316+
put revDocsGenerateDocsFileFromText(the script of tStack, \
11317+
tStack) into tDoc
11318+
end if
11319+
if tDoc is not empty then
11320+
put tDoc into tIDEA[tIDECount]
1130611321
add 1 to tIDECount
1130711322
end if
1130811323
end repeat

0 commit comments

Comments
 (0)