consulo / consulo-unity3d Goto Github PK
View Code? Open in Web Editor NEWFrameworks: Unity3D
License: Apache License 2.0
Frameworks: Unity3D
License: Apache License 2.0
Is there any way to enable intentions for Consulo and C#?
ex: https://www.jetbrains.com/idea/help/intention-actions.html
15:53:17 Compilation completed successfully in 1 min 2 sec
15:53:17 Error running BuildMacOSX64: /Users/silent/Documents/Dropbox/Development/Unity/TSW Unity4.6 Test/out/production/Assembly-CSharp/TSW.app/Contents/MacOS/TSW is not exists
http://puu.sh/gU6I9/ea97719926.png
http://puu.sh/gU6Fc/32f9eac807.png
For unknown reason code references sometime not resolved.
This project compiles well in Unity 5.1.2 and MonoDevelop
Sample project https://www.dropbox.com/s/y5q3veuvca5sx5n/ConsuloSample28.zip?dl=0
It does change the calling methods parameters (weirdly, it just leaves new elements blank), but not the method signature itself. It returns a NullPointerException: null error in the console.
Get grid of 'Re-import Unity project'
Hello @VISTALL , i have a suggest about "code suggestion popup" - i mean the popup show the list of method/field/property... when we typing a letter...
Example:
I have a class with name: MyClassName
When i typing "m" (lowercase), the popup doesn't show MyClassName, it only show when i typing exactly letter that is "M" (uppercase)
So, can you improve this thing?
For the lines of code below, the error appears at "if".
var obj = null;
if (!obj ) break;
The error message is:
! (p0:System.Boolean) cannot be applied
to (p0:System.Boolean)
Unity has released an experimental build of their Editor yesterday
I tried to add unity sdk from consulo, but i get this error:
"The selected directory is not a valid home for Unity3D"
I tried these directories:
/opt/Unity/
/opt/Unity/Editor/
/opt/Unity/Editor/Data
All of them doesn't work
It will removed many legacy .NET code.
But after it - .NET run configuration will not available for Unity modules.
Require create new Run Configuration
I get this error when I try to import an Unity project (as provided in tutorial video). I did the same steps on a different computer and it worked.
RuntimeException: java.io.FileNotFoundException: F:\Server\Match 3 ios\Match3Game (Access is denied): java.io.FileNotFoundException: F:\Server\Match 3 ios\Match3Game (Access is denied)
Stack:
java.lang.RuntimeException: java.io.FileNotFoundException: F:\Server\Match 3 ios\Match3Game (Access is denied)
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at org.mustbe.consulo.visualStudio.util.VisualStudioSolutionParser.parse(VisualStudioSolutionParser.java:74)
at org.mustbe.consulo.visualStudio.importProvider.VisualStudioImportBuilder.loadItems(VisualStudioImportBuilder.java:297)
at org.mustbe.consulo.visualStudio.importProvider.ui.VisualStudioSetupTargetStep.(VisualStudioSetupTargetStep.java:53)
at org.mustbe.consulo.visualStudio.importProvider.VisualStudioImporterProvider.createSteps(VisualStudioImporterProvider.java:49)
at com.intellij.projectImport.ProjectImportProvider.addSteps(ProjectImportProvider.java:90)
at com.intellij.ide.util.newProjectWizard.modes.ImportMode.createSteps(ImportMode.java:73)
at com.intellij.ide.util.newProjectWizard.modes.WizardMode.getSteps(WizardMode.java:47)
at com.intellij.ide.util.newProjectWizard.AddModuleWizard.initModuleWizard(AddModuleWizard.java:138)
at com.intellij.ide.util.newProjectWizard.AddModuleWizard.(AddModuleWizard.java:94)
at com.intellij.ide.actions.ImportModuleAction.createImportWizard(ImportModuleAction.java:184)
at com.intellij.ide.actions.ImportModuleAction.selectFileAndCreateWizard(ImportModuleAction.java:139)
at com.intellij.ide.actions.ImportModuleAction.selectFileAndCreateWizard(ImportModuleAction.java:118)
at com.intellij.ide.actions.ImportModuleAction.doImport(ImportModuleAction.java:64)
at com.intellij.ide.actions.ImportModuleAction.actionPerformed(ImportModuleAction.java:60)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:248)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:263)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:958)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:124)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:233)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:106)
at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:532)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:546)
at java.awt.Component.processMouseEvent(Component.java:6525)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6290)
at java.awt.Container.processEvent(Container.java:2234)
at java.awt.Component.dispatchEventImpl(Component.java:4881)
at java.awt.Container.dispatchEventImpl(Container.java:2292)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
at java.awt.Container.dispatchEventImpl(Container.java:2278)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:702)
at java.awt.EventQueue$3.run(EventQueue.java:696)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:724)
at java.awt.EventQueue$4.run(EventQueue.java:722)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:721)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:843)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:640)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:380)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
if I have my project on in Unity I cannot build in Consulo because Unity won't allow another instance with the same project. I assume that this is expected.
The next question is if I have Unity closed I can build and run no problem, but I cannot debug. Is this expected?
I have been debugging by attaching to Unity but I cannot attach to the player.
It would be nice to build from Consulo event when Unity is running, It would also be nice to see the error messages from Unity in Consulo with the ability to click to go to the file line where the error occurred
Finally thank you for making Consulo!
On IDE start following message arrive:
Plugin Manager
Plugin "Unity3D" was not loaded: required plugin "org.mustbe.consulo.javascript" not installed. Disable Unity3D Open plugin manager
Hi. I have issue --> http://prntscr.com/61wh1h . I have installed 4.6.0 Unity, Mac OS 10.10.3, Web Player Unity also installed.
can not create unity project on mac.
Unity internally converts Int32 to Int when needed, making comparisons (<, =, >) of these two types compile and work fine. Nevertheless Consulo reports an incompatible-type error, as shown in the attached screenshot. For the record, if I int-cast the Int32 property the error goes away, but this shouldn't be needed.
here is the log:
5:16:37 PM IllegalArgumentException: Argument for @NotNull parameter 'firstItem' of com/intellij/openapi/roots/ui/configuration/SdkComboBox.setSetupButton must not be null: Argument for @NotNull parameter 'firstItem' of com/intellij/openapi/roots/ui/configuration/SdkComboBox.setSetupButton must not be null
In my case, I added C/programfiles/unity/editor/data/unityextensions/unity/networking/UnityEngine.Networking.dll and the errors with the networking classes went away.
I'm not sure if the UNetWeaver or CecilTools mono libs are required, I added them too just in case.
If I add a C# DLL in a unity folder, the consult project didn't pick up that dependency and I need to add it manually.
Hello. Great work, I love what you're doing here.
I've gotten Consulo to successfully build my Unity 5.1 project, and even run it when the Unity editor is closed. But if the Unity Editor is open, I get a failure with the following message in the log file:
BATCHMODE ARGUMENTS:
-batchmode
-projectPath
C:/Users/Public/Documents/Unity Projects/Test Project
-buildWindowsPlayer
C:/Users/Public/Documents/Unity Projects/Test Project/out/production/Test Project/$ModuleName$.exe
-quit
Successfully changed project path to: C:/Users/Public/Documents/Unity Projects/Test Project
C:/Users/Public/Documents/Unity Projects/Test Project
It looks like another Unity instance is running with this project open.
Multiple Unity instances cannot open the same project.
Project: C:/Users/Public/Documents/Unity Projects/Test Project
(Filename: C:/buildslave/unity/build/Editor/Src/Application.cpp Line: 303)
Aborting batchmode due to failure:
Fatal error! It looks like another Unity instance is running with this project open.
Multiple Unity instances cannot open the same project.
Project: C:/Users/Public/Documents/Unity Projects/Test Project
I'm using the latest (as of right this moment) version of Consulo and the Unity3d Plugin. Any suggestions?
Hey.
I just found Consulo and wanted to try it out since I work heavily on Unity with MonoDevelop and I am losing my mind with that setup. I work on Javascript with Webstorm and Php with Phpstorm, so, I when I found Consulo its like I found the chalice of youth!
However, I am having problems getting my project to work correctly, namely it highlights stuff like UnityEditor, UnityEngine, and even System and Linq not being found.
It even highlights lines like bool doThis = true; stating that it can't convert System.Boolean to System.Boolean (weird shit).
There is a picture if the problem:
http://puu.sh/gTU1T/44494f5719.png
And here is a picture of the solution (notice the paths):
http://puu.sh/gTUjU/a9c4d54c90.png
Maybe this info could be added to the bottom of the read me, it would have saved me 20 or so minutes since I didn't know where exactly was everything.
PS: Thank you for your awesome work.
Hi Consulo team, i'm using Consulo Unity IDE to write code, i very like it and guess Consolu can become a best solution to replace MonoDevelop for Unity developer on MacOS, but there is a critical problem that Consulo can freeze anytime when i am writing the code, i'm using OSX 10.10.5. Please have a consider to investigate and solve this problem!
I was able to fix this manually by adding it in (Dependencies/Add File Or Directory) and adding directory [Unity]\Editor\Data\UnityExtensions\Unity\GUISystem\4.6.1\Standalone
http://answers.unity3d.com/questions/788542/46-visual-studio-tools-and-unityengineui-reference.html
please add some command/button that will allow to do consulo project recreation or updating if something has changed in unity generated VS solution files
(as reference of this feature take a look to IDEA sbt (scala build tool)(at scala plugin) tool window)
UnityEngine.UI library not found for imported project.
Consulo: 1.0 #966
JVM: 1.8.0_40
Unity: 5.1.2f
Mac OS X: 10.10.4
Unity Plugin: 778
File '/Assets/Facebook/Scripts/IFacebook.dll' is not auto imported, but Unity create reference to this library inside Visual Studio Solution
After project import one of project dependencies not found: DarkTonic.CoreGameKit
Code for this module included in sources. Tried to rebuild - doesn't help.
Consulo: 1.0 #966
JVM: 1.8.0_40
Unity: 5.1.2f
Mac OS X: 10.10.4
Unity plugin: 1449
Seems that problem is that Consulo not define UNITY_5 for compile. That brakes compilation logic for that module. Seems that this problem was not appears in older version of Unity plugin.
Hm. When i tried to attach i get exception:
null
java.lang.NullPointerException
at org.mustbe.consulo.unity3d.run.Unity3dAttachRunner$1$1.connectionSuccess(Unity3dAttachRunner.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:88)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:68)
at com.sun.proxy.$Proxy90.connectionSuccess(Unknown Source)
at org.mustbe.consulo.dotnet.debugger.DotNetDebugThread.run(DotNetDebugThread.java:184)
Please import UnityEngine.UI.dll
into external references so we can do this:
using UnityEngine.UI;
using UnityEngine.EventSystems;
It's in the Assembly-CSharp.csproj
file:
<Reference Include="UnityEngine.UI">
<HintPath>/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll</HintPath>
</Reference>
Thanks! Great work!
This option is not available in any menu (^T, right-click or Refactor).
when I import a real unity project into consulo (100+ files), there are 5 modules in it. When I edit a cs file, consulo hangs again. If I delete all the modules except the one I need, the situation is much better, but I need to add all the dependencies to it manually. By the way, consulo adds a dll file twice to a module (in box 2).
I guess read and parse the arguments passed by Unity3D to Consulo and use them to bring to front or open same script that was double clicked from Unity. Minor convenience feature :) but a must have for the Unity plugin
Currently any code between the CGPROGRAM
and ENDCG
are marked with a background colour but the text is all black and no auto complete is offered.
Shader "UCLA Game Lab/Wireframe/Single-Sided"
{
Properties
{
_Color ("Line Color", Color) = (1,1,1,1)
_MainTex ("Main Texture", 2D) = "white" {}
_Thickness ("Thickness", Float) = 1
}
SubShader
{
Pass
{
Tags { "RenderType"="Transparent" "Queue"="Transparent" }
Blend SrcAlpha OneMinusSrcAlpha
ZWrite Off
LOD 200
CGPROGRAM
// The code from here >>>>>>>>>>>>>>>>>>>>>>
#pragma target 5.0
#include "UnityCG.cginc"
#include "UCLA GameLab Wireframe Functions.cginc"
#pragma vertex vert
#pragma fragment frag
#pragma geometry geom
// Vertex Shader
UCLAGL_v2g vert(appdata_base v)
{
return UCLAGL_vert(v);
}
// Geometry Shader
[maxvertexcount(3)]
void geom(triangle UCLAGL_v2g p[3], inout TriangleStream<UCLAGL_g2f> triStream)
{
UCLAGL_geom( p, triStream);
}
// Fragment Shader
float4 frag(UCLAGL_g2f input) : COLOR
{
return UCLAGL_frag(input);
}
// <<<<<<<<<<<<< to here is just plain text.
ENDCG
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.