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

Bug in error reporting when type does not exist #660

Closed
robertwb opened this issue Oct 10, 2008 · 4 comments
Closed

Bug in error reporting when type does not exist #660

robertwb opened this issue Oct 10, 2008 · 4 comments

Comments

@robertwb
Copy link
Contributor

Entire test case is embedded in error message:

Error converting Pyrex file to C:
------------------------------------------------------------
...

cdef NonExisting* ptr
cdef object o
ptr = o
      ^
------------------------------------------------------------

/home/dagss/cython/structbuffer/test.pyx:4:7: Cannot convert Python object to '<error>'

There should be a more friendly error message here.

Migrated from http://trac.cython.org/ticket/98

@robertwb
Copy link
Contributor Author

@dagss commented

Ideally, the non-existance of NonExisting should be the line to raise any error, and that should invalidate the declaration of ptr and the assignment so that they don't raise further errors.

@robertwb
Copy link
Contributor Author

@dagss changed component from Build System to Parsing
commented

@robertwb
Copy link
Contributor Author

@robertwb changed resolution to fixed
status from new to closed
commented

Fix up at http://hg.cython.org/cython-devel/rev/d6b77994c455

@robertwb
Copy link
Contributor Author

robertwb commented Nov 8, 2008

@robertwb changed component from Parsing to Error Reporting
commented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant