diff --git a/.gitignore b/.gitignore index 6fac33e7..0a5d8db3 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,6 @@ out/ *.zip *_pros_capture.png -venv/ - +*venv/ +.DS_Store *.pyc diff --git a/pros/cli/conductor.py b/pros/cli/conductor.py index 38d43235..78a03aa4 100644 --- a/pros/cli/conductor.py +++ b/pros/cli/conductor.py @@ -237,7 +237,7 @@ def new_project(ctx: click.Context, path: str, target: str, version: str, ui.echo('New PROS Project was created:', output_machine=False) ctx.invoke(info_project, project=project) - if compile_after or build_cache: + if (compile_after or build_cache) and not no_default_libs: with ui.Notification(): ui.echo('Building project...') exit_code = project.compile([], scan_build=build_cache) diff --git a/pros/conductor/project/ProjectReport.py b/pros/conductor/project/ProjectReport.py index 75d2ff3a..38388334 100644 --- a/pros/conductor/project/ProjectReport.py +++ b/pros/conductor/project/ProjectReport.py @@ -17,8 +17,10 @@ def __str__(self): f' ({self.project["name"]})' if self.project["name"] else '' s += '\n' rows = [t.values() for t in self.project["templates"]] - headers = [h.capitalize() for h in self.project["templates"][0].keys()] + + headers = [h.capitalize() for h in self.project["templates"][0].keys()]if self.project["templates"] else [] s += tabulate.tabulate(rows, headers=headers) + return s def __getstate__(self): diff --git a/pros/conductor/project/__init__.py b/pros/conductor/project/__init__.py index 575f9c4d..1c981126 100644 --- a/pros/conductor/project/__init__.py +++ b/pros/conductor/project/__init__.py @@ -166,8 +166,6 @@ def new_user_filter(new_file: str) -> bool: def remove_template(self, template: Template, remove_user: bool = False, remove_empty_directories: bool = True): if not self.template_is_installed(template): raise ValueError(f'{template.identifier} is not installed on this project.') - if template.name == 'kernel': - raise ValueError(f'Cannot remove the kernel template. Maybe create a new project?') real_template = LocalTemplate(orig=template, location=self.location) transaction = Transaction(self.location, set(self.all_files))