Не запускается проект.
Не запускается проект.
Здравствуйте. Проблема такая: при запуске проекта, проект не запускается и появляется окошко с надписью «All compiler errors have to be fixed before you can enter playmode!». Что это такое и как это убрать?
-

farast - UNец
- Сообщения: 7
- Зарегистрирован: 11 дек 2012, 23:01
Re: Не запускается проект.
seaman 12 дек 2012, 19:11
А перевести.
- seaman
- Адепт
- Сообщения: 8351
- Зарегистрирован: 24 янв 2011, 12:32
- Откуда: Самара
Re: Не запускается проект.
farast 12 дек 2012, 19:27
Перевел. Пишет о ошибках компиляции, которые должны быть исправлены перед запуском игры. Но я все равно не понимаю. Я даже не использовал скрипты.
-

farast - UNец
- Сообщения: 7
- Зарегистрирован: 11 дек 2012, 23:01
Re: Не запускается проект.
KaMiKaZa 12 дек 2012, 19:38
farast писал(а):Перевел. Пишет о ошибках компиляции, которые должны быть исправлены перед запуском игры. Но я все равно не понимаю. Я даже не использовал скрипты.
Проверка на ошибки выполняется и в скриптах, которые мирно лежат в папке проекта, а не только на подвешенных к ГО скриптах.
Посмотрите консоль повнимательнее. Эту ошибку обычно сопровождает пара других, относящихся к каким-либо файлам.
-

KaMiKaZa - UNIт
- Сообщения: 75
- Зарегистрирован: 29 окт 2012, 15:42
- Откуда: ЯНАО, Надым
Re: Не запускается проект.
farast 12 дек 2012, 19:56
В папке проекта лежит только сам проект.
Ошибка полностью:
All compiler errors have to be fixed before you can enter playmode!
UnityEditor.SceneView:ShowCompileErrorNotification()
Я не понимаю, что означает вторая строка. Можете прояснить?
-

farast - UNец
- Сообщения: 7
- Зарегистрирован: 11 дек 2012, 23:01
Re: Не запускается проект.
seaman 12 дек 2012, 20:04
Посмотрите консоль
- seaman
- Адепт
- Сообщения: 8351
- Зарегистрирован: 24 янв 2011, 12:32
- Откуда: Самара
Re: Не запускается проект.
farast 12 дек 2012, 20:30
Проблему решил. Причем очень странно. Сначала удалил самодельный скрипт, который лежал рядом с проектом. После этого появилась другая ошибка. В скрипте ThirdPersonController предлагалось поставить еще одну черточку.
Из
Используется csharp
if (Input.GetKey (KeyCode.LeftShift) | Input.GetKey (KeyCode.RightShift))
в
Используется csharp
if (Input.GetKey (KeyCode.LeftShift) || Input.GetKey (KeyCode.RightShift))
-

farast - UNец
- Сообщения: 7
- Зарегистрирован: 11 дек 2012, 23:01
Re: Не запускается проект.
JIeo_NEED 13 дек 2012, 00:14
Вам как раз об этом и сообщали ошибки.
-

JIeo_NEED - UNITрон
- Сообщения: 228
- Зарегистрирован: 01 мар 2012, 14:37
- Откуда: Владивосток, Приморский край, Россия.
- Skype: Develeone
-
- Сайт
Re: Не запускается проект.
Боец земноводцев 17 апр 2020, 01:30
Ребят у меня таже ситуация короче был на юнити 18 года и перескочил на 20-тый год и выдает такую ошибку:All compiler errors have to be fixed before you can enter playmode!
UnityEditor.SceneView:ShowCompileErrorNotification()
пожалуйста помогите
- Боец земноводцев
- UNец
- Сообщения: 1
- Зарегистрирован: 17 апр 2020, 01:28
Вернуться в Почемучка
Кто сейчас на конференции
Сейчас этот форум просматривают: CatUnityDev и гости: 26
If you ever stumble upon error messages and don’t understand their description, try to look up their codes on the internet. For example https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1519 can give you some insights about your first error. The same goes for other stuff.
Regarding error CS1519: invalid token ‘;’ in class, record, struct or interface member declaration you can read in the documentation:
This error is generated whenever a token is encountered in a location where it does not belong. A token is a keyword; an identifier (the name of a class, struct, method, and so on); a string, character, or numeric literal value such as 108, «Hello», or ‘A’; or an operator or punctuator such as == or ;.
In your case the token is ; and it doesn’t belong in here: private void OnDisable();
This semicolon is the issue, as it made your method bodyless (when it should have one), as well as your method call onFoot.Disable(); is now treated as if made just inside a class, not method, which is not valid.
In general, this error usually indicate typos of all kind.
error CS1022: Type or namespace definition, or end of file expected is just a consequence of formerly mentioned semicolon, that propagates further down the file.
As for error CS8124: Tuple must contain atleast two elements. I can’t see this error in the code I pasted to my project, maybe that’s an error in another file you didn’t paste here. But the message clearly indicates the reason: you are using a tuple, that contain less than 2 elements. Alternatively, it might be another typo, that made compiler think you are using a tuple.
Describe the bug
I added unity webrtc 2.1.3-preview and its examples to a clean, empty project using the Unity package manager but Unity consistently shows the «All compiler errors have to be fixed before you can enter playmode!» error.
The errors persist even after deleting the Library folder.
To Reproduce
Steps to reproduce the behavior:
- Open Unity 2019.4.2f1
- Select Window/Package Manager in the menu bar.
- Install unity webrtc 2.1.3-preview
- Import Samples -> Example
- Press play
- See «All compiler errors have to be fixed before you can enter playmode!» with no errors displayed in the console.
Expected behavior
Unity to play the scene successfully.
Environment (please complete the following information):
- OS: MacOS Catalina 10.15.6
- Unity Version: 2019.4.2f1
- Package version: 2.1.3-preview
Additional context
After looking through the logs, the following compiler errors may be an issue:
Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright (C) Microsoft Corporation. All rights reserved.
Library/PackageCache/com.unity.textmeshpro@3.0.1/Scripts/Runtime/TMP_DefaultControls.cs(191,22): error CS1061: 'RectMask2D' does not contain a definition for 'padding' and no accessible extension method 'padding' accepting a first argument of type 'RectMask2D' could be found (are you missing a using directive or an assembly reference?)
-----CompilerOutput:-stderr----------
-----EndCompilerOutput---------------
- Finished compile Library/ScriptAssemblies/Unity.WebRTC.Editor.dll in 0.584728 seconds
- Finished compile Library/ScriptAssemblies/Unity.Timeline.Editor.dll in 0.936078 seconds
- Finished script compilation in 6.391839 seconds
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/UserInterface/Bootstrap.cs(23,20): error CS0117: 'Collab' does not contain a definition for 'ShowChangesWindow'
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Providers/Collab.cs(108,22): error CS1061: 'Collab' does not contain a definition for 'ChangeItemsChanged' and no accessible extension method 'ChangeItemsChanged' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Providers/Collab.cs(109,22): error CS1061: 'Collab' does not contain a definition for 'SelectedChangeItemsChanged' and no accessible extension method 'SelectedChangeItemsChanged' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Providers/Collab.cs(110,22): error CS1061: 'Collab' does not contain a definition for 'RevisionUpdated_V2' and no accessible extension method 'RevisionUpdated_V2' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Providers/Collab.cs(112,22): error CS1061: 'Collab' does not contain a definition for 'CollabInfoChanged' and no accessible extension method 'CollabInfoChanged' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Providers/Collab.cs(114,22): error CS1061: 'Collab' does not contain a definition for 'ErrorOccurred_V2' and no accessible extension method 'ErrorOccurred_V2' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Providers/Collab.cs(460,36): error CS1061: 'Collab' does not contain a definition for 'GetChangesToPublish_V2' and no accessible extension method 'GetChangesToPublish_V2' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Providers/Collab.cs(477,22): error CS1061: 'Collab' does not contain a definition for 'PublishAssetsAsync' and no accessible extension method 'PublishAssetsAsync' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Providers/Collab.cs(503,32): error CS1061: 'RevisionsService' does not contain a definition for 'FetchSingleRevisionCallback' and no accessible extension method 'FetchSingleRevisionCallback' accepting a first argument of type 'RevisionsService' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Providers/Collab.cs(506,36): error CS1061: 'RevisionsService' does not contain a definition for 'GetRevision' and no accessible extension method 'GetRevision' accepting a first argument of type 'RevisionsService' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Providers/Collab.cs(511,36): error CS1061: 'RevisionsService' does not contain a definition for 'FetchSingleRevisionCallback' and no accessible extension method 'FetchSingleRevisionCallback' accepting a first argument of type 'RevisionsService' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Providers/Collab.cs(517,36): error CS1061: 'RevisionsService' does not contain a definition for 'FetchSingleRevisionCallback' and no accessible extension method 'FetchSingleRevisionCallback' accepting a first argument of type 'RevisionsService' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Providers/Collab.cs(593,22): error CS1061: 'Collab' does not contain a definition for 'RevertFiles' and no accessible extension method 'RevertFiles' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.textmeshpro@3.0.1/Scripts/Runtime/TMP_DefaultControls.cs(191,22): error CS1061: 'RectMask2D' does not contain a definition for 'padding' and no accessible extension method 'padding' accepting a first argument of type 'RectMask2D' could be found (are you missing a using directive or an assembly reference?)