I have a customer who is having a problem once the Ohanaware App Kit is added to their API 2.0 project. Xojo complains that their folderitem constructors (which are API 2.0) are invalid, which were fine before.
Type "Folderitem" has no member named "PathModes"
f = new folderitem( thePath, folderitem.pathmodes.native )
Type "int32" has no member named "Native"
f = new folderitem( thePath, folderitem.pathmodes.native )
The weird thing is I can enter either API 2.0 or API 1.0 into a API 2.0 (with the App Kit present) and get no such errors.
Dim f as new folderItem( "/Users/rowlands/Desktop/test.txt", folderItem.pathModes.native )
f = new folderItem( "/Users/rowlands/Desktop/test.txt", folderItem.pathTypeNative )
Is there any advice I can forward onto the customer as I really donât know what to suggest? At this point I also cannot convert the App Kit to API 2.0 only as I and some of my customers use it with pre 2019r2 versions.
Understood, any thoughts on the issue the customer is experiencing, whereby Xojo doesnât like their API 2.0 folderitem constructors after adding the Ohanaware App Kit?
Iâm following this thread with interest, as I am the customer. Sam is, of course, the model of discretion .
Right now Iâm using 2020r2.1 but this behavior goes back prior to 2020r1, when I first purchased OAK. Incidentally, if I do âfixâ my folderitems, stuff works.
Before I contemplate such a thing, is there any point in tossing out plugins till I see a change? After all, something seems to be making âmeâ special.
Future Jerry: As a hack, I deleted OAK2020.folderitem. Analyzing the project only found a handful of lines in OAK that depended on it, which I commented out.
With this, my test project, which thankfully didnât need any of that stuff, worked fine.
Note: While the plugins-conflict question appears to have been ruled out, earlier I had temporarily reinstalled a clean 2020r1. This made no difference.
You could rename it titleBarFolderItem or file a ticket with Xojo because I think the compiler is actually broken here. Why in the world would it be looking for the PathModes enum on an extends method?
Norman explained to me how the compiler might end up looking at your Extends rather than FolderItem. tough situation, youâll want to do the rename for sure.