IDE communicator: scriptRuntimeError

My newly favourite version of macOS doesn’t seem to like my IDE communicator script anymore. Unfortunately, the error is rather vague:

[quote]{
“tag”:“build”,
“response”:{
“scriptError”:[
{
“type”:“scriptRuntimeError”,
“line”:0,
“number”:0,
“message”:""
}
]
}
}[/quote]

What am I doing wrong? App is now signed. Running in debugger also gives the same error.

Here is the beginning of the script:

[code]dim MaxVersion as String = “0”
if MaxVersion = “” then MaxVersion = “0”

dim MajorVersion as string = “5”
dim MinorVersion as String = “1”
dim BugVersion as String = “0”
dim BetaVersion as String = “b1”

dim basePath as string
basePath = “/Users/beatrixwillius\ 1/Documents/Development/Mail\ Archiver/”

'scheduler: only for normal and pro
if MaxVersion = “0” or MaxVersion = “1” then
openfile(basePath + “code\ current/max\ scheduler.xojo_xml_project”)
ConstantValue(“App.kMaxVersion”) = MaxVersion
if ConstantValue(“App.kMaxVersion”) = “0” then
PropertyValue(“App.Application Identifier”) = “com.mothsoftware.mailarchiverx-helper”
PropertyValue(“App.MacOSXAppName”) = "Mail Archiver X "
elseif ConstantValue(“App.kMaxVersion”) = “1” then
PropertyValue(“App.Application Identifier”) = “com.mothsoftware.mailarchiverxpro-helper”
PropertyValue(“App.MacOSXAppName”) = "Mail Archiver X Pro "
else
print ConstantValue(“App.kMaxVersion”)
end if
if BuildApp(16) = “” then
return
else
DoCommand “SaveFile”
DoCommand(“CloseWindow”)
end if
end if[/code]

Try declaring and assigning variables on two lines. I’ve seen the compiler ball at things like that before.

dim MaxVersion as String = "0"

To

dim MaxVersion as String maxVersion = "0"

@Greg O’Lone: no, that’s not causing the problem.

Me: stupid
Xojo: bad error message

This here shows the problem:

dim basePath as string = "/Users/beatrixwillius\\ 1/Documents/Development/Mail\\ Archiver/" openfile(basePath + "code\\ current/max\\ scheduler.xojo_xml_project")

The username on the Catalina machine is “beatrixwillius” and not “beatrixwillius\ 1”. I forgot to change the username for the script. Actually, I should make this a parameter. As soon as I have the correct username the script works fine. But Xojo should have a better error message. Even if it’s the most beloved “file not found”.

Here we are: <https://xojo.com/issue/56037>