I finally use Unity 6 because of the new project,
with new PC + new windows 11!
so I would like to make everything new!
and I working with Photon network and I was edit my scripts, my scripts are just a gameplay scripts, not Network or Photon script at all,
and then just waiting it to compile or load something,
Most likely you have some editor script that either calls recompile in a loop, or it modifies a script file and does so every time it’s being compiled.
To analyze this, you have two approach angles:
try to reproduce the issue in a new project and keep adding the assets you use until you find the issue
the reverse, eg copy the project and start removing things until the issue stops occuring
Almost certainly the issue is caused by something in the project.
Also antivirus and file/folder permission issues can cause such issues. Be sure to exclude the project from virus scan and have the project in a writable location like Documents.