Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to driver.parse_file('.') exits program #1113

Closed
Helveg opened this issue Dec 7, 2023 · 0 comments · Fixed by #1203
Closed

Trying to driver.parse_file('.') exits program #1113

Helveg opened this issue Dec 7, 2023 · 0 comments · Fixed by #1203
Labels
bug Something isn't working enhancement New feature or request

Comments

@Helveg
Copy link

Helveg commented Dec 7, 2023

Using the following Python code, the process exits with exit code 2 and the message input in flex scanner failed:

import nmodl

nmodl.NmodlDriver().parse_file(".")

It's likely because it's a directory? (I tested with other ../dirs too). Could it raise a ParseError or similar instead?

@Helveg Helveg changed the title Trying to parse . exits program Trying to driver.parse_file('.') exits program Dec 7, 2023
@pramodk pramodk added bug Something isn't working enhancement New feature or request labels Dec 7, 2023
JCGoran added a commit that referenced this issue Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants