Found identifier when expecting ';'
-
I'm following a video by David Healey about the custom preset browser, but I'm running into an issue when creating the custom buttons for "More" and "Save Preset."
I'm getting the error Found identifier when expecting ';' at the section:
icons.more = Content.createPath();
icons.more.loadFromData(pathData);Here's the complete code:
});
inline function drawMoreAndSaveButtons()
{
local buttonNames = ["More", "SavePreset"];if (!buttonNames.contains(obj.text)) return; local a = obj.area; local icons = {}; local pathData = *svg code* icons.save = Content.createPath(); icons.save.loadFromData(pathData); local pathData = *svg code* icons.more = Content.createPath(); icons.more.loadFromData(pathData); local icon = obj.text == "More" ? icon.more : icons.save; g.setColour(Colours.withAlpha(obj.textColour, 1.0)); g.drawAlignedText(obj.text, a, "centred"); g.setColour(Colours.withAlpha(obj.itemColour, 0.5)); g.fillEllipse([a[0] + 5, a[1] + a[3] / 2 - 6 / 2, 6, 6]);
}
});
-
What's this?
-
@d-healey My svg code is really long so this is only for the forum! :)
in my real project there is:Local pathData = and then the long code
-
@tiesvdam Dont forget to add the ";" at the end of the SVG code ;)
-
@tiesvdam Does that really long code end in a semicolon? The error is telling you that it's looking for a semicolon and not finding one, it should also give you a line number which will help you narrow down which line the error is on (it may be the line before the line number given with the error).
-
@HISEnberg That was the problem for this error! thanks you both. Only still having the trobble with this part:
g.setColour(Colours.withAlpha(obj.textColour, 1.0)); g.drawAlignedText(obj.text, a, "centred"); g.setColour(Colours.withAlpha(obj.itemColour, 0.5)); g.fillEllipse([a[0] + 5, a[1] + a[3] / 2 - 6 / 2, 6, 6]);
And then both with de g.setColour
-
@tiesvdam said in Found identifier when expecting ';':
Only still having the trobble with this part:
More info needed. What is the issue?
-
@tiesvdam Same error: Found identifier when expecting ';'
This is for the ending of the code with the More en Save buttons
-
@tiesvdam you're missing a semi colon at the end of a line
-
@tiesvdam Okay all my errors are gone thanks, but the tezt didn't swith to the icons... RIP xD
Thank you for the help & tips
-
This is my total script, did i do anything wrong?
//More button * save button drawMoreAndSaveButtons(); }); inline function drawMoreAndSaveButtons() { local buttonNames = ["More", "S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QzjsZCwlBAQDQhxxZCwFmhPDQSn2ZCw1OCPDQVE7ZCwFBiODQ8H.aCwFCBODQexCaCwFXfNDQVAGaCwVF9MDQ.0IaCwlSaMDQCMLaCwFE3LDQDINaCwlfTLDQwnOaCw1qvKDQ5qPaCwlrLKDQTRQaCwlrtJDQSbQaCwlrtJDQSbQaCwlcQo.QSbQaCwlcQo.QSbQaCw1Ysn.Q3MQaCw1aIn.QnhPaCwlokm.QrZOaCwVHBm.QL1MaCwF9dl.Qb0KaCwVP7k.QtXIaCw1DZk.QcfFaCw1f3j.QEMCaCwloWj.QGe+ZCw1j2i.QLW6ZCwVWXi.Q701ZCwFF5h.QD7wZCwF1bh.QZprZCw1q.h.QxAmZCw1qkg.QECgZCw15Kg.QQuZZCwVbyf.QVGTZCwlTbf.QZLMZCwVmFf.Qf+EZCw1Wxe.Q0g9YCwloee.Qjz1YCwVeNe.Q73tYCwF79d.QOvlYCwFBwd.QuadYCwlyjd.Qx7UYCwlRZd.QvTMYCwFgQd.Q9jDYCw1eJd.Q3t6XCwlPEd.Q5yxXCwlyAd.Qb0oXCwFJ.d.Q7zfXCwF..d.Q5DcXCwF..d.Q5DcXCMVY"; icons.save = Content.createPath(); icons.save.loadFromData(pathData); local icon = obj.text == "More" ? icon.more : icons.save; g.setColour(Colours.withAlpha(obj.itemColour, 0.5)); g.fillEllipse([a[0] + 5, a[1] + a[3] / 2 - 6 / 2, 6, 6]); }
});
-
@tiesvdam said in Found identifier when expecting ';':
//More button * save button drawMoreAndSaveButtons(); });
Is this within a look and feel function?
You don't need to redeclare pathData as local, you can just overwrite the original value.
-
@d-healey It is indeed in the same part as the LAf of the preset browser. I just don't quite understand what I need to leave out so that it works. Sorry that I don't understand the easy terms, I just started with HISE & coding and immediately have a big assignment.
-
Debugging code is one of the fastest ways to improve. So you need to find which line is missing the semi colon, a basic technique is to comment out lines until the error goes away, then start uncommenting them until the error returns.