#155 Veriog-A file/module with underscore '_' crashes on symbol selection

0.0.18
closed-fixed
nobody
None
5
2014-05-14
2014-05-14
Guilherme
No

Reported by Jose Manuel Campelo:
...
As you told me in your last e-mail, I have tested the piece of Verilog-A including your comments, and it was built without any problem.
After building the module, I have created a symbol for it. I have exported an image in .PNG format, and finally I was able to load the module with no problem.
After that in the components menu, it appears a new tab that contains the module that I have built.
Here comes the problem. When I want to choose the symbol for including it in a schematic, an error messages is shown in a window, saying "File not found". And just after that, the program crashes and closes with no further warnings.

Discussion

  • Guilherme
    Guilherme
    2014-05-14

    If the source/module have a _ on its name, it crashes. I suspect that I used the _ to split the _symbol.json part to recover the basename. With another _ it splits early and cause issues.

     
    Last edit: Guilherme 2014-05-14
  • Guilherme
    Guilherme
    2014-05-14

    Pushed fix 1ce9042055c00e

     
  • Guilherme
    Guilherme
    2014-05-14

    • status: open --> closed-fixed