consulo / consulo-unity3d

Frameworks: Unity3D
Apache License 2.0
103 stars 10 forks source link

File moving may broke resolving #29

Closed ernestp closed 8 years ago

ernestp commented 9 years ago

For unknown reason code references sometime not resolved.

  1. Import project
  2. Open file Scripts/UsingBug.cs

This project compiles well in Unity 5.1.2 and MonoDevelop Sample project https://www.dropbox.com/s/y5q3veuvca5sx5n/ConsuloSample28.zip?dl=0

VISTALL commented 9 years ago

Strange. I imported and got this:

Try, first ROOT_DIR -> Right Click -> Sync Project

And then: File -> Invalidate Caches

ernestp commented 9 years ago

I've got that problem in this project by moving scripts to different folders. Sync Project not help, but reimport does. Invalidate caches also solve original problem, that was reason for creating this bug. Seems that was some leftover from previous Consulo build.

VISTALL commented 9 years ago

Can you say that file i need to move, for repeat problem?

ernestp commented 9 years ago

I just reorganize files in Unity, trying to achieve same file structure as in my own project. Not sure if it was some concrete move. Just create new folder in Unity and drag and drop old files to new folder structure.

ernestp commented 9 years ago

Updated Consulo and plugins. Some of classes is not resolved. Reimport, invalidate caches and synchronise files is not help. screenshot 2015-08-01 19 30 50

VISTALL commented 9 years ago

Sorry for late answer. I cant reproduce:

ernestp commented 9 years ago

Found some weird stuff regarding this bug. I has stable issue with GameSetting2 class, as on screen and clear caches reimport and synchronise was not help. But when I navigate to my project and delete .consulo folder prior reimport, then issue is gone. Seems that some leftovers in this folder is affecting reimport.

VISTALL commented 8 years ago

I am closing this issue. If issue reproduced - need create new

Wambosa commented 8 years ago

first off, thank you for writing this amazing IDE!

confirmed that this issue still exists. I work on two machines. By renaming a folder on one machine and commit to source control, the other machine loses reference to the files in the new folder. The problem is most likely caused by me omitting the .consulo contents from source control.

The fix is to delete the .consulo folder and reimport. This workaround is fine for me.

VISTALL commented 8 years ago

You can use 'Re-import Project' (right click on project node)

Wambosa commented 8 years ago

that is even easier. thank you :)