alttester / alttester/AltTester-Unity-SDK

Error when trying to open AltUnityTest with same name as folder in project

Ouverte
#883 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
alttester editor bug gitlab no version triaged
Langage dominant
C#
Étoiles
121
Forks
24
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

## Steps to reproduce

1. Open in Unity the _altunitytester_ project (cloned repo)
2. In _Assets_ > _Editor_ folder create an _AltUnityTest_ with the name `test`
- _Note_: the name is also the name of a folder in the project
3. Go to _AltUnity Tester Editor_ window and `Refresh` the _Tests list_
4. Find the created test and double-click on it in order to open it
5. Check if it opens and the console for errors.

## Actual result

### AR

In step 5 the test file cannot be opened and in the console, there is an error:
```
Access to the path 'D:\AltUnity Tools\AltUnity Tester\altunitytester\Assets\AltUnityTester' is denied.
System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at :0 ...
```

### Additional info

Screenshot

![image](https://gitlab.com/altom/altunity/altunitytester/uploads/7993ee9b96fe81956dbd3b3c80d05088/image.png)

## Expected result

### ER

In step 5 the test file should be opened and in the console should be no error

---
You can find the original issue from GitLab [here](https://gitlab.com/altom/altunity/altunitytester/-/issues/906).

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.