playMaker

Author Topic: Compilation error  (Read 265 times)

jbonastre

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Compilation error
« on: October 09, 2017, 05:51:24 AM »
I´m getting this error with Playmaker 1.8.5 and Unity 5.6.3, 2017.1 and 2017.2.

Code: [Select]
2>Assets\PlayMaker\Editor\FsmComponentInspector.cs(10,19,10,25): error CS0234: The type or namespace name 'Editor' does not exist in the namespace 'HutongGames' (are you missing an assembly reference?)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3206
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Compilation error
« Reply #1 on: October 09, 2017, 12:27:45 PM »
Are there any other errors in the console before this?

jbonastre

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Re: Compilation error
« Reply #2 on: October 09, 2017, 01:38:30 PM »
No, this is the first message. I´ve reported the bug 1689

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3206
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Compilation error
« Reply #3 on: October 09, 2017, 02:41:16 PM »
Ahhh, ok I didn't realize that you're trying to compile in Visual Studio, not Unity.
There is an issue that I've been going back and forth with Unity concerning this. They changed something in the way they build the VS projects. It really should just work, and I don't think there's a lot we can do on our end (but I could be wrong). Hopefully, we can come up with a fix soon. In the meantime, you will need to switch to Unity to compile the project and check for errors (I'm assuming that's the reason you're compiling in VS?)

On the off chance, also double check that you're not using the new Unity scripting back end currently in beta, that can cause problems.

jbonastre

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Re: Compilation error
« Reply #4 on: October 09, 2017, 11:17:37 PM »
If I use .Net 4.6 in Unity, the project build finishes correctly. However, using the stable .Net 3.5, the Editor project isn´t built. Could you check if your Editor .dll is built with the correct .Net version? I mean, with 3.5

jbonastre

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Re: Compilation error
« Reply #5 on: October 10, 2017, 11:53:17 AM »
More tests:

x86 and .NET 3.5 -> build without issues
x86_64 and .NET 3.5 -> build error

jbonastre

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Re: Compilation error
« Reply #6 on: October 14, 2017, 04:20:27 AM »
Is there any update? Have you been able to reproduce the issue?

jbonastre

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Re: Compilation error
« Reply #7 on: October 15, 2017, 01:55:30 AM »
To add more info, the issue only happens on Windows (on Mac, it works fine). I´ve tried Visual Studio and MonoDevelop in both cases

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3206
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Compilation error
« Reply #8 on: October 18, 2017, 01:11:08 PM »
Hi, sorry for the delayed response. I'll try to repro and let you know. Since it breaks in a very specific scenario you should also submit a bug report to Unity. There may not be a lot we can do about it on our end.