errors when compiling with plugin

suddenly getting some strange errors compiling our app, which uses a plugin we wrote.

a dialog box pops up (twice) with the following messages, and these messages show up
on the console as well.

note that we don’t get these errors when building a desktop app, only a web app.

any help would be appreciated.

messages:
Oct 7 11:46:37 mymac Xojo[1016] : Runtime Error
Please report what caused this error along with the information below.
XojoPlugins/PluginBridge/Source/PluginDefinition.cpp: 566
Failure Condition: IsNativeTarget( whichTarget )

[quote=290519:@Robert Meyer]suddenly getting some strange errors compiling our app, which uses a plugin we wrote.

a dialog box pops up (twice) with the following messages, and these messages show up
on the console as well.

note that we don’t get these errors when building a desktop app, only a web app.

any help would be appreciated.

messages:
Oct 7 11:46:37 mymac Xojo[1016] : Runtime Error
Please report what caused this error along with the information below.
XojoPlugins/PluginBridge/Source/PluginDefinition.cpp: 566
Failure Condition: IsNativeTarget( whichTarget )[/quote]

Please file a bug report with all of the files in the plugin folder attached.

Maybe clear cache files and try again?

Christian - could you elaborate on that a bit?

I’m not sure how to clear cache files - I didn’t even know they existed…

thanks.
rm.

Usually when getting error like that then there is something wrong with the plugin.

Incorrect number of registered items from what the counter in the plugin says. (like if it says class has 7 methods but it only has 5)
Incorrect syntax in declaration that goes to Xojo
Segment placed in incorrect platform

Etc etc.

You can look into your temp folder (specialfolder.temporary.launch) for the xojo scratch folder, into Caches folder for Xojo plugin and project caches.

I had a minor error with my custom plugin (just a text string error) and Xojo didn’t even load my plugin at all. I’d start there, especially if it’s been recompiled recently.

Cheers
Grant

Thanks everybody for all the input;

here’s a question for the group: is there a difference between a plugin
written for a desktop app vs. a web app?

our plugin has been working for a couple of years now in a desktop app,
but fails with a web app.

also, I put a really small plugin together today, with only 3 methods and a structure,
and it produces the same errors at compile time (as in my original post).

thanks in advance for any input/ideas.

rm.

Christian:

I looked at open files for the xojo app, and I’m seeing items like this:

/Users/bobmeyer/Library/Caches/com.xojo.xojo/Cache.db
/Users/bobmeyer/Library/Caches/com.xojo.xojo/Cache.db-wal

and a few others.

should I just delete these?

thanks.
rm

Did you set flags to mark things as console safe?

Yes. A Web app is a kind of console app. It has no GUI. It produces html, which is interpreted by the browser, which supplies the UI. The web app itself has no UI.

Tim:

thanks for your response.

so, the question is, is writing a plugin for a web app somehow different than
writing a plugin for a console or desktop app?

Cristian:

are you referring to the checkboxes that show up in the inspector panel
when looking at various methods?

I see many checkboxes, with labels like “include in”, desktop, web, 32-bit, 64-bit, etc.

they’re all checked by default. I haven’t touched any of them.

I mean REALconsoleSafe

[quote=291430:@Robert Meyer]is writing a plugin for a web app somehow different than
writing a plugin for a console or desktop app?[/quote]
Not different than a console app. Different than a desktop app. Follow Christian’s advice.

If this is the same plugin as detailed in case #45450 I think the replies I’ve sent you on that case should fix the issue