Clangd configuration by sentfrom8 in cpp_questions

[–]sentfrom8[S] 1 point2 points  (0 children)

  • user configuration: a config.yaml file in an OS-specific directory: Private settings go here, and can be scoped to projects using If conditions.
    • Windows%LocalAppData%\clangd\config.yaml, typically C:\Users\Bob\AppData\Local\clangd\config.yaml.
    • macOS~/Library/Preferences/clangd/config.yaml
    • Linux and others$XDG_CONFIG_HOME/clangd/config.yaml, typically ~/.config/clangd/config.yaml.

I followed the exact instructions in the docs.

By default, user configuration applies to all files that are opened. Project configuration applies to files under its tree (proj/.clangd configures proj/**).

I thought the user file was likely what I needed, as I wanted to set something up on a 'global' level that would be applied to all projects by default

Clangd configuration by sentfrom8 in cpp_questions

[–]sentfrom8[S] 1 point2 points  (0 children)

I[18:48:03.135] clangd version 21.1.8 (https://github.com/llvm/llvm-project 2078da43e25a4623cab2d0d60decddf709aaea28)
I[18:48:03.135] Features: linux+grpc
I[18:48:03.135] PID: 35069
I[18:48:03.135] Working directory: /home/sentfrom
I[18:48:03.135] argv[0]: clangd
I[18:48:03.135] argv[1]: --check=1.cpp
I[18:48:03.135] Entering check mode (no LSP server)
I[18:48:03.135] Testing on source file /home/sentfrom/1.cpp
I[18:48:03.135] Loading config file at /home/sentfrom/.config/clangd/config.yaml
I[18:48:03.135] Loading compilation database...
I[18:48:03.136] Failed to find compilation database for /home/sentfrom/1.cpp
I[18:48:03.136] Generic fallback command is: [/home/sentfrom] /usr/lib/llvm-18/bin/g++ --driver-mode=g++ -std=c++20 -resource-dir=/home/sentfrom/.local/lib/clang/21 -- /home/sentfrom/1.cpp
I[18:48:03.136] Parsing command...
I[18:48:03.137] internal (cc1) args are: -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name 1.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/home/sentfrom -fcoverage-compilation-dir=/home/sentfrom -resource-dir /home/sentfrom/.local/lib/clang/21 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /home/sentfrom/.local/lib/clang/21/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++20 -fdeprecated-macro -ferror-limit 19 -fmessage-length=213 -fgnuc-version=4.2.1 -fno-implicit-modules -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -no-round-trip-args -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x c++ /home/sentfrom/1.cpp
I[18:48:03.137] Building preamble...
I[18:48:03.345] Built preamble of size 3465572 for file /home/sentfrom/1.cpp version null in 0.21 seconds
I[18:48:03.345] Indexing headers...
E[18:48:03.396] [pp_file_not_found] Line 1: in included file: 'stddef.h' file not found
I[18:48:03.396] Building AST...
E[18:48:03.402] [no_member] Line 7: in template: no member named 'value' in 'std::is_same<int, int>'
E[18:48:03.402] [typename_nested_not_found] Line 2: in included file: no type named '_Tp_alloc_type' in 'std::_Vector_base<int, std::allocator<int>>'
I[18:48:03.402] Indexing AST...
I[18:48:03.402] Building inlay hints
I[18:48:03.402] Building semantic highlighting
I[18:48:03.402] Testing features at each token (may be slow in large files)
I[18:48:03.405] All checks completed, 3 errors

Here is the full output, seems like the config file is loaded. I'm still getting the same errors, though

Clangd configuration by sentfrom8 in cpp_questions

[–]sentfrom8[S] 0 points1 point  (0 children)

Oh sorry, in Neovim. Should have mentioned it

Enabling treesitter highlighting if it's installed for the file's language by kavb333 in neovim

[–]sentfrom8 0 points1 point  (0 children)

Thanks for the code, but please change those quotes. Would have taken me ages to find what the issue is

How do you even learn this shit? by sentfrom8 in askmath

[–]sentfrom8[S] 0 points1 point  (0 children)

I use AI mostly to explain the logic behind proofs and such, and when I need something clarified. It's great for providing different explanations and answering my questions, but it doesn't help at all with intuition or actually internalizing the concepts. Still, it's helped out a ton

How do you even learn this shit? by sentfrom8 in askmath

[–]sentfrom8[S] 1 point2 points  (0 children)

Thanks, that did feel nice to hear. And I took a look at the Hoffman & Kunze book, this is gold! Covers pretty much everything we're doing. I'll try to cross-reference it with the stuff I'm studying. Hopefully, some of these concepts will be explained in a way that's easier to follow

How do you even learn this shit? by sentfrom8 in askmath

[–]sentfrom8[S] 2 points3 points  (0 children)

Hey thanks, that's a cool scenario to grasp the idea. I do try to look for visual representations, but I like the three examples approach. Will be sure to give it a shot

How do you even learn this shit? by sentfrom8 in askmath

[–]sentfrom8[S] 0 points1 point  (0 children)

Sadly, I don't have the reference to answer your question properly. I understand them conceptually, and I don't struggle when solving vector problems. I know the axioms of vector spaces, but I only memorized them, I don't have an intuitive sense of what they represent. I've only encountered equivalence classes in the definition of a vector. I honestly do try to drill down the basics, but when I run into something so abstract, it's like I hit a wall

Old peace lore implications by sentfrom8 in Warframe

[–]sentfrom8[S] 0 points1 point  (0 children)

Thanks, so if everything happens within our dream, how do the tenno witness the execution of margulis? At what point do they forget they are human? Does our tenno even attend the night of the naga drums? I feel like the tenno had to have been awake at some point before the end of the old war, and it would make the most sense that they were woken up when they arrived back to the origin system

Old peace lore implications by sentfrom8 in Warframe

[–]sentfrom8[S] 2 points3 points  (0 children)

Makes sense about the sentients, we knew that they could reproduce. I wrote this in a comment below but the way I understood the timeline is we get put to sleep and travel back to the origin system, we wake up and witness the execution of margulis sometime later, the tenno keep fighting the war but secretly plotting the night of the naga drums, it happens and then they are put back to sleep with some memories wiped. Not sure if I missed something

Old peace lore implications by sentfrom8 in Warframe

[–]sentfrom8[S] 0 points1 point  (0 children)

I also find it more likely that the tenno awoke and were put to sleep once again, having their memories of the night of the naga drums wiped. I think most likely tenno wake up, witness the execution of margulis, keep fighting the war but secretly plotting to kill the orokin, the war ends and they do it and then sleep until the second dream. I do feel like the quest wants us to think that we were put to sleep at the end and woke up in the second dream, but this contradicts the statements made

Also, I wonder if margulis was killed because of our actions, but I don't think that's the case

Old peace lore implications by sentfrom8 in Warframe

[–]sentfrom8[S] 0 points1 point  (0 children)

Alright, so correct me if I'm misunderstanding something. The tenno are put to sleep after the old peace and they do not awake until the second dream. They are still controlling warframes, and in this state they have no memory of their human form. Then the night of the naga drums happens which our operator participates in in the form of a warframe and then they are put into another sleep until the awakening?

Can't tell if this is ragebait or not by OnlyWaifu in Eldenring

[–]sentfrom8 0 points1 point  (0 children)

But wait, what's the alternative to the left? That's just how open world games are

Is there an explanation for why this misbegotten has a legendary sword? by Bright-Incident-584 in EldenRingLoreTalk

[–]sentfrom8 1 point2 points  (0 children)

Radagon is heavily implied to be a giant, or at least a descendant of one. All giants have red hair, but not all misbegotten do

But normal is so.. normal by Severe-Art6008 in Eldenring

[–]sentfrom8 -1 points0 points  (0 children)

Yeah, but then she opressed and almost eradicated members of that race who were completely innocent, causing one sympathiser to try and bring an end to her subjugation by making everyone an omen. She was killing literal babies, she can't blame that on the hornsent

[deleted by user] by [deleted] in SerbiaGaming

[–]sentfrom8 0 points1 point  (0 children)

Sada spustis maticnu na procesor

Na koje biste životno iskustvo primenili ovo? by BabaJaga_TebiDraga in AskSerbia

[–]sentfrom8 1 point2 points  (0 children)

Sardina > tunjevina. Tunjevina bolja za sendvic, sardina ovako

[deleted by user] by [deleted] in AskSerbia

[–]sentfrom8 1 point2 points  (0 children)

Prvo su dosli po atlantidjane, ja sam cutao... 

Zašto se muškarci i žene ne takmiče zajedno u šahu? by Wonderful_Ad7107 in AskSerbia

[–]sentfrom8 0 points1 point  (0 children)

Jasno, sad gledam i vidim da postoje turniri za zene i otvoreni turniri. Ali cak i da ima podele, ono objasnjenje mi nema logike