#15 Crash by creating a new project

Открыто
2 лет назад открыта bazza · комментариев: 6
bazza прокомментировал 2 лет назад

The first time I open it

python -V Python 3.9.6 Arch 64 bit

python run.py 
New Project
Traceback (most recent call last):
  File "/home/bazza/src/vcstudio/project_manager/pm_gtk.py", line 264, in pmdrawing
    Layers.append([pm_newprojectLayer.layer(win), "new_project"])
  File "/home/bazza/src/vcstudio/project_manager/pm_newprojectLayer.py", line 131, in layer
    UI_elements.roundrect(layer, win,
  File "/home/bazza/src/vcstudio/UI/UI_elements.py", line 87, in roundrect
    button()
  File "/home/bazza/src/vcstudio/project_manager/pm_newprojectLayer.py", line 126, in do
    pm_project.new(win.text["new_project_name"]["text"])
  File "/home/bazza/src/vcstudio/project_manager/pm_project.py", line 30, in new
    elif os.path.exists(settings.read("New-Project-Folder")+"/"+name):
TypeError: unsupported operand type(s) for +: 'bool' and 'str'

The first time I open it python -V Python 3.9.6 Arch 64 bit ~~~ python run.py New Project Traceback (most recent call last): File "/home/bazza/src/vcstudio/project_manager/pm_gtk.py", line 264, in pmdrawing Layers.append([pm_newprojectLayer.layer(win), "new_project"]) File "/home/bazza/src/vcstudio/project_manager/pm_newprojectLayer.py", line 131, in layer UI_elements.roundrect(layer, win, File "/home/bazza/src/vcstudio/UI/UI_elements.py", line 87, in roundrect button() File "/home/bazza/src/vcstudio/project_manager/pm_newprojectLayer.py", line 126, in do pm_project.new(win.text["new_project_name"]["text"]) File "/home/bazza/src/vcstudio/project_manager/pm_project.py", line 30, in new elif os.path.exists(settings.read("New-Project-Folder")+"/"+name): TypeError: unsupported operand type(s) for +: 'bool' and 'str' ~~~
Jeison Yehuda Amihud (Blender Dumbass) прокомментировал 2 лет назад
Владелец

Well. It's not really a bug. But thanks to pointing this issue out. Basically it has to know where to create your project. And for that you have the folder selector above the V button. If you click without selecting the folder, you will get an error that it's not able to read the "New Project Folder".

I need to make the V not appear unless folder is selected.

Well. It's not really a bug. But thanks to pointing this issue out. Basically it has to know where to create your project. And for that you have the folder selector above the V button. If you click without selecting the folder, you will get an error that it's not able to read the "New Project Folder". I need to make the V not appear unless folder is selected.
Jeison Yehuda Amihud (Blender Dumbass) прокомментировал 2 лет назад
Владелец
Пока нет содержимого.
bazza прокомментировал 2 лет назад
Автор

I should give a warning instead of a mistake

I should give a warning instead of a mistake ![](https://cdn.masto.host/mographsocial/media_attachments/files/106/616/576/165/343/164/small/49d9d708e8777cff.jpg)
Jeison Yehuda Amihud (Blender Dumbass) прокомментировал 2 лет назад
Владелец
Пока нет содержимого.
Jeison Yehuda Amihud (Blender Dumbass) прокомментировал 2 лет назад
Владелец

I should give a warning instead of a mistake

I agree. Or at least. It should give no option to start the project unless the folder is selected. And the select folder should be somehow outlined the first time. So people will notice it.

> I should give a warning instead of a mistake I agree. Or at least. It should give no option to start the project unless the folder is selected. And the select folder should be somehow outlined the first time. So people will notice it.
Jeison Yehuda Amihud (Blender Dumbass) прокомментировал 2 лет назад
Владелец

Other thing that we can do is to make it select the HOME folder by default.

Other thing that we can do is to make it select the HOME folder by default.
Войдите, чтобы присоединиться к обсуждению.
Нет этапа
Нет ответственного
2 участников
Загрузка...
Отмена
Сохранить
Пока нет содержимого.