#15 Crash by creating a new project

Open
2 jaren geleden werd geopend door bazza · 6 opmerkingen

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.
Er is nog geen inhoud.
bazza reageerde 2 jaren geleden
Poster

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)
Er is nog geen inhoud.

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.
Sign in to join this conversation.
Geen mijlpaal
Geen verantwoordelijke
2 deelnemers
Laden...
Annuleren
Opslaan
Er is nog geen inhoud.