alttester / alttester/AltTester-Unity-SDK

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

未關閉
#883 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
alttester editor bug gitlab no version triaged
主要語言
C#
星號
121
分支
24
PR 合併指標
30 天內沒有已合併 PR

描述

## 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).

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。