diff --git a/build/shared/lib/languages/PDE.properties b/build/shared/lib/languages/PDE.properties index d28d017f3..269079e10 100644 --- a/build/shared/lib/languages/PDE.properties +++ b/build/shared/lib/languages/PDE.properties @@ -343,7 +343,7 @@ editor.status.missing.closing_curly_bracket = Missing closing curly bracket "}" editor.status.missing.add = Consider adding "%s" editor.status.reserved_words = "color" and "int" are reserved words & cannot be used as variable names # methoddef, varname, classname, namefield, typeA, typeB will be replaced with the correct value during runtime (don't translate) -editor.status.undefined_method = The function %s does not exist +editor.status.undefined_method = The function "%s(%s)" does not exist editor.status.empty_param = The function "%s()" does not expect any parameters editor.status.wrong_param = The function "%s()" expects parameters like: "%s(%s)" editor.status.undef_global_var = The global variable "%s" does not exist diff --git a/java/src/processing/mode/java/pdex/ErrorMessageSimplifier.java b/java/src/processing/mode/java/pdex/ErrorMessageSimplifier.java index a7b06bbef..79ce70cdf 100644 --- a/java/src/processing/mode/java/pdex/ErrorMessageSimplifier.java +++ b/java/src/processing/mode/java/pdex/ErrorMessageSimplifier.java @@ -166,10 +166,9 @@ public class ErrorMessageSimplifier { case IProblem.UndefinedMethod: if (args.length > 2) { - result = Language.text("editor.status.undefined_method"); - String methodDef = "\"" + args[args.length - 2] + "(" - + removePackagePrefixes (args[args.length - 1]) + ")\""; - result = result.replace("methoddef", methodDef); + String methodName = args[args.length - 2]; + String methodArgs = removePackagePrefixes(args[args.length - 1]); + result = Language.interpolate("editor.status.undefined_method", methodName, methodArgs); } break; diff --git a/todo.txt b/todo.txt index 2af0072ba..9114f5993 100644 --- a/todo.txt +++ b/todo.txt @@ -10,8 +10,10 @@ X Change "method" to "function" in a few error messages X https://github.com/processing/processing/issues/3225 X ErrorMessageSimplifier should use the language subst stuff o also, shouldn't that be one text() method with different args? +X Debugger "String is null" error when hitting breakpoint +_ https://github.com/processing/processing/issues/3265 X Error message for incorrect function arguments is wonky -X https://github.com/processing/processing/issues/3268 +_ https://github.com/processing/processing/issues/3268 contribs X Window size not passing into Tweak Mode