#15 Crash by creating a new project

Aberto
2 anos atrás foi aberto por bazza · 6 comentários
bazza comentado 2 anos atrás

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.
Ainda não há conteúdo.
bazza comentado 2 anos atrás
Autor

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)
Ainda não há conteúdo.

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.
Faça login para participar desta conversação.
Sem milestone
Não atribuída
2 participantes
Carregando...
Cancelar
Salvar
Ainda não há conteúdo.