Jump to content


Incorrect errors


  • Please log in to reply
1 reply to this topic

#1 ava

ava

    Member

  • Members
  • PipPip
  • 23 posts
  • LocationBruges

Posted 18 October 2016 - 11:12 AM

In Unity 5.4.2, with P4Connect 2016.2.144.1849-Release, I get these warning when saving a file:

P4Connect - Assets/Games/Strategieballen/StrategyBalls/Script/StrategyBallsDominationGame.cs isn't in the depot and cannot be checked out, the file will be marked for add instead
UnityEngine.Debug:LogWarning(Object)
P4Connect.Utils:LogFileWarning(String, String) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Utils.cs:546)
P4Connect.Engine:GetFileOperation(String, AssetOperation, FileMetaData) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:1593)
P4Connect.Collector:GetFilesAndOps(PerforceConnection) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:1408)
P4Connect.Engine:AddToFilesAndOpList(PerforceConnection, String[], String[], AssetOperation) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:1244)
P4Connect.Engine:PerformOperation(String[], String[], AssetOperation) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:977)
P4Connect.Engine:CheckoutAssets(String[]) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:585)
P4Connect.Engine:CheckoutAsset(String) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:534)
P4Connect.AssetBridge:OpenFile(Int32, Int32) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.AssetBridge.cs:174)
UnityEditorInternal.LogEntries:RowGotDoubleClicked(Int32)
UnityEditor.DockArea:OnGUI()

But the file *is* in the depot, and, more importantly, is already checked out, so somehow the state of the file is not correct interpreted by P4Connect?

But perhaps this is related with my previous error report, I also have this in the editor log:

get_dataPath is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'Config'.
See "Script Serialization" page in the Unity Manual for further details.
UnityEngine.Application:get_dataPath()
P4Connect.Main:SetupRootDirectory() (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Main.cs:123)
P4Connect.Main:Initialize() (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Main.cs:84)
P4Connect.Main:.cctor() (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Main.cs:75)
P4Connect.Utils:FullPathToAssetPath(String) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Utils.cs:764)
P4Connect.Utils:FullPathToAssetPath(String) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Utils.cs:764)
P4Connect.Utils:GetEditorAssetRelativeDirectory() (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Utils.cs:921)
P4Connect.Config:.cctor() (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Config.cs:898)

#2 ava

ava

    Member

  • Members
  • PipPip
  • 23 posts
  • LocationBruges

Posted 18 October 2016 - 12:41 PM

I also get this:

P4Exception: trying to run a command on a disposed server
Perforce.P4.P4Server.RunCommand (System.String cmd, UInt32 cmdId, Boolean tagged, System.String[] args, Int32 argc) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Bridge/p4api.net/P4Server.cs:1235)
Perforce.P4.P4Command.RunInt (Perforce.P4.StringList flags) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Bridge/p4api.net/P4Command.cs:411)
UnityEngine.Debug:LogException(Exception)
P4Connect.Engine:LogP4Exception(Exception) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:2000)
P4Connect.Engine:PerformOperation(String[], String[], AssetOperation) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:1010)
P4Connect.Engine:CheckoutAssets(String[]) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:585)
P4Connect.Engine:CheckoutAsset(String) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:534)
P4Connect.AssetBridge:OpenFile(Int32, Int32) (at c:/tmp/69516846/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.AssetBridge.cs:174)
UnityEditorInternal.LogEntries:ClickStatusBar(Int32)
UnityEditor.AppStatusBar:OnGUI()

Also related to the data path issue i presume?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users