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

kernel.h issues #20

Open
gbowne1 opened this issue Oct 5, 2022 · 2 comments
Open

kernel.h issues #20

gbowne1 opened this issue Oct 5, 2022 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@gbowne1
Copy link
Member

gbowne1 commented Oct 5, 2022

In my VSCode editor session, looking at the kernel.c file

I am getting this error(s):

Line #5: 'tty.h' file not found [Lexical or Preprocessor Issue] Clang (c-cpp-flylint)

Line #14 puts("kernel_main()\n", term); the word term has red squiggles and says gives the error:
uint16_t *term too many arguments in function call C/C++(140)

Line #27 'puts("enabling paging...\n", term);gives the error:uint16_t *term too many arguments in function call C/C++(140)

I am assuming the Linux configuration for C/C++ and Clang VSCode linter and extension(s) needs to be fixed for this but that may not be the extent of the issues with kernel.c

As I do not use Windows much, I don't know what this configuration would be like for Mac and subsequently Mac.

@EmptyGroceryBag

@gbowne1 gbowne1 added bug Something isn't working help wanted Extra attention is needed labels Oct 5, 2022
@gbowne1
Copy link
Member Author

gbowne1 commented Oct 5, 2022

edit: I believe I have solved most of this issue(s) tonight. I will issue a fix here soon especially for those using VSCode.

The VSCode settings as they exist need quite a bit of work so I actually made fixes to the C/C++ extension settings so it turns off all but Clang.

The only other issue I am having is that it keeps calling .c and .h files G-Code (I have the G-Code extension) i.e: vscode-gcode.gcode in the language mode setting in the blue status bar below the editor. So I keep having to switch the language mode for the .c and .h files. I have not found a good way to fix this.

I have been wanting to make a generic global (userland) settings.json (non-Workspace) for those who do not or have not configured their VSCode properly especially for things like C, Assembly, C++, WebDev (HTML, CSS, JS, etc.) . [TODO]

I have not worked on the documented ./build.sh gcc command to see if that has any issues yet.

@gbowne1
Copy link
Member Author

gbowne1 commented Oct 13, 2022

This TODO issue is slresdy complete with the last PR. It cleans up 80% of the current issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

1 participant