-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
BugSomething isn't workingSomething isn't workingQuestionFurther information is requestedFurther information is requested
Description
I get an exception when trying to set the default fileset in the design. Using fileset.Name work, but not with the fileset object. Looking at the source it seems like both ways should be supported.
project = Project('default')
fileset = Fileset('myfileset')
project.DefaultDesign.DefaultFileSet = fileset File "/home/rgo/devel/simplhdl/src/simplhdl/__main__.py", line 60, in main
simpl.create_project(args.projectspec)
File "/home/rgo/devel/simplhdl/src/simplhdl/simplhdl.py", line 30, in create_project
project.DefaultDesign.DefaultFileSet = fileset
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rgo/devel/project-template/_env/Project-Template/lib/python3.11/site-packages/pyEDAA/ProjectModel/__init__.py", line 1195, in DefaultFileSet
raise Exception(f"Fileset '{value}' is not associated to this design.")
Exception: Fileset '/home/rgo/devel/project-template/cores/adder.core/sim/import_list' is not associated to this design.
pyEDAA.ProjectModel/pyEDAA/ProjectModel/__init__.py
Lines 1186 to 1195 in 38aa30f
| @DefaultFileSet.setter | |
| def DefaultFileSet(self, value: Union[str, FileSet]) -> None: | |
| if isinstance(value, str): | |
| if (value not in self._fileSets.keys()): | |
| raise Exception(f"Fileset '{value}' is not in this design.") | |
| self._defaultFileSet = self._fileSets[value] | |
| elif isinstance(value, FileSet): | |
| if (value not in self.FileSets): | |
| raise Exception(f"Fileset '{value}' is not associated to this design.") |
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't workingQuestionFurther information is requestedFurther information is requested