playMaker

Author Topic: Compilation error  (Read 4436 times)

jbonastre

  • Playmaker Newbie
  • *
  • Posts: 7
Compilation error
« on: October 09, 2017, 08: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: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Compilation error
« Reply #1 on: October 09, 2017, 03:27:45 PM »
Are there any other errors in the console before this?

jbonastre

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

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Compilation error
« Reply #3 on: October 09, 2017, 05: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
Re: Compilation error
« Reply #4 on: October 10, 2017, 02:17:37 AM »
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
Re: Compilation error
« Reply #5 on: October 10, 2017, 02:53:17 PM »
More tests:

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

jbonastre

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

jbonastre

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Compilation error
« Reply #7 on: October 15, 2017, 04: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: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Compilation error
« Reply #8 on: October 18, 2017, 04: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.

GonerGames

  • Junior Playmaker
  • **
  • Posts: 53
Re: Compilation error
« Reply #9 on: December 08, 2017, 12:38:14 PM »
I know this one is a bit old, but it just happened to us.

Scenario:
I updated to Unity 2017.2.0F3.
Opened an existing small project from 5.6
Tried to build in VS 2017 - errors with Playmaker
Noticed that the namespace for Hutong was not referencing anymore/properly in VS 2017.

Solution:
In the VS 2017 solution explorer window on right hand side, double click on your project name (not the ones with the .editor etc) -> double click references -> look for Playmaker.
In my case I had a yellow triangle in the icon. Once I clicked on the Playmaker reference once it seemed to resolve itself.

Not very technical, but I have had this work on 3 different projects now. 

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Compilation error
« Reply #10 on: December 14, 2017, 01:48:25 AM »
Hi,

 Thanks for the tips :)

 Bye,

 Jean