Skip to content

Commit

Permalink
Add @:nativeGen to Settings.hx.
Browse files Browse the repository at this point in the history
Disable `addMetadata` macro in build.hxml
Update readme with current state of project.
  • Loading branch information
skial committed Jan 21, 2016
1 parent 028ae2d commit 576ebef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ End of Stream encountered before parsing was completed.
at PluginCore.Utilities.ObjectSerializer.Deserialize(String file, Object obj, Boolean checkValidity)
```

And once FD opens, then...

```
Object reference not set to an instance of an object.
at sampleplugin.PluginMain.HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority)
at PluginCore.Managers.EventManager.DispatchEvent(Object sender, NotifyEvent e)
```
And once FD opens, with a dialog box `Unable to load an imcompatiable or broken plugin. c:/path/to/plugin.dll`.

[Sample Plugin]: https://github.com/fdorg/flashdevelop/tree/development/External/Plugins/SamplePlugin "FlashDevelop SamplePlugin"
6 changes: 3 additions & 3 deletions build.hxml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
-net-lib "C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll@std"
-net-lib "C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll@std"

# Required to prevent FD error.
--macro addMetadata('@:strict(cs.system.SerializableAttribute)', 'cs.internal.HxObject')
#--macro addGlobalMetadata('', '@:strict(cs.system.SerializableAttribute)', true)
# Doesnt appear to be needed any more. @:nativeGen seems to work to avoid serialization issue(s).
#--macro addMetadata('@:strict(cs.system.SerializableAttribute)', 'cs.internal.HxObject')
#--macro addGlobalMetadata('cs.', '@:strict(cs.system.SerializableAttribute)', true)

-main Main

Expand Down
2 changes: 1 addition & 1 deletion src/sampleplugin/Settings.hx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import cs.system.componentmodel.DefaultValueAttribute;
*/
// @see https://github.com/HaxeFoundation/haxe/pull/3954
@:strict(SerializableAttribute)
class Settings {
@:nativeGen class Settings {

@:isVar
@:property
Expand Down

0 comments on commit 576ebef

Please sign in to comment.