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

can't work with c header file #38

Closed
fcying opened this issue Jun 27, 2024 · 3 comments
Closed

can't work with c header file #38

fcying opened this issue Jun 27, 2024 · 3 comments

Comments

@fcying
Copy link

fcying commented Jun 27, 2024

When I use TSCppDefineClassFunc in c header file, the following error occurs. After removing the macro, it works fine.

E5108: Error executing lua ...reesitter-cpp-tools/lua/nt-cpp-tools/output_handlers.lua:13: attempt to perform arithmetic on field 'class_end_row' (a nil value)
stack traceback:
...reesitter-cpp-tools/lua/nt-cpp-tools/output_handlers.lua:13: in function <...reesitter-cpp-tools/lua/nt-cpp-tools/output_handlers.lua:8>
.../nvim-treesitter-cpp-tools/lua/nt-cpp-tools/internal.lua:321: in function 'run'
[string ":lua"]:1: in main chunk

test file

#ifndef _T_H
#define _T_H

#include <stdint.h>

uint8_t test(void);

#endif


``
@Badhi
Copy link
Owner

Badhi commented Jun 29, 2024

@fcying, Thanks for filing bug. I will fix it as soon as possible

@Badhi
Copy link
Owner

Badhi commented Jun 30, 2024

FIxed with #39. Please give it a try

@Badhi Badhi closed this as completed Jun 30, 2024
@fcying
Copy link
Author

fcying commented Jul 1, 2024

Thanks, it is working properly now

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

No branches or pull requests

3 participants
@fcying @Badhi and others