question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI batchMode breaks when Smart-Inspector is in the project

See original GitHub issue

This is a weird one so I’ve no idea what it could be about but I’m throwing it out there because it’s a deal breaker for us since it breaks our CI pipeline.

After adding Smart-Inspector to the project we can no longer run methods from the CLI using batchMode, everything times out after 5 minutes of being idle. It doesn’t seem to matter what happens in the method, I have tried with a method that simply outputs a Debug.Log and it still doesn’t work while Smart-Inspector is in the project.

I have tried both adding the plugin using a Git URL in Package Manager and by simply adding the directory to the project manually so I don’t think it’s related to the Package Manager.

Example command:

"C:\Program Files\Unity\Hub\Editor\2019.4.26f1\Editor\Unity.exe" -batchmode -projectPath / -nographics -executeMethod Custom.MyBuildScript.Build -silent-crashes -quit -logFile build.log

Output from batchMode:

Aborting batchmode due to failure:
Timeout while executing 'executeMethod' method 'Custom.MyBuildScript.Build'.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zoeesilcockcommented, Jun 21, 2021

Yes, I can confirm that the Application.isBatchMode check fixed the issue. Thanks!

0reactions
neon-agecommented, Jun 20, 2021

Was it resolved?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command-line arguments
CLIBatchmodeCoroutines: How to use features that Unity supports when you launch the Unity Editor or a Standalone Player in batch mode.
Read more >
Python Abort Running Script
This is the group repository for Smart Inspector project. Stop and pause applications. You have written some awesome R script, which does some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found