#15 Crash by creating a new project

開啟中
bazza2 年之前創建 · 6 條評論

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' ~~~

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.
尚未有任何內容
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)
尚未有任何內容

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.

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 參與者
正在加載...
取消
保存
尚未有任何內容