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

Commit 94851aa

Browse files
committed
[[ Bug ]] Ensure support files are full paths when compiling
1 parent e0d62f9 commit 94851aa

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

Toolset/libraries/revidedeveloperextensionlibrary.livecodescript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private function __revIDEDeveloperExtensionCompileAndFetchDetails pFolder, \
205205
if tType is "lcb" then
206206
# The compiled module or manifest is not up to date, so compile.
207207
__revIDEDeveloperExtensionLog "Compiling module" && pFolder & slash & tSource
208-
__revIDEDeveloperCompileModule pFolder & slash & tSource, tSupport, pFolder
208+
__revIDEDeveloperCompileModule pFolder, tSource, tSupport, pFolder
209209
if the result is not empty then
210210
# This may be better as a warning, and try to parse info direct from the file.
211211
__revIDEDeveloperExtensionSendError the result
@@ -589,8 +589,8 @@ private function __fetchMetadatum pXmlId, pKey
589589
return textDecode(revXMLNodeContents(pXmlId, tNode), "utf-8")
590590
end __fetchMetadatum
591591

592-
private command __revIDEDeveloperCompileModule pFile, pSupportFiles, pTargetFolder
593-
revIDEExtensionCompile pFile, pSupportFiles, pTargetFolder
592+
private command __revIDEDeveloperCompileModule pFolder, pFile, pSupportFiles, pTargetFolder
593+
revIDEExtensionCompile pFolder, pFile, pSupportFiles, pTargetFolder
594594

595595
if the result is not empty then
596596
__revIDEDeveloperCompilationError the result

Toolset/libraries/revideextensionlibrary.livecodescript

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ private command __revIDELCBExtensionLoad pID, pFolder, pVersion, pStatus, \
10891089
-- If we have an error loading, try to recompile the extension
10901090
if pError is not empty then
10911091
if not pIsIDEExtension and pSourceFile is not empty then
1092-
revIDEExtensionCompile pFolder & slash & pSourceFile, tSupportFiles, pFolder, \
1092+
revIDEExtensionCompile pFolder, pSourceFile, tSupportFiles, pFolder, \
10931093
revIDEExtensionBytecodeFilename(true)
10941094
if the result is empty then
10951095
local tNewError
@@ -1455,10 +1455,16 @@ on revIDEExtensionUpdateAPI pFolder, pExtensionSource
14551455
end if
14561456
end revIDEExtensionUpdateAPI
14571457

1458-
command revIDEExtensionCompile pFile, pSupportFiles, pTargetFolder, pOutputFilename
1458+
command revIDEExtensionCompile pFolder, pFile, pSupportFiles, pTargetFolder, pOutputFilename
1459+
// Make file paths full paths
1460+
repeat with tLine = 1 to the number of lines in pSupportFiles
1461+
put pFolder & slash before line tLine of pSupportFiles
1462+
end repeat
1463+
put pFolder & slash before pFile
1464+
14591465
extensionCompile "", pFile, pSupportFiles, "", \
1460-
revIDESpecialFolderPath("user extensions") & slash & \
1461-
"interface", pTargetFolder, pOutputFilename
1466+
revIDESpecialFolderPath("user extensions") & slash & \
1467+
"interface", pTargetFolder, pOutputFilename
14621468

14631469
if the result is not empty then
14641470
return the result for error

0 commit comments

Comments
 (0)