Issues with Pre-defined Macros In Custom Include Folder.

I'm facing an issue with custom include files in a C project where I've installed the glad library. I'm using the compile_flags.txt file, and the LSP is not throwing any errors.
The problem I'm experiencing is that when I use pre-defined macros for the first time in any .c file, the LSP suggests them as TEXT in the code completion. However, after the first usage, the macros are correctly recognized as Constant.
Here they are used for the first time in the file.

And here is what it suggests after this function has already been used in the file.

System information
Output of clangd --version
clangd version 17.0.3 (https://github.com/llvm/llvm-project 888437e1b60011b8a375dd30928ec925b448da57)
Features: linux+grpc
Platform: x86_64-unknown-linux-gnu
Editor/LSP plugin:
neovim with mason and mason-lspconfig
Operating system:
Arch Linux x86_64
Kernel: 6.8.1-arch1-1
Logs
not sure if this part is useful from the log message or not, but here is it.
[ERROR][2024-04-05 02:37:57] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[02:37:57.890] Reusing preamble version 0 for version 56 of /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\n"
[ERROR][2024-04-05 02:37:57] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[02:37:57.894] Trying to fix unresolved name "glVert" in scopes: []\nV[02:37:57.894] Dex query tree: (LIMIT 10000 (& T=lve T=glv T=ert T=ver S= ?=Restricted For Code Completion))\n'
[ERROR][2024-04-05 02:37:57] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[02:37:57.897] indexed file AST for /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c version 56:\n  symbol slab: 9 symbols, 6304 bytes\n  ref slab: 58 symbols, 92 refs, 5760 bytes\n  relations slab: 0 relations, 24 bytes\n"
[ERROR][2024-04-05 02:37:57] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[02:37:57.897] Build dynamic index for main-file symbols with estimated memory usage of 21192 bytes\nI[02:37:57.897] --> textDocument/publishDiagnostics\nV[02:37:57.897] >>> {\"jsonrpc\":\"2.0\",\"method\":\"textDocument/publishDiagnostics\",\"params\":{\"diagnostics\":[{\"code\":\"undeclared_var_use\",\"message\":\"Use of undeclared identifier 'glVert'\",\"range\":{\"end\":{\"character\":7,\"line\":32},\"start\":{\"character\":1,\"line\":32}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"}],\"uri\":\"file:///home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\",\"version\":56}}\n\n"
[ERROR][2024-04-05 02:37:57] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[02:37:57.989] <<< {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":7,"line":32},"start":{"character":6,"line":32}},"rangeLength":1,"text":""},{"range":{"end":{"character":6,"line":32},"start":{"character":5,"line":32}},"rangeLength":1,"text":""},{"range":{"end":{"character":5,"line":32},"start":{"character":4,"line":32}},"rangeLength":1,"text":""},{"range":{"end":{"character":4,"line":32},"start":{"character":3,"line":32}},"rangeLength":1,"text":""},{"range":{"end":{"character":3,"line":32},"start":{"character":2,"line":32}},"rangeLength":1,"text":""},{"range":{"end":{"character":2,"line":32},"start":{"character":1,"line":32}},"rangeLength":1,"text":""},{"range":{"end":{"character":1,"line":32},"start":{"character":1,"line":32}},"rangeLength":0,"text":"g"},{"range":{"end":{"character":2,"line":32},"start":{"character":2,"line":32}},"rangeLength":0,"text":"l"},{"range":{"end":{"character":3,"line":32},"start":{"character":3,"line":32}},"rangeLength":0,"text":"V"},{"range":{"end":{"character":4,"line":32},"start":{"character":4,"line":32}},"rangeLength":0,"text":"e"},{"range":{"end":{"character":5,"line":32},"start":{"character":5,"line":32}},"rangeLength":0,"text":"r"},{"range":{"end":{"character":6,"line":32},"start":{"character":6,"line":32}},"rangeLength":0,"text":"t"},{"range":{"end":{"character":7,"line":32},"start":{"character":7,"line":32}},"rangeLength":0,"text":"e"},{"range":{"end":{"character":8,"line":32},"start":{"character":8,"line":32}},"rangeLength":0,"text":"x"},{"range":{"end":{"character":9,"line":32},"start":{"character":9,"line":32}},"rangeLength":0,"text":"A"},{"range":{"end":{"character":10,"line":32},"start":{"character":10,"line":32}},"rangeLength":0,"text":"t"},{"range":{"end":{"character":11,"line":32},"start":{"character":11,"line":32}},"rangeLength":0,"text":"t"},{"range":{"end":{"character":12,"line":32},"start":{"character":12,"line":32}},"rangeLength":0,"text":"r"},{"range":{"end":{"character":13,"line":32},"start":{"character":13,"line":32}},"rangeLength":0,"text":"i"},{"range":{"end":{"character":14,"line":32},"start":{"character":14,"line":32}},"rangeLength":0,"text":"b"},{"range":{"end":{"character":15,"line":32},"start":{"character":15,"line":32}},"rangeLength":0,"text":"P"},{"range":{"end":{"character":16,"line":32},"start":{"character":16,"line":32}},"rangeLength":0,"text":"o"},{"range":{"end":{"character":17,"line":32},"start":{"character":17,"line":32}},"rangeLength":0,"text":"i"},{"range":{"end":{"character":18,"line":32},"start":{"character":18,"line":32}},"rangeLength":0,"text":"n"},{"range":{"end":{"character":19,"line":32},"start":{"character":19,"line":32}},"rangeLength":0,"text":"t"},{"range":{"end":{"character":20,"line":32},"start":{"character":20,"line":32}},"rangeLength":0,"text":"e"},{"range":{"end":{"character":21,"line":32},"start":{"character":21,"line":32}},"rangeLength":0,"text":"r"},{"range":{"end":{"character":22,"line":32},"start":{"character":8,"line":32}},"rangeLength":14,"text":""},{"range":{"end":{"character":8,"line":32},"start":{"character":8,"line":32}},"rangeLength":0,"text":"xAttribPointer"}],"textDocument":{"uri":"file:///home/longassarchad/Desktop/me/virgin_graphics/src/idk.c","version":85}}}\n\nI[02:37:57.989] <-- textDocument/didChange\n'
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[02:37:58.040] ASTWorker building file /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c version 85 with command \n[/home/longassarchad/Desktop/me/virgin_graphics]\n/home/longassarchad/.local/share/nvim/mason/packages/clangd/clangd_17.0.3/bin/clang-tool -Iinclude -ferror-limit=0 -resource-dir=/home/longassarchad/.local/share/nvim/mason/packages/clangd/clangd_17.0.3/lib/clang/17 -- /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\n"
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[02:37:58.040] Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name idk.c -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 -fcoverage-compilation-dir=/home/longassarchad/Desktop/me/virgin_graphics -resource-dir /home/longassarchad/.local/share/nvim/mason/packages/clangd/clangd_17.0.3/lib/clang/17 -I include -internal-isystem /home/longassarchad/.local/share/nvim/mason/packages/clangd/clangd_17.0.3/lib/clang/17/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir=/home/longassarchad/Desktop/me/virgin_graphics -ferror-limit 0 -fgnuc-version=4.2.1 -no-round-trip-args -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x c /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\n"
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[02:37:58.040] Reusing preamble version 0 for version 85 of /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\n"
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[02:37:58.042] <<< {"id":31,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full/delta","params":{"previousResultId":"15","textDocument":{"uri":"file:///home/longassarchad/Desktop/me/virgin_graphics/src/idk.c"}}}\n\n'
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[02:37:58.042] <-- textDocument/semanticTokens/full/delta(31)\n"
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[02:37:58.045] indexed file AST for /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c version 85:\n  symbol slab: 9 symbols, 6304 bytes\n  ref slab: 60 symbols, 97 refs, 5760 bytes\n  relations slab: 0 relations, 24 bytes\n"
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[02:37:58.045] Build dynamic index for main-file symbols with estimated memory usage of 21352 bytes\nI[02:37:58.045] --> textDocument/publishDiagnostics\nV[02:37:58.045] >>> {\"jsonrpc\":\"2.0\",\"method\":\"textDocument/publishDiagnostics\",\"params\":{\"diagnostics\":[{\"code\":\"expected_semi_after_expr\",\"message\":\"Expected ';' after expression (fix available)\",\"range\":{\"end\":{\"character\":25,\"line\":33},\"start\":{\"character\":4,\"line\":33}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"}],\"uri\":\"file:///home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\",\"version\":85}}\n\n"
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[02:37:58.046] ASTWorker running SemanticHighlights on version 85 of /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\nI[02:37:58.046] --> reply:textDocument/semanticTokens/full/delta(31) 4 ms\nV[02:37:58.046] >>> {"id":31,"jsonrpc":"2.0","result":{"edits":[{"data":[2,1,21,19,131072,1,4,21,19,131072,0,28,8,19,131072,0,10,8,19,131072,0,12,1,21,0,0,9,7,18,65536,0,11,6,18,65536],"deleteCount":15,"start":200}],"resultId":"16"}}\n\n'
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[02:37:58.657] <<< {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":0,"line":33},"start":{"character":0,"line":32}},"rangeLength":23,"text":""}],"textDocument":{"uri":"file:///home/longassarchad/Desktop/me/virgin_graphics/src/idk.c","version":86}}}\n\nI[02:37:58.657] <-- textDocument/didChange\n'
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[02:37:58.707] ASTWorker building file /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c version 86 with command \n[/home/longassarchad/Desktop/me/virgin_graphics]\n/home/longassarchad/.local/share/nvim/mason/packages/clangd/clangd_17.0.3/bin/clang-tool -Iinclude -ferror-limit=0 -resource-dir=/home/longassarchad/.local/share/nvim/mason/packages/clangd/clangd_17.0.3/lib/clang/17 -- /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\n"
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[02:37:58.708] Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name idk.c -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 -fcoverage-compilation-dir=/home/longassarchad/Desktop/me/virgin_graphics -resource-dir /home/longassarchad/.local/share/nvim/mason/packages/clangd/clangd_17.0.3/lib/clang/17 -I include -internal-isystem /home/longassarchad/.local/share/nvim/mason/packages/clangd/clangd_17.0.3/lib/clang/17/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir=/home/longassarchad/Desktop/me/virgin_graphics -ferror-limit 0 -fgnuc-version=4.2.1 -no-round-trip-args -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x c /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\n"
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[02:37:58.708] Reusing preamble version 0 for version 86 of /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\n"
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[02:37:58.713] indexed file AST for /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c version 86:\n  symbol slab: 9 symbols, 6304 bytes\n  ref slab: 60 symbols, 95 refs, 5760 bytes\n  relations slab: 0 relations, 24 bytes\n"
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[02:37:58.713] Build dynamic index for main-file symbols with estimated memory usage of 21288 bytes\nI[02:37:58.714] --> textDocument/publishDiagnostics\nV[02:37:58.714] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/longassarchad/Desktop/me/virgin_graphics/src/idk.c","version":86}}\n\n'
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[02:37:58.855] <<< {"id":32,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full/delta","params":{"previousResultId":"16","textDocument":{"uri":"file:///home/longassarchad/Desktop/me/virgin_graphics/src/idk.c"}}}\n\n'
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[02:37:58.855] <-- textDocument/semanticTokens/full/delta(32)\nV[02:37:58.855] ASTWorker running SemanticHighlights on version 86 of /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\n"
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[02:37:58.856] --> reply:textDocument/semanticTokens/full/delta(32) 0 ms\n"
[ERROR][2024-04-05 02:37:58] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[02:37:58.856] >>> {"id":32,"jsonrpc":"2.0","result":{"edits":[{"data":[2,4,21,19,131072],"deleteCount":10,"start":200}],"resultId":"17"}}\n\n'
[ERROR][2024-04-05 02:38:00] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[02:38:00.785] <<< {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":0,"line":36},"start":{"character":0,"line":34}},"rangeLength":2,"text":""}],"textDocument":{"uri":"file:///home/longassarchad/Desktop/me/virgin_graphics/src/idk.c","version":87}}}\n\nI[02:38:00.785] <-- textDocument/didChange\n'
[ERROR][2024-04-05 02:38:00] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[02:38:00.835] ASTWorker building file /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c version 87 with command \n[/home/longassarchad/Desktop/me/virgin_graphics]\n/home/longassarchad/.local/share/nvim/mason/packages/clangd/clangd_17.0.3/bin/clang-tool -Iinclude -ferror-limit=0 -resource-dir=/home/longassarchad/.local/share/nvim/mason/packages/clangd/clangd_17.0.3/lib/clang/17 -- /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\n"
[ERROR][2024-04-05 02:38:00] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[02:38:00.836] Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name idk.c -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 -fcoverage-compilation-dir=/home/longassarchad/Desktop/me/virgin_graphics -resource-dir /home/longassarchad/.local/share/nvim/mason/packages/clangd/clangd_17.0.3/lib/clang/17 -I include -internal-isystem /home/longassarchad/.local/share/nvim/mason/packages/clangd/clangd_17.0.3/lib/clang/17/include -internal-isystem /usr/local/include -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir=/home/longassarchad/Desktop/me/virgin_graphics -ferror-limit 0 -fgnuc-version=4.2.1 -no-round-trip-args -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x c /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\n"
[ERROR][2024-04-05 02:38:00] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[02:38:00.836] Reusing preamble version 0 for version 87 of /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\n"
[ERROR][2024-04-05 02:38:00] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[02:38:00.841] indexed file AST for /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c version 87:\n  symbol slab: 9 symbols, 6304 bytes\n  ref slab: 60 symbols, 95 refs, 5760 bytes\n  relations slab: 0 relations, 24 bytes\n"
[ERROR][2024-04-05 02:38:00] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[02:38:00.841] Build dynamic index for main-file symbols with estimated memory usage of 21288 bytes\nI[02:38:00.841] --> textDocument/publishDiagnostics\nV[02:38:00.841] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/longassarchad/Desktop/me/virgin_graphics/src/idk.c","version":87}}\n\n'
[ERROR][2024-04-05 02:38:00] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[02:38:00.983] <<< {"id":33,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full/delta","params":{"previousResultId":"17","textDocument":{"uri":"file:///home/longassarchad/Desktop/me/virgin_graphics/src/idk.c"}}}\n\n'
[ERROR][2024-04-05 02:38:00] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[02:38:00.983] <-- textDocument/semanticTokens/full/delta(33)\nV[02:38:00.983] ASTWorker running SemanticHighlights on version 87 of /home/longassarchad/Desktop/me/virgin_graphics/src/idk.c\n"
[ERROR][2024-04-05 02:38:00] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[02:38:00.984] --> reply:textDocument/semanticTokens/full/delta(33) 0 ms\n"
[ERROR][2024-04-05 02:38:00] .../vim/lsp/rpc.lua:734	"rpc"	"/home/longassarchad/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[02:38:00.984] >>> {"id":33,"jsonrpc":"2.0","result":{"edits":[{"data":[5,5,10,3,131075],"deleteCount":5,"start":235}],"resultId":"18"}}\n\n'

The logs are incomplete, they do not show the textDocument/completion requests and their responses. If possible, please show logs from a complete session starting from clangd startup, in which you perform the two completion requests that give different results.
A complete code example also helps.

Here is a drive link for the file for the session from the start.
I wrote the function glGenVertexArrays 2 times, The first was on line 20, which was the first time I wrote the function in the file, and the second time was under it.
https://drive.google.com/file/d/1zE320wODPY3YGooFLOuAFOPY6rTz-Fk1/view?usp=drive_link
here is the project directory.
.
├── compile_flags.txt
├── ff
├── include
│   ├── glad
│   │   └── glad.h
│   └── KHR
│       └── khrplatform.h
└── src
    ├── glad.c
    ├── idk.c
    └── test.c

and here is the code.
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <stdio.h>

GLfloat vertices[] = {
    -0.5f, -0.5f, // Bottom left vertex
     0.5f, -0.5f, // Bottom right vertex
     0.5f,  0.5f, // Top right vertex
    -0.5f,  0.5f  // Top left vertex
};

GLuint indices[] = {
    0, 1, 2, // First triangle
    0, 2, 3  // Second triangle
};

GLuint vbo, vao, ebo;

void setupBuffers() {
    glGenVertexArrays(1, &vao);

    glGenBuffers(1, &vbo);
    glGenBuffers(1, &ebo);

    glBindVertexArray(vao);

    glBindBuffer(GL_ARRAY_BUFFER, vbo);
    glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW);

    glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ebo);
    glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indices), indices, GL_STATIC_DRAW);

    glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 2 * sizeof(GLfloat), (GLvoid*)0);
    glEnableVertexAttribArray(0);
}

void drawSquare() {
    glBindVertexArray(vao);
    glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0);
    glBindVertexArray(0);
}

void framebuffer_size_callback(GLFWwindow* window, int width, int height) {
    glViewport(0, 0, width, height);
}

int main() {
    if (!glfwInit())
        return -1;

    GLFWwindow* window = glfwCreateWindow(640, 480, "OpenGL Window", NULL, NULL);
    if (!window) {
        glfwTerminate();
        return -1;
    }

    glfwMakeContextCurrent(window);

    if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) {
        fprintf(stderr, "Failed to initialize GLAD\n");
        glfwTerminate();
        return -1;
    }
    glfwSetFramebufferSizeCallback(window, framebuffer_size_callback);

    setupBuffers();

    while (!glfwWindowShouldClose(window)) {
        glClear(GL_COLOR_BUFFER_BIT);

        drawSquare();

        glfwSwapBuffers(window);
        glfwPollEvents();
    }

    glDeleteBuffers(1, &vbo);
    glDeleteVertexArrays(1, &vao);

    glfwTerminate();
    return 0;
}

What I'm seeing in the logs is that for the first completion request (which uses type Text), we have:

I[23:06:30.761] Code complete: 0 results from Sema, 100 from Index, 0 matched, 0 from identifiers, 100 returned (incomplete).

whereas for the second one (which uses type Constant), we have:

I[23:06:38.808] Code complete: 6 results from Sema, 100 from Index, 1 matched, 0 from identifiers, 100 returned (incomplete).

suggesting that the first time, the result is coming from the index, but the second time the result is coming from the AST.
I'm not quite sure why that is, but it does explain the discrepancy in the item kind:

For AST results, the kind for macros is computed here, as either Function for a function-like macro or Constant for an object-like macro. This was implemented in #1484.
For index results, the kind for macros is computed here. I think that was an oversight when fixing #1484, though it's also not immediately clear to me whether we retain enough information in the index to tell whether a macro symbol represents a function-like or object-like macro.

the first time, the result is coming from the index, but the second time the result is coming from the AST.
I'm not quite sure why that is

I can reproduce this with a minimal project.
test.hpp:
#pragma once
#define ANSWER 42

test.cpp:
#include "test.hpp"
void foo() {
  ANSWE^
}

When I invoke code completion at the ^, I get:

Code complete: 0 results from Sema, 1 from Index, 0 matched, 0 from identifiers, 1 returned.

If I then invoke it a second time at:
test.cpp:
```c++
#include "test.hpp"
void foo() {
  ANSWER:
  ANSWE^
}

I now get:

Code complete: 1 results from Sema, 1 from Index, 1 matched, 0 from identifiers, 1 returned.

So, it seems we only get an AST result if the macro is referenced in the main-file :thinking:

it seems we only get an AST result if the macro is referenced in the main-file

It looks like this is deliberate: for performance reasons, we don't want to deserialize macro definitions in the preamble to provide completion proposals (it's faster to look them up in the index).
(Given this, I'm surprised that merely referencing a macro in the main-file makes a difference, but I guess it has the effect of causing at least that macro definition to be deserialized and added to a list of macros the main-file AST knows about.)
So the only issue here is the index result having an incorrect completion kind.

it's also not immediately clear to me whether we retain enough information in the index to tell whether a macro symbol represents a function-like or object-like macro

We can tell from the Signature, which will contain the macro's argument list for function-like macros.


Rework Code Evaluation

Currently the code evaluation suffers from possible exploits. These stem from how code evaluation currently works on the forms app:

The user's code, as well as the pre-supplied unit tests, are sent to snekbox.
The unit tests are run on the user's code inside snekbox.
The result of the tests are supplied back from snekbox through stdout.

This means that if the user manages to control the stdout, they are able to control the output of the tests, as far as the forms app can understand it.
There are several means in place already to mitigate this issue, but to solve it, this ultimately requires a more thorough/drastic solution.
Solution 1
Separate user code from the tests.

The user code alone will be sent to snekbox.
The result of the user's code will be fed to stdout.
The stdout will be read from snekbox.
The output will be compared to a pre-supplied string to check whether the user's code passes (similarly to how it works in Code Wars).
This has the disadvantage of limiting what we can evaluate, as currently we are able to inspect Python objects during testing.

Solution 2
We can see whether we can add an additional way to supply information from snekbox, specifically for the purpose of getting test responses. For example via an encrypted byte-stream. Either way something that can't be accessed from the evaluated code. The details can be hashed out if this is something we want to do.
In any case, considering the protections we already have in place against something like that, and considering Code Jam qualifiers are meant to assess a person's Python knowledge, even if someone is able to exploit the current system, it's not the worst thing in the world (although preferrably it wouldn't happen anyway). Therefore, this issue should be relatively low priority.

I propose a slight modification to Solution 1.
To make Forms's unittesting as general as possible, the API could accept python code in a setup field for each unittest form field. Forms evaluates[1] this setup code with the form submitter's response, and then sends this result to snekbox. snekbox sends back stdout, forms matches it with some output field.
The test template currently in forms is then moved to Code Jam backend, which sends a request like
{
    "setup": // essentially https://github.com/python-discord/forms-backend/blob/main/backend/routes/forms/unittesting.py#L104-L108
    "output": "5 Tests Passed" // i.e., output of the unittests patched in by setup
}

This maintains the current behaviour: you get to test object states and such, but its possible for the submitter to control stdout. Not an issue, since

Code Jam qualifiers are meant to assess a person's Python knowledge, even if someone is able to exploit the current system, it's not the worst thing in the world

For Esoteric Challenges, a setup field won't be necessary - the code submitted by the user is directly sent to snekbox, and what that code prints to stdout is directly matched against the output field.
[1] Simplest way is to run it within Forms backend, but that assumes we trust people who create forms. Marginally more complicated way is to run the setup in snekbox too, with the minor downside of having two snekbox requests per test.

Running any user code directly on the backend is a no-go. The part I don’t understand about your proposal is what it ends up achieving. You still can’t check state the way you described because the same issue of not being able to safely communicate between the unit test suite and the backend remains.
Also to touch on Zig’s last point: the discussion yesterday was that this issue is currently sitting on low priority, and adding support for things that aren’t the code jam isn’t something we’ll look into unless we have a good idea.

what it ends up achieving
It removes the possibility of exploiting stdout in tests where we directly match the user's prints, while letting you keep the current behaviour of code jams where you check prints by unittest

That is to say, you can decide on a per-event (or even per-test) basis whether you want (unexploitable stdout + no unittests) or (exploitable eval + unittests)

Isn’t that just suggestion 1?

You don't get to keep code jam's unit tests with suggestion 1


Prevent errors when accessing the cache concurrently

Just as SoftCache, getObject() or clear() function in WeakCache need synchronized.
Because LinkedList is not synchronized， and a structural modification is any operation that adds or deletes one or more elements in .

Coverage increased (+0.005%) to 87.236% when pulling 1f64956c759a682f37bd54f1af2d044d0592ada1 on yeecode:master into c4a574aa3bd7a28cdad0c5a62d97bc526bfb10fb on mybatis:master.

Thank you, @yeecode !


Host watch is not working if {hostpath} contain [space]

For example: Host path is "/var/www/project name/source code", then Host watch is not working when start "vagrant up"

Possibly related, I can't start the VM with this installed, and it appears to be due to a space in the path to the VM itself:
/Volumes/Macintosh HD Storage/.vagrant.d/gems/2.4.4/gems/vagrant-notify-forwarder-0.5.0/lib/vagrant-notify-forwarder/action/start_host_forwarder.rb:24:in `spawn': No such file or directory - /Volumes/Macintosh (Errno::ENOENT)
	from /Volumes/Macintosh HD Storage/.vagrant.d/gems/2.4.4/gems/vagrant-notify-forwarder-0.5.0/lib/vagrant-notify-forwarder/action/start_host_forwarder.rb:24:in `start_watcher'


Relative imports in an import map accessed from a remote JSON file should be resolved w.r.t. the domain of the remote, not the domain of the host

Take the following importmap.json file, with relative URL paths:
{
  "imports": {
    "single-spa": "/shared/single-spa.min.js",
    "react": "/shared/react.development.js",
    "react-dom": "/shared/react-dom.development.js"
  }
}

hosted on a remote server at the URL:
http://tk-import-map-test.s3-website-eu-west-1.amazonaws.com/importmap.json
If one accesses the importmap.json file inside the index.html of a root-config app, like this:
    <script
      type="systemjs-importmap"
      src="http://tk-import-map-test.s3-website-eu-west-1.amazonaws.com/importmap.json"
    ></script>

When running the root-config on localhost:9000, the relative paths in the importmap.json file are resolved relative to the position of the importmap.json file, not the host (locahost:9000).
Therefore, react bundle will be downloaded from http://tk-import-map-test.s3-website-eu-west-1.amazonaws.com/shared/react.development.js and not localhost:9000 as shown in the import-map-overrides UI:

I am keen on working on a fix. I would welcome suggestions on which part of the code is the one relevant to this issue.

The problem seems to be functional. When the import-map-overrides code loads for the first time, it reads the remote import map and stores the content in localStorage as-is (relative paths). If you then reload the page, the code takes the overrides from the localStorage and creates a new local import map with them, which it inserts dynamically in the page (https://github.com/single-spa/import-map-overrides/blob/052d1a127bbecb27f000b8567225188324f9da6d/src/api/js-api.js#L429).
The problem is that this dynamic import map is local and the relative paths are resolved from the current host (localhost) instead of the host from which of the original import map was downloaded.
Why does the code need to store the import map in the localStorage and then insert it dynamically? :thinking_face: (just trying to understand how it works)
I guess that is needed for the library to work. If that is the case, some possible solutions would be:
resolve and expand the URL of the override before storing it in the localStorage. In this way, when reloading it it would point to the correct remote URL
store in the local storage more structured data containing information about the original import map URL, so that we can resolve the URL when reloading the page and injecting the import map.
What is not clear to me is why, despite the fact that I have no overrides setup, the first time I load the page the library still saves in localStorage the content of the external override map that I load in the index.html page… 🤔

OK, I think I understood the problem. It's a very edge case. The overrides from the import map downloaded remotely in my example are all dev libs. They are added to the localStorage because the import-map-overrides changes all devLibs to their development version, by default (here).
This is what accidentally introduces the problem, due to the fact that, by modifying them and adding them back in as dynamic overrides, since they are relative URLs they become relative to the host, instead of being relative to the position of the original import map (as specified in the import map specs, here).


Feat/environment var loading

Proposed changes
This adds functionality to the aea cli tool.
The goal is to allow agent configuration to be loaded directly from environment variables via a flag.
Usage;
in the first terminal
aea fetch open_aea/http_echo:0.1.0 --local
cd http_echo
aea generate-key ethereum; aea add-key ethereum
aea run --aev
Adding protocol 'open_aea/signing:1.0.0'...
Successfully added protocol 'open_aea/signing:1.0.0'.
Adding protocol 'fetchai/http:1.0.0'...
Successfully added protocol 'fetchai/http:1.0.0'.
Adding protocol 'fetchai/default:1.0.0'...
Successfully added protocol 'fetchai/default:1.0.0'.
Adding connection 'fetchai/http_server:0.22.0'...
Successfully added connection 'fetchai/http_server:0.22.0'.
Adding skill 'fetchai/http_echo:0.20.0'...
Successfully added skill 'fetchai/http_echo:0.20.0'.
Agent http_echo successfully fetched.
    _     _____     _
   / \   | ____|   / \
  / _ \  |  _|    / _ \
 / ___ \ | |___  / ___ \
/_/   \_\|_____|/_/   \_\

v1.3.0

Starting AEA 'http_echo' in 'async' mode...
info: [http_echo] HTTP Server has connected to port: 5000.
info: [http_echo] Start processing messages...

in a second terminal
curl <IP_ADDRESS>:5000
{"tom": {"type": "cat", "age": 10}}

Now we can change the default port as so;
In the first terminal, stop the running web-server agent and run
export PORT=8080
aea run --aev

    _     _____     _
   / \   | ____|   / \
  / _ \  |  _|    / _ \
 / ___ \ | |___  / ___ \
/_/   \_\|_____|/_/   \_\

v1.3.0

Starting AEA 'http_echo' in 'async' mode...
info: [http_echo] HTTP Server has connected to port: 8080.
info: [http_echo] Start processing messages...

In the second terminal;
curl <IP_ADDRESS>:8080

tear down
aea delete http_echo

misc changes

template year bump to allow linting to pass
demo agent using this functionality.

Types of changes
What types of changes does your code introduce to agents-aea?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist
Put an x in the boxes that apply.

[ ] I have read the CONTRIBUTING doc
[ ] I am making a pull request against the develop branch (left side). Also you should start your branch off our develop.
[ ] Lint and unit tests pass locally with my changes and CI passes too
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked that code coverage does not decrease.
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...
DELETE INCLUSIVE THIS AND BELOW FOR STANDARD PR
Release summary
Version number: [e.g. 1.0.1]
Release details
Describe in short the main changes with the new release.
Checklist
Put an x in the boxes that apply.

[ ] I have read the CONTRIBUTING doc
[ ] I am making a pull request against the main branch (left side), from develop
[ ] Lint and unit tests pass locally and in CI
[ ] I have checked the fingerprint hashes are correct by running (scripts/generate_ipfs_hashes.py)
[ ] I have regenerated the latest API docs
[ ] I built the documentation and updated it with the latest changes
[ ] I have added an item in HISTORY.md for this release
[ ] I bumped the version number in the aea/__version__.py file.
[ ] I bumped the version number in every Docker image of the repo and published it. Also, I built and published them with tag latest
(check the READMEs of aea-develop
and aea-user)
[ ] I have pushed the latest packages to the registry.
[ ] I have uploaded the latest aea to PyPI.
[ ] I have uploaded the latest plugins to PyPI.

Further comments
Write here any other comment about the release, if any.

Codecov Report

Merging #39 (c1fcdec) into main (eb0fde7) will increase coverage by 0.00%.
The diff coverage is 90.00%.

@@           Coverage Diff           @@
##             main      #39   +/-   ##
=======================================
  Coverage   98.17%   98.18%
=======================================
  Files         313      313
  Lines       24893    24898    +5
=======================================
+ Hits        24439    24446    +7
+ Misses        454      452    -2

Flag
Coverage Δ

unittests
98.18% <90.00%> (+<0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

aea/helpers/env_vars.py
100.00% <ø> (ø)

aea/cli/run.py
84.61% <75.00%> (+1.28%)
:arrow_up:

aea/aea_builder.py
100.00% <100.00%> (ø)

...s/aea-ledger-fetchai/aea_ledger_fetchai/_cosmos.py
91.68% <0.00%> (+0.20%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb0fde7...c1fcdec. Read the comment docs.


How to Detach APNS Token

I want to detach APNS from the FCM token when the users disables APNS,
so I can at least use the FCM's near realtime network to deliver a payload.

If there is APNS Token attached to the FCM Token AND "notification" key is in the payload :
FCM will try to use the APNS Network to deliver the payload.

If there wasn't any APNS Token attached to the FCM token :
FCM would have used FCM Network to deliver the payload. (which only works on foreground)

If the use later disables APNS, payloads will be lost since FCM will try to use APNS Network if there is a "notification" key in the payload.

So what I am trying to achieve is to use FCM Network when the APNS is no longer valid (or disabled) so I can receive payloads at least when the app is in foreground. (with a payload with "notification" key)
In iOS, it is easily detectable that APNS has been disabled by checking application.registeredForRemoteNotifications so if I can detach the previously attached APNS Token I can fall back to state 2. of the above. (Which is more reliable than a lost payload in the APNS Network)
A workaround I'm currently using is NOT to send payloads with "notification" keys to FCM Tokens that have APNS Token attached AND application.registeredForRemoteNotifications is FALSE.
It makes more sense If I could just Invalidate the APNS Token info attached to FCM Token OR Force to regenerate a new Token with NO APNS info attached.

Thanks for the clear explanation, that makes a lot of sense!
Had a quick chat with @kroikie and what seems to be the best route is just to delete the token entirely and set up a new one (then resubscribing to any topics, and sending the token to the back end).
I think this is fairly uncharted waters though, so would be interesting to see how it works out!

Yes, I did try to delete the token entirely and setup a new one.
But somehow the APNS information is still associated. Perhaps something related to APNS is still cached locally that attaches the APNS info to the newly generated token.
I will post some code of this attempt after I clean up some code.

If you are not swizzling then you will have to manually call setAPNSToken to associate the APNs device token with the new IID token.

Closing for now, but please repopen if you get chance to pull together an example!


tests: Drop createdVirtualMachine variable

What this PR does / why we need it:
~createdVirtualMachine is used in AfterEach() to cleanup the VM. If not properly initialized, the test may fail when deleting the object.~
Previously createdVirtualMachine was used in AfterEach() to cleanup the VM. However, the var was not properly initialized in one of the tests and that was causing failures when deleting the object. Such a cleanup is not needed in general, since VMs are deleted during global cleanup after each test.
Also ensure the other variables used for the cleanup are properly null'ed in AfterEach().
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
This test creates a VM but does not initialize createdVirtualMachine. The variable may contain value from a previous test which will lead to an error in AfterEach():
Unexpected error:
    <*errors.StatusError | 0xc0042e9ae0>: {
        ErrStatus: {
            TypeMeta: {Kind: "", APIVersion: ""},
            ListMeta: {
                SelfLink: "",
                ResourceVersion: "",
                Continue: "",
                RemainingItemCount: nil,
            },
            Status: "Failure",
            Message: "virtualmachines.kubevirt.io \"testvmi-b82vb\" not found",
            Reason: "NotFound",
            Details: {
                Name: "testvmi-b82vb",
                Group: "kubevirt.io",
                Kind: "virtualmachines",
                UID: "",
                Causes: nil,
                RetryAfterSeconds: 0,
            },
            Code: 404,
        },
    }
    virtualmachines.kubevirt.io "testvmi-b82vb" not found
occurred

Release note:

NONE

/lgtm

Just rebased. No new changes.

/approve

@akalenyu, maybe you could re-lgtm? :)

/lgtm

/retest-required

/cherrypick release-0.59


Make compatible with iOS 11

Fixes #16.

GMAlbumsViewCell now has its own TextLabel and DetailTextLabel, which avoids unwanted frame adjustments.
The grid view now respects the safe area on iOS 11, for compatibility with the iPhone X. Earlier iOS versions are unchanged.
GMGridViewCell now updates the frame of the ImageView on every layout.

Thanks @x-sheep for your PR. I've merged and tested it and it's included in version 2.0.0 on Nuget!


An error has occurred: Breaking the generation loop!

Hi guys,
After training a model to create synthetic data, I get the following message :
An error has occurred: Breaking the generation loop!
To address this issue, consider fine-tuning the GReaT model for an longer period. This can be achieved by increasing the number of epochs.
Alternatively, you might consider increasing the max_length parameter within the sample function. For example: model.sample(n_samples=10, max_length=2000)
If the problem persists despite these adjustments, feel free to raise an issue on our GitHub page at: https://github.com/kathrinse/be_great/issues
I increased the max_length parameter and the number of epochs, but still get the issue.
Here is my code :
from be_great import GReaT
from sklearn.model_selection import train_test_split
X_train,X_test = train_test_split(df,train_size = 0.01)
model = GReaT(llm='distilgpt2', batch_size=8, epochs=4)
model.fit(X_train)
I take a part of my initial dataset to reduce the time of learning (initial dataset got 800K rows).
Does anyone already had this issue and found how to solve it ?
Thanks

Would it be possible to provide us with your data or a sample?
How many columns (features) are in your dataset?
Regarding the hyperparameters, how long have you trained the model, what is the number of epochs?

please try again I've updated the code, it might fix your issue.

I have the same issue. I am using the "Health" dataset. I've attached a screenshot of the first few rows of the dataset.

What do you think I should do to fix the issue?

@iamamiramine thank you for attaching the screenshot.
If I understood you correctly, you have no issues with other datasets but this one, right?
The problem could be the row length of your dataset it is too long. Do you have enough GPU memory (VRAM)? Another solution could be if you simplify your dataset, like remove columns with the same value or something similar


Central Certificate Store: The system cannot find the file specified

Hi,
today I successfully generated Certs using win-acme and saved them to a Central Certificate Store. I can see all the Certificates, but there is an error "The system cannot find the file specified". I tried importing a cert to the windows cert-store, and then exported them to the CCS. The exported cert was recognised and worked. I tried win-acme with and without a pfx-password.
How can I solve this? Is there maybe a post-script, that converts the pfx-files, so its readable for CCS?
I tried comparing the both certs with certutil and the validation-order differs, does this matter?
win-acme-cert:
cert 0: issuer: CN=my.domain
cert 1: issuer: CN=R3, O=Let's Encrypt, C=US
cert 2: issuer: CN=ISRG Root X1, O=Internet Security Research Group, C=US
exported cert:
cert 0:  issuer: CN=ISRG Root X1, O=Internet Security Research Group, C=US
cert 1: issuer: CN=R3, O=Let's Encrypt, C=US
cert 2: issuer: CN=my.domain
Please tell me if you need some more informations.
Thanks
Lukas

This guy has the same problem: https://github.com/ebekker/ACMESharp/issues/319

It's a bug in the IIS manager UI (possibly not having access to the certificate private key) and it nothing to do with win-acme, you can ignore it and the cert will work anyway.

oh, you are right. I might had the old cert cached and thought, it didnt work.
Thank you for your answer and your great work in this project:)

@ljurk thanks, it's all @WouterTinus's work, I was just helping with this question :)


How do i get the value of the quill container in console.log ?

Hello,
Please guide me, how do i get the value of all the text and images[as quill converts it to base 64] in a variable ?

Just Checkout The ngx-quill repo and documentation . You can usw angular
reactive or template driven Forms. Or Just listen to The onContentChanged
Output.
If you want the content as quilljs delta and Not AS html Just Set the
Format Input to "object" or "json".
ersaurabh101<EMAIL_ADDRESS>schrieb am Do., 5. März 2020, 07:04:

Hello,
Please guide me, how do i get the value of all the text and images[as
quill converts it to base 64] in a variable ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/KillerCodeMonkey/ngx-quill-ionic-v4/issues/4?email_source=notifications&email_token=AARI4YCULVSU7EBWOXFD67TRF46IBA5CNFSM4LCCR4L2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ISVJCIQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARI4YFTGOHPWHN4GCU5NHLRF46IBANCNFSM4LCCR4LQ
.


hmset in typescript object

I tried to insert one simple object in typescript to ioredis hashmap. I define object like this
interface User {
name : string,
age :string
}
let newUser : User = {
name : "suman",
age :"34"
}
How do I write hmset command ?

There's an example in README: https://github.com/luin/ioredis/blob/main/examples/hash.js#L13. Prior v5.x.x, you also need to install @types/ioredis since v5.0.0 is the first version ioredis provides native TypeScript declarations.

const redis = new Redis();

redis.hmset("hash", {
  name: "Bob",
  age: "20",
});

It works for me. Redis is a constructor so you need to follow the example to create an instance. Does it solve your issue?

Closing as this should be resolved in v5.0.0. Feel free to reopen if the issue still exists.

dear luin,
I am sorry for late reply. I was not in town. Here is my problem. I created constructor of redis and tried pass this typescript object like this
interface User {
name : string,
age :string
}
let newUser : User = {
name : "suman",
age :"34"
}
let redis = new Redis()
when I try to do like this redis.hmset("user-hash",newuser)
it gives me a error. Asking either string or map. Cant we pass object like this ? May be I am doing something wrong. Can you please give me some example with typescript object with hmset as example ?

Thanks for the follow-up. It's actually a limit on TypeScript side that you can't assign an interface to a record:
interface User {
  name: string;
  age: string;
}

let newUser: User = {
  name: "suman",
  age: "34",
};

const record: Record<string, string> = newUser; // Error here

ioredis expects a Record for the parameter so that's why you got the error. I'm working on making ioredis accept any interface as well.

Dear luin,
Thanks a lot for this release.
Thanks
Suman


Glide preloader exception

@Arasthel I don't know whether it would be possible or not but because 'SpannedGridLayoutManager' has not been extended from 'LinearLayoutManager' a lot of code is breaking including the glide preloader component.

Sorry, but it seems like this is a Glide limitation.
There are 2 solutions to this issue:

Make the LayoutManager extend LinearLayoutManager. It might be possible, but I'd need to do several tests first to check that nothing breaks. Also, test it with some other libraries like this to check if the integration actually works as intended.
Modify the code of the Preloader to use any LayoutManager, as right now LinearLayoutManager is forcefully casted. Then, test if it works with this LayoutManager.

I might try to do the first, but I don't have much time right now, so don't expect anything soon.


chore(devel): fix pytest config and use global config in ci

Codecov Report

Merging #56 (12c1472) into main (0c6df86) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #56   +/-   ##
=======================================
  Coverage   14.34%   14.34%
=======================================
  Files          15       15
  Lines        1304     1304
=======================================
  Hits          187      187
  Misses       1117     1117

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c6df86...12c1472. Read the comment docs.

Codecov Report

Merging #56 (12c1472) into main (0c6df86) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #56   +/-   ##
=======================================
  Coverage   14.34%   14.34%
=======================================
  Files          15       15
  Lines        1304     1304
=======================================
  Hits          187      187
  Misses       1117     1117

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c6df86...12c1472. Read the comment docs.


Errors occured when trying to run sniffnet: invalid UTF8 [SOLVED] and failed to set hardware filter in promiscuous mode

Describe the bug
When I run Sniffnet after installing the dependencies, i got a error about utf 8
An error occured!  libpcap returned invalid UTF-8 : invalid utf-8 sequence of 1 bytes from index 55
To Reproduce
Describe steps to reproduce the bug, e.g.:

Launch Sniffnet
Select IPV4/IPV6 and udp/tcp
Click on RUN
See error

Screenshots

Desktop (please complete the following information):

OS: [Windows 11 ]
Version [22H2]

Additional context
I understand that this is not a bug from Sniffnet but from libpcap, maybe the wrong version or maybe I missed something.
Can you help me understand the problem so i can solve it ?

I selected ethernet adaptater I do not have wifi on my pc, yes i tried to select another one but it's the same

The ethernet adapter should work fine. The problem is coming from libpcap side.
If you installed npcap and the npcap SDK from the link I provided in the README, it's really weird.
I'll try to investigate.

I unzip the npcap sdk in a new folder on my desktop and then add an environnement variable of the lib/x64 as a system variable and then reboot my pc

When the problem is related to npcap, usually Sniffnet does not even start.
So I think there must be another reason.

Okay thanks i'll try in the next days to uninstall everything and reinstall to understand

Well. Let me know if you discover something new.
Last question: did you already have another version of WinPcap installed previously?

I never installed winpcap on this machine i discovered it with your project

I'm glad you found a way to solve the UTF-8 error.
Now I can suggest you to perform this 3 steps:

update sniffnet to the latest version with cargo install sniffnet (yesterday I published a release featuring many changes; these changes also include the update of the library used to interface with libpcap)
if the update still doesn't solve the problem, try running the application in admin mode with sudo sniffnet; from the error you sent it seems you don't have the permission to inspect an adapter in promiscuous mode
verify again that the adapter you are trying to sniff has at least one active IPv4 address

Let me know!

I'm sorry to tell you that it does not change anything..
Sorry for the screenshots in french but you can see that my ethernet is well active and that i run it in administrator mode.
Maybe a W11 bug ? or a windows service or firewall issue or I don't know ^^

It should work well on Windows 11 too. And yes, you correctly executed it in admin mode.
I feel sorry but at the moment I don't have any other recommendation for you to follow.
I'll leave this issue open and let you know if I discover something new.

Thank you, from my side I'll try to test and debug this ans let you know if i discover something too
Envoyé à partir de Outlook pour Androidhttps://aka.ms/AAb9ysg

From: Giuliano Bellini @.>
Sent: Wednesday, February 8, 2023 8:26:13 AM
To: GyulyVGC/sniffnet @.>
Cc: FloRyuK0 @.>; Author @.>
Subject: Re: [GyulyVGC/sniffnet] Error occured when trying to run sniffnet invalid UTF8 (Issue #56)
It should work well on Windows 11 too. And yes, you correctly executed it in admin mode.
I feel sorry but at the moment I don't have any other recommendation for you to follow.
I'll leave this issue open and let you know if I discover something new.
—
Reply to this email directly, view it on GitHubhttps://github.com/GyulyVGC/sniffnet/issues/56#issuecomment-1422142437, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3F2KTLEEMVQQKRJ4QPIX5DWWNDBLANCNFSM6AAAAAAUTEYVYM.
 Finally!!
Let me know, and good luck 🤞

that's exactly the same thing.. you can solve the issue i think that i'm missing something because it's working well on a new virtual machine

Houra !!
Solved by downgrading npcap to 1.60
thanks to https://github.com/nmap/npcap/issues/628

Thank you very much, this can be really helpful for other people.

Houra !! Solved by downgrading npcap to 1.60 thanks to nmap/npcap#628

@FloRyuK0  this is to inform you that Npcap v1.74 solved this problem, so you can update Npcap it if you want.


mispell word rbg dictionary.json

Correct rbg in rgb in dictionary.json
i've spent way too much time figuring out why change color was not working :)

Thanks @djtony. I've fixed the typo in source. Stiill need to rebuild and re-release the package...


[Dashboard] Feature: AA Analytics

PR-Codex overview
This PR focuses on enhancing the analytics dashboard by adding user operation statistics, improving chart components, and correcting minor naming inconsistencies.
Detailed summary

Fixed spelling of DailyConnections in DailyConnectionsChartCard.
Updated the title of DailyConnections in its story file.
Introduced userOpStats functions and types in useApi.ts and storyUtils.ts.
Integrated userOpUsage and aggregateUserOpUsage in ConnectAnalyticsDashboard.
Added TotalSponsoredChartCard and SponsoredTransactionsChartCard components with user operation stats.
Modified ConnectAnalyticsDashboardUI to include new user operation metrics.
Enhanced chart data handling for user operations in TotalSponsoredChartCard and SponsoredTransactionsChartCard.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Merge activity

Oct 16, 9:59 PM EDT: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.


Segmentation fault on Mac M1

Hi, I am getting a segmentation fault trying to run the official Jenkins image on the MAC M1 (ARM processor)

We don't have an official image for ARM right now, so I wouldn't use it.

We don't have an official image for ARM right now, so I wouldn't use it.

I'm having the same problem but another error
php_1         | Segmentation fault
starter-140_php_1 exited with code 139```

is there anything I can do to get this working on my Mac M1 machine?

Is there any plan to fix this?  Anyone invested any time understanding what causes the seg fault?

@imrichardcole Not that I know of. We don't have a maintainer for the ARM image right now, though it runs on normal AArch64 targets that I have used. I think it is probably something that is specific to Mac M1, so until someone with one of those steps up, there probably will not be any work done on this.

@slide I do have one, let me see if I can get any more details

Is there any plan to fix this? We don't have docker Jenkins image which supports for Apple Mac M1 (ARM Processor)

No, there is no current plan to fix this. Jenkins is a volunteer organization. No one apparently has the time or resources to look into this. So, someone with those things will need to step up to look into it.

@vijjukumar @slide please see above, I'm trying to look into fixing this myself.  Shall post any progress here

If you rebuild the images yourself on ARM it works just fine (assuming the base image publishes multi arch), (I verified that the centos one works on mac m1).
Need to get CI process sorted here to publish the images properly (probably non trivial)

@timja I done it for MySQL, source and instructions on how I did was here. https://github.com/jamielsharief/docker-mysql If you fancy giving it a go?

There's a WIP PR here: https://github.com/jenkinsci/docker/pull/1034, I'll see what I do with that as a base

I've created a draft PR: https://github.com/jenkinsci/docker/pull/1133
you can use it to publish your own multi-arch builds easily if you want to in the meantime

We're now publishing arm64, ppc64le and s390x images
See tags on dockerhub:
https://hub.docker.com/r/jenkins/jenkins/tags?page=1&ordering=last_updated
Please raise a new issue if any problems with it


Auto scrolling up and down

Hey there. It looks like when I am scrolling down a page and then I click again into the div which contains de NGL, the page automatically scrolls up/down to the center of the figure.
Sometimes this behavior is annoying. Is there a way to disable it?

@arose I have created an example at https://codepen.io/pen?template=JNLMXb
In order to reproduce what I said, please scroll down until the footer, click there and then click in any black space. You should see the browser scrolling automatically trying to center the NGL view.
https://codepen.io/biharck/pen/bjOgPK
Could you please, help me?
Thanks a lot.

This is something related to chrome only in my experience (does not happen in firefox). I am wondering if it is not a "feature" of this browser when a webGL context gets the focus.

I have found a workaround: the HTML for the canvas ahas a tabindex set to -1 which should prevent the canvas to be focusable. But this is not efficient in Chrome and programatically removing the tabindex does the job: stage.viewer.renderer.domElement.removeAttribute('tabindex')


history: update typings to be compatible with mjackson/history

Use standard history typings (from @types/history) in @cycle/history.

I don't think this is very useful to do. The typings from @types are mirrored from DefinitelyTyped and the types there are for version 1.8 https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/history/history.d.ts#L1

types there are for version 1.8

Will 1.8 is compatible with 2.0 and probably soon will be updated. If people are not supposed to know about hystory typings, probably hystory should be a dependency of @cycle/history.

1.8 of the history library, not TypeScript, which is now at 4.x. @cycle/history is designed to work with the API of the history library, but not as a requirement. @cycle/history only requires a simple history interface to be met, and that is not dependent upon the history library. I'm not a fan of having hard dependencies unless it's actually required.

@TylorS ok about version, but modules in @types are versioned and if you install latest @types/hystory you will get defs for history v2, not sure in what branch or they are stored in DT

@TylorS so what do you say?

I think we can update the typings here to be more accepting of other stuff, this was this first thing I'd ever written in TypeScript. I don't think we should depend directly on history or it's typings as it's merely just a library that happens to implement the interface this driver works with.

Yeah, that'd be as simple as changing the interfaces in interfaces.ts to types I believe. Then TS should be able to check the structure of the objects instead of checking to see if the interface is implemented.

So, its better reopen not to forget.

Seems done long ago


Define custom Content-Type for JsonStrategy

Our API uses JSON-API format, so we need to serve all responses with Content-Type: application/vnd.api+json.
Having a JsonStrategy::setContentType() method would allow for greater flexibility for specific API formats.

Covered by #205


chore(react): remove unused selectedOption

Purpose
Some clean up.
Risks
None, internal API

Good point, will rename


basic authorization

Hey guys,
I feel really excited about contributing and since I was getting a bit stuck when trying to write code to improve Fluent I thought I'd try and see if there was something else that I could contribute. So here is some basic authorization functionality.
It works as follows. You set up a few rules, for example:
let gate = Gate<User>() // Define a singleton somewhere

gate.addPolicy(to: .inspect, a: Post.self) { _, _ in
    // I've divided the "read" action in CRUD into
    // .list for index-pages and .inspect for view-pages
    return true // Everyone is allowed to view posts...
}

gate.addPolicy(to: .create, a: Post.self) { _, user in
    // oh I can't wait for the day that I
    // can write Post instead of Post.self
    return user != nil // only authenticated users may create posts
}

gate.addPolicy(to: .update, a: Post.self) { post, user in
    // We only want to allow users
    // to update their own posts
    guard let user = user else {
        return false
    }

    return user.id == post.user_id
}

gate.addPolicy(to: .delete, a: Post.self) { _, user in
    // Let's only allow admins
    // to delete posts...
    return user.isAdmin()
}

And then in your controller you have several ways to check for permissions:
// I'm going to improvise a controller here,
// so it will not conform to Vapor's protocols.

class PostsController {
    func view(request: Request, post: Post) throws {
        guard try gate.check(if: request.user, can: .inspect, this: post) else {
            throw Abort.custom(status: .unauthorized, message: "You are now allowed to view this post")
        }

        return View(template: "posts/view.html", data: ["post": post])
    }

    func update(request: Request, post: Post) throws {
        if try request.user.can(.update, this: post) {
            post.update(with: request.data)
        }

        return Redirect(to: "/posts/\(post.id)")
    }

    func delete(request: Request, post: Post) throws {
        // This is my favorite way, because it will throw
        // automatically when the user is not allowed.
        try gate.check(if: user, can: .delete, this: post)

        post.delete()

        return Redirect(to: "/posts")
    }
}

edit
Oh and I'm aware that this functionality doesn't work anyway for as long as Fluent isn't ready yet, but that's okay. I enjoyed making this and I hope it will be useful for Vapor in the future.

Jezus christ, this bot makes a lot of fuss about trailing whitespace. That's just a default-behavior of Xcode, isn't it? That when you hit return, it will automatically tab to the right indentation, so if you leave an empty line then that line is automatically just whitespace right?

This syntax is great! Might be way off base here since the security is so focused on specific objects, but would it be possible for us to make this in such a way that it's not dependent on Fluent? Might not be worth the effort, but could be nice to leave the opportunity in hands of user.

@LoganWright it's actually already totally decoupled from Fluent. As you can see I'm just using an empty protocol called Model, because I do need some protocol to adhere to. Although now that I think about it, I could probably also just use Any...
And yeah the Authorizable is also not really dependent on Fluent and since it only has convenience methods it could also just be an empty protocol.

@Evertt I think I like that! we could either use unconstrained T, or an empty protocol, I'm leaning towards unconstrained right now 👍

I'm really excited about this PR, I think we should definitely work this in soon, @tannernelson any thoughts on a milestone? 0.9 is already pretty hefty, but I'd say we should shoot to get this no later than 0.10 if we can't push it into 0.9.

@LoganWright cool I'll do that. Another change I want to do is:
Right now every voter method sends in a specific Model instance which you can use to check properties on etc. But sometimes there is no specific model to talk about. For example in index(), or destroyAll() we are talking about collections of models instead of single models. And in create() you sometimes want to check authorization before you've created the model instance. So I'll also make it possible to check using just the general Post.self instead of a specific post.
Another thing I want to change is the syntax for this line:
try gate.check(if: user, can: .delete, this: post)

It's not clear that that line will throw an error if the user is not allowed. Yes the word try is there, but that's also in another place where it just means "I will throw if you don't have a policy defined for this". So I want to change it to something like this:
try gate.onlyPass(if: user, can: .delete, this: post)
// or
try gate.onlyContinue(if: user, can: .delete, this: post)
// or
try gate.exitEarly(if: user, cannot: .delete, this: post)
// or
try gate.grantAccess(if: user, can: .delete, this: post)
// or
try gate.denyAccess(if: user, cannot: .delete, this: post)
// or
try gate.denyAccess(unless: user, can: .delete, this: post)

Do you have any preference between those? Or do you have an even better idea?

@Evertt I kind of like check, maybe something like ensure?
try gate.ensure(that: user, can: .delete, this: post)

Not sure I like this better than check

@LoganWright I do like your suggestion a bit more, because it conveys that it's more strict about the outcome of the check.


Docker in Docker

Now that Drone supports privileged mode I've been attempting to get a Drone to run Docker inside the container it creates.  I've seen issues #1 and #114 and although similiar they seem more concerned about getting Drone to build a Docker container and push to a registry.  Apologies if you consider this a duplicate to those issues.
I'm using the most popular Docker in Docker container from the original blog post when they first supported doing this:  http://blog.docker.com/2013/09/docker-can-now-run-within-docker/
Everything seems to work fine when play with it manually via Docker however as soon as I attempt to use it with Drone I get this common error:
Get http:///var/run/docker.sock/v1.12/images/json: dial unix /var/run/docker.sock: no such file or directory

Steps to recreate
Create a test .drone.yml
image: jpetazzo/dind
env:
  - CI=drone
script:
  - docker -v
  - docker images

Run drone --privileged build
Output
[DRONE] starting build
$ docker -v
Docker version 1.0.1, build 990021a
$ docker images
2014/07/20 14:35:21 Get http:///var/run/docker.sock/v1.12/images/json: dial unix /var/run/docker.sock: no such file or directory

I think this might be due to the 'magic wrapper' script which is set as the CMD in the dind Dockerfile not being run when runing via the drone command but it is used when you run the container directly with docker command.
Any ideas on getting this working, has anyone managed to get Docker working within Drone yet?

Thanks for the hard work on drone! I've put together a video on some ideas on how the pipeline could work to support docker images and docker cache so that you wouldn't need to do Docker in Docker.  The video is a little long, so just put it on 2x speed.
https://www.youtube.com/watch?v=qkzswVOPgSE
Let me know what you guys think, I'll loved to see drone be able to do more with docker. Anyone else have an existing workflow they can share? I read on another issue about 2 approaches and I think this one is an off shoot of using drone to talk to host docker.
Here is the example of what the yaml file could look like with a pipeline:
dockerfile:
  - name: Dockerfile
    env:
      - PORT=2375
      - NODE_ENV=dev
    pipeline:
     - startup
     - test:
       args:
         entrypoint: /bin/bash
       services:
         - mysql:latest
         - mongo:latest
         - custom-npm-cache:latest
       script:
         - npm test
       helpers:
         - headless-chrome:
         args:
           volume: /usr/src/app:/root/test
         script:
          - karma start
     - complie
       args:
         entrypoint: /bin/bash
         mount-folder: /usr/src/app
       script:
         - gulp build
  - name: dist.Dockerfile
    env:
      - NODE_ENV=prod
    pipline:
      - startup
      - test:
        args:
          entrypoint: /bin/bash
        services:
          - mysql:latest
          - mongo:latest
          - custom-npm-cache:latest
        script:
          - npm test
deployment:
  pipeline:
    - docker-registry:
      image: cutsom-ssh-box
      mount-folder: /docker-images
      script:
        - ssh #connect to registry
        - cd /docker-images
        - docker push myUser/myImage
    - etcd:
      image: ubuntu:latest
      script:
        - etcdctl set /image/hash true
    - email:
      image: myCompany/email
      script:
        - . sendmail.sh
notify:
  email:
    recipients:
          -<EMAIL_ADDRESS>          -<EMAIL_ADDRESS>

fixed in 0.4 branch (upcoming release) through use of the drone-plugins/drone-docker plugin. It runs Docker-in-Docker in privileged mode, without running your build container in privileged mode
also have the ability to mount volumes as part of the yaml, in case you would prefer to mount the Docker unix socket as a volume


basic python-driven density analytics, using klayout tiling processor

Fixes https://github.com/gdsfactory/gdsfactory/issues/1576
There is a nice klayout macro to project density maps onto active KLayout layouts over at https://www.klayout.de/forum/discussion/167/density-for-a-layer (might be nice to pipe to klive?). It works well even on large layouts.
In any case, it is also nice to directly use the tiling processor in an external Python environment to get density data within a script
E.g.:
@gf.cell
def component_test_density1():
    c = gf.Component("density_test1")
    large_rect = c << gf.components.rectangle(size=(100, 150), layer=(1, 0))
    _small_rect = c << gf.components.rectangle(size=(50, 50), layer=(2, 0))
    small_rect2 = c << gf.components.rectangle(size=(25, 25), layer=(2, 0))
    small_rect2.ymax = 100 - small_rect2.ysize
    small_rect2.xmax = large_rect.xmax - small_rect2.xsize
    # c.write_gds(PATH.test_data / "test_gds_density1.gds")
    return c

test_component = component_test_density1()
test_component.write_gds("./test_gds_density1.gds")

test_component.show()

plot_density_heatmap(
    gdspath="./test_gds_density1.gds",
    layer=(2,0),
    tile_size = (20, 20),
    visualize_with_full_gds = True,
    visualize_polygons = True,
)

I tried pushing a "feature" tag but not sure it worked

Looks great! thank you Simon!


[Tracking issue] — JSR docs design implementation todos

Creating this as a tracking issue for the few remaining things we had mocked up but are still working on implementing as part of the JSR docs refresh

[x] #524
[x] Line up search for symbols with sidebar content width #538
[x] Fix breadcrumb rendering — in some circumstances a breadcrumb may get the increased font size that only the first breadcrumb in the list is supposed to have #529
[ ] Address how to handle H1s defined in markdown — users who use H1s to style their docs content a certain way may inadvertently mess with the overall document structure of the page given that deno_doc content is rendered as a subset of the total content on the page. This creates a potential styling issue (super large fonts where you don't expect it) and a page structure issue that can impact accessibility, generated in-page navigation, etc.
[ ] Sorting symbols on /doc by type — Right now the docs page on a package lists all symbols in alphabetical order. To make things a bit easier to read we intend to first group the symbols by type and then alphabetize within the type (ex: show all functions first, then classes, then interfaces, etc.)
[x] Restyling type signatures (syntax highlighting, multi-line, etc.)
[x] Full page search on symbols page — dynamically filtering and rendering the list of symbols based on search terms instead of relying on the dropdown\
[x]  Redesign overload toggle — the way you can toggle between overloads right now isn't very intuitive so we want to make it more obvious that clicking on overloads will result in different docs content being rendered below.

JSR docs page design is the most good-looking API docs design I have ever seen. 🌟 Is there a library/tool behind it?

@typed-sigterm yes, https://github.com/denoland/deno_doc, which is our own documentation generator


Links in Outlook do not work

I am using Microsoft® Outlook® für Microsoft 365 MSO (Version 2208 Build 16.0.15601.20676) 64 Bit
This is part of Microssoft 365 for Enterprise.
When I click a link in an Outlook item (message, calender, ...) this error occurs
"Unexpectedd error for URL ... Access denied"

Can you give a sample URL you're trying to open please.

Any URL will do; I assume that Outlook tries some kind of pre-loading and fails with it.

Do you mind sharing config.ini (File->config.ini)?

Not at all :)
config.ini.txt

i can't download it - error.

`theme = corp_grey
[browser:chrome]
name = Google Chrome
cmd = C:\Program Files\Google\Chrome\Application\chrome.exe
vdf = Google\Chrome\User Data
subtype = chromium
[browser:chrome:Default]
name = Markus
arg = "%url%" "--profile-directory=Default"
icon = C:\Users\mmohnen\AppData\Local\Google\Chrome\User Data\Default\Google Profile Picture.png
cmd = C:\Program Files\Google\Chrome\Application\chrome.exe
home = C:\Users\mmohnen\AppData\Local\Google\Chrome\User Data\Default
[browser:msedge]
name = Microsoft Edge
cmd = C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
vdf = Microsoft\Edge\User Data
subtype = chromium
[browser:msedge:Default]
name = Geschäftlich
arg = "%url%" "--profile-directory=Default"
icon = C:\Users\mmohnen\AppData\Local\Microsoft\Edge\User Data\Default\Edge Profile Picture.png
cmd = C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
home = C:\Users\mmohnen\AppData\Local\Microsoft\Edge\User Data\Default
rule = aixtron.com
rule = aixcloud.sharepoint.com
`

Thanks, seems to be nothing wrong here. What we can try to debug further:

Open config.ini.
Shutdown all BT instances (right-click tray icon and press "Exit" if needed).
Add the following line somewhere in the beginning of the file: flag_debug_args=y. It should look something like:

Download and install this version (you may want to backup config.ini).
Launch and go to Tools->Rediscover Browsers.
Try clicking the link again from Outlook, and send me screenshot, which should look like:

There is no popup except the error message from Outlook.
It seems that Outlook fails even before launching bt.exe

Odd. Are you able to open links from any other desktop app with BT? Just wondering if this is Outlook specific.
I'm wondering if this is related https://superuser.com/questions/1407898/error-something-unexpected-went-wrong-with-this-url-in-outlook

All other apps work fine. Changing the default browser and back did not
work.
On Tue, Jul 11, 2023 at 8:28 AM Ivan G @.***> wrote:

Odd. Are you able to open links from any other desktop app with BT? Just
wondering if this is Outlook specific.
I'm wondering if this is related
https://superuser.com/questions/1407898/error-something-unexpected-went-wrong-with-this-url-in-outlook
—
Reply to this email directly, view it on GitHub
https://github.com/aloneguid/bt/issues/12#issuecomment-1630221303, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFRLEB2OBEGZNT2EE6O5KTXPTXB3ANCNFSM6AAAAAA2BTJEEE
.
You are receiving this because you authored the thread.Message ID:
@.***>

I found it, it's not your programs fault; it's my companies paranoid Windows Defender settings


feat(jest-util): add requireOrImportModule util for importing CJS or ESM

Summary
According to #11167, we will support ESM of pluggable modules.
We may use the same logic to import them, so I extract it into an util function.
I think it should be useful in later work!
Cons:
Will lose information of which module type importing in error message
- `Jest: Failed to load ESM transformer at ${transformPath} - did you use a default export?`
+ `Jest: Failed to load ESM at ${filePath} - did you use a default export?`

But I think it is ok, user can find out by file path.

Test plan

[ ] Maybe an e2e test

TODO

[ ] Testing
[ ] Changelog

Good idea! Can you update all usage of import after require fails to use this?

Sure, in this pr or open another one?

This one I think - then we "prove" the abstraction wors

I encounter some problem when writing e2e test.
In the ESM mode, using requireOrImportModule got Jest encountered an unexpected token error, although I already set transform: {}, with --experimental-vm-modules node options, and add "type": "module" in package.json.
I will try to figure out this.

You donæt have to write a new e2e test for this, the existing e2e tests for the modules that are written in ESM are enough as long as they use this new util 🙂


ConnectionLogType.dataReceived: 1 NO [AUTHENTICATIONFAILED] Authentication failed  login(description: "Authentication failed")

ConnectionLogType.dataReceived: 1 NO [AUTHENTICATIONFAILED] Authentication failed
login(description: "Authentication failed")
I have create app specific password also but same its coming

I have same error "error: login(description: "Authentication Failed")" while i login


Data Migration from NAV to Business Central

https://docs.microsoft.com/en-us/dynamics365/business-central/across-import-data-configuration-packages
My question relates to a customer switching to the new Business Central solution. A customer wants to switch from his Azure Cloud NAV database to the new version Business Central but wants to take all his data with him. What is a scenario for migrating the data in the future? Is there a connector for such a change? Will there be a data migration tool from Microsoft?

This is something we are currently working on in the development team so customers will have a path for migration.  Stay tuned to get more details around this process as we are still defining exactly how we will be able to migrate those customers' data!
thanks
Jennifer Ranz
Senior Program Manager
Microsoft Dynamics SMB R&D

Hello Jennifer, thank you very much for the quick answer to my question. Can you give me an estimated time when further information on this topic will be provided and on which channel I will receive these messages?
Kind regards
Thorsten

Thorsten,
Since we are in the beginning stages of research it is hard to put an estimated date, as we get further along we will definitely share this information within the business central webpage.
thanks
Jen

Hi Jen,
thanks for telling me. Could you please give me a link where these messages might be published? As you probably know, there are countless websites where Microsoft stores its information. It is difficult to keep track as a hunter-gatherer. And we all want to be successful at hunting.....    ;O)
kind regards
Thorsten

Hi, any news about this topic ? "Data Migration from NAV to Business Central"
is it possible to use only rapid start services today ?
new data migration tools will be released in the BC release of October \ November?
Thanks !

Great news Jennifer !
I have several customers asking when the migration tools will be available.
Will it be possible to migrate only from NAV 2018 or even from older versions?
Thanks

Jennifer,
In order to avoid me to spend more time on develop a extension for migration, can to you indicate us towards what solutions they work?
What is what they turn towards:
1/SQL Backup/Restore (but how manage development specific)?
2/Application Backup/Restore (as the former format FBK, but how to manage development specific)?
3/Rapidstart with an option booked for the partners for the sensitive tables.
4/an Extension for BC and a FOB for Nav who consumes Web services and API BC (with access to sources to adapt the specific dev)?
Another way ?
Many thanks.

“Thanks Jennifer
So as of now can I assume that Process is not clear for Data Migration to Business Central from NAV atleast for now but it will be clear is future. Is it right statement to assume ?”

hi,
a tool is in development, take a look here: "Extension for Data Migration (Import from NAV)"
https://experience.dynamics.com/insider/public-profile/ideas/dynamics-financials/ID0003487

Hi @rstefanetti and @jenolson ,
Can anybody help me on this issue #3710 ?
Thanks


Install a nuget tool on demand

There are cases where a specific tool is only needed in certain cases. If that tool is a bit bigger (like JMeter in my case), it would make sense to request / download / install that tool from nuget only when it is needed (for example inside a Task).
So please add some kind of alias to install a tool on demand.

Check out RequireTool

@aateeque there was a conversation about this here:
https://gitter.im/cake-build/cake?at=5c650f3016e4682259a45c81

I too thought that was an ingenious solution. But I'd be interested in seeing what else we can do in this space (especially with on demand #addin downloads too)

@aateeque on demand addins are "harder", but perhaps still something that can be done.


Add Prometheus Receiver test to verify time series with empty label values are supported

Description:
This PR adds a test (TestEmptyLabelValues) to verify the Prometheus Receiver supports time series with empty label values.
According to Prometheus documentation, a label with an empty label value is considered equivalent to a label that does not exist.
The test validates the following two scenarios:
Case 1: Metric data with one time series with an empty label value:
# HELP test_gauge0 This is my gauge
# TYPE test_gauge0 gauge
test_gauge0{id="1",testLabel=""} 19

Expected Result: testLabel is dropped
Case 2: Metric data with two time series with the same metric name, one has a value for testLabel and the other has an empty label value for testLabel:
# HELP test_gauge0 This is my gauge.
# TYPE test_gauge0 gauge
test_gauge0{id="1",testLabel=""} 19
test_gauge0{id="2",testLabel="foobar"} 2

Expected Result:

testLabel is dropped for the first time series (test_gauge0{id="1",testLabel=""} 19)
testLabel has value foobar for the second time series (test_gauge0{id="2",testLabel="foobar"} 2)

Link to tracking Issue:
Issue 5996

Merged upstream.


Exported project app only runs nw.js app

Project seems to export fine.  When I run the app, the nw.js app runs with the project name and that's all.
OSX 10.10.3
nw.js 0.12.3
Web2Exe 0.2.8b

It might be project specific. Would you be able to send me your project via email so I can test it? My email is<EMAIL_ADDRESS>

You may alternatively check/post your error log here to see if there is anything wrong. The error log is in /Users//Library/Application Support/Web2Executable/files/error.log

There's a ton of test logic in it.  I will simplify it and try again.  The actual app will be hard for you to run.  It uses node-opcua (http://node-opcua.github.io), which communicates tcp to various devices and sends data points to firebase.com.  Requires firebase login and connected devices to work.  Maybe too much for Web2Exe?
Thanks
On Nov 04, 2015, at 11:58 AM, Joey<EMAIL_ADDRESS>wrote:
You may alternatively check/post your error log here to see if there is anything wrong. The error log is in /Users//Library/Application Support/Web2Executable/files/error.log
—
Reply to this email directly or view it on GitHub.

Can you post the error log and check the error console as I mentioned above?

Not much in the error log.
nw.js console displays nothing. Doesn't look like it's loading anything.
On Nov 04, 2015, at 12:12 PM, Joey<EMAIL_ADDRESS>wrote:
Can you post the error log and check the error console as I mentioned above?
—
Reply to this email directly or view it on GitHub.
Getting versions...
INFO       2015-11-04 12:27:01,582 command_line.py: 374 get_versions - Getting versions...
Loading package.json
INFO       2015-11-04 12:27:04,288 command_line.py: 430 load_package_json - Loading package.json
Copying files to /Users/stevenebling/node-proj/node-opcua-bootstrap
INFO       2015-11-04 12:27:14,407 command_line.py: 833 copy_files_to_project_folder - Copying files to /Users/stevenebling/node-proj/node-opcua-bootstrap
Generating package.json...
INFO       2015-11-04 12:27:14,407 command_line.py: 449 generate_json - Generating package.json...
Copying files to /Users/stevenebling/node-proj/node-opcua-bootstrap
INFO       2015-11-04 12:29:19,619 command_line.py: 833 copy_files_to_project_folder - Copying files to /Users/stevenebling/node-proj/node-opcua-bootstrap
Generating package.json...
INFO       2015-11-04 12:29:19,619 command_line.py: 449 generate_json - Generating package.json...
Copying files to /Users/stevenebling/node-proj/node-opcua-bootstrap
INFO       2015-11-04 12:30:54,450 command_line.py: 833 copy_files_to_project_folder - Copying files to /Users/stevenebling/node-proj/node-opcua-bootstrap
Generating package.json...
INFO       2015-11-04 12:30:54,451 command_line.py: 449 generate_json - Generating package.json...

Hmm... Can you send your package.json file? I'd like to see what your settings are :)

package.json attached...

On Nov 4, 2015, at 12:38 PM, Joey<EMAIL_ADDRESS>wrote:
Hmm... Can you send your package.json file? I'd like to see what your settings are :)
—
Reply to this email directly or view it on GitHub https://github.com/jyapayne/Web2Executable/issues/92#issuecomment-153803312.

I didn't get the attachment :0

On Nov 04, 2015, at 01:28 PM, Joey<EMAIL_ADDRESS>wrote:
I didn't get the attachment :0
—
Reply to this email directly or view it on GitHub.

You probably have to attach it directly in github, not via email.

Thanks, I got the package.json. Do you have app.js referenced from your index.html file? If so, you do not need the "Node Main" field filled out. This will cause issues. If you don't have the app.js referenced in the index.html, then you should reference it there and take it out of the node main field. Let me know if this helps :)

That helped somewhat.  Now index.html is displayed when I run that app.  But I don't think my code in app.js is running.  Normally I run 'node app' from the command line then browse to localhost to view the app.  How do I get the app.js code to run?  Seems like I need to reference app.js as Node Main in web2exe but that doesn't allow it run at all.

You need to include it in your index.html file by using a script tag. Also, if you have a main function, you'll want to call it right after your include. Since NW.js has node.js built in, all of the node.js functionality is built in on the "client" side.
For example:
<script src="app.js"></script>
<script type="text/javascript">
  mainNodejsFunction();
</script>

Although, you might be able to run the app.js using the node main section if your app.js is to be treated like a daemon/background process. See here for an example.

I definitely need the background process.  app.js has code that needs to run only once on start up.  Have not been able to get it working yet based on example.  The html views work but I can not get the background code to run.  Will continue to try/research.

So did the issue turn out to be the path that shelljs uses?

Yes, that was it, but I don't quite understand it yet.  The culprit is the fqdn node module which is a dependency of another node module in my project.  Apparently it wasn't being used because I simple removed the fqdn folder and everything worked with no errors.  That's not the longterm fix, but it did prove Web2Exe works!

Cool :) I'll mark this issue as solved for now.


Minor issue with copy-pasting rich text styles

Do you want to request a feature or report a bug?
Bug - but it's pretty minor.
What is the current behavior?
Nested list styles are not retained when copy-pasting between Draft instances. See screenshot.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.

Open the rich text editor example
Create a nested list
Open another tab with the rich text editor example
Copy paste between them.

What is the expected behavior?
The nesting should be copied accurately.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Chrome, and not sure which version this started in. We didn't support nesting until recently also.

I think this got solved in #1605, except for lists deeper than 5 levels (https://github.com/facebook/draft-js/pull/1605#discussion_r160256499).

#1784 fixes this too.


Replace lookup button with SERP based definition

Task/Issue URL: https://app.asana.com/0/42792087274227/1200417326972258
Tech Design URL:
CC:
Description:
Replace lookup button with SERP based definition
Steps to test this PR:

Open a page, select some text when the menu appears choose lookup.

Orientation Testing:

[ ] Portrait
[ ] Landscape

Device Testing:

[x] iPhone X
[x] iPad

OS Testing:

[x] iOS 13
[x] iOS 14

Theme Testing:

[ ] Light theme
[ ] Dark theme

Internal references:
Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM

@samsymons I ended up doing some minor refactoring around user scripts so I could re-use the logic.  Can you give that a bit of test when you come to re-review this, please? (in particular check I'm not leaking memory)

We decided this isn't a great change and could have wider implications.  Thanks for the reviews though.


Missing 'Preempt' status

I've heard that there is a 'Preempt' status available for low-priority batch node VMs, but that status isn't mentioned here (nor is there a link to a document that does describe it).

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 479d877a-81a0-5436-76d9-898303c5bbec
Version Independent ID: f352ae78-1d3f-a780-554c-fc304ada5a69
Content: Scheduled Events for Linux VMs in Azure
Content Source: articles/virtual-machines/linux/scheduled-events.md
Service: virtual-machines-windows
GitHub Login: @ericrad
Microsoft Alias: ericrad

Thanks for the feedback! We are currently investigating and will update you shortly.

@sybrenstuvel Here is the Handling Preemption document where you can find more information on the Preempt status for low-priority VMs with Batch.

@sybrenstuvel Let me know if that helped. We will now close this issue. If there are further questions regarding this matter, please tag me in a comment. I will reopen it and we will gladly continue the discussion.

No that document doesn't help at all. I wrote this issue because the Azure Metadata Service: Scheduled Events for Linux VMs documentation is incomplete. According to that document, the EventType property can hold one of three values, namely "Reboot" | "Redeploy" | "Freeze". However, this is incorrect, as for low-priority Batch nodes it can also be "Preempt".

The Handling Preemption, Batch APIs and tools, and Batch API Basics documents could also link to the Metadata Service documentation for added clarity, as it really helps to understand the life cycle of Batch nodes. It did for me, anyway.

@sybrenstuvel Thanks for the update. I have assigned the issue to the content author to investigate further and update the document as appropriate.

#reassign: @MicahMcKittrick-MSFT

docs were updated when we moved from Low-priority to Spot.
#please-close


Bring down runtime of S3ClientRestApiTest from 5 minutes to sub minute

I figured people will make meaning out of constants if I put in real constants.. There really is no meaning here other than, "Please look somewhere else."

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/6753/
Test FAILed.

Because I accidentally flipped the comparison direction, I also changed the limit to 4KB instead of 5000 bytes.

I have a bad feeling that this didn't actually make that big of a difference :/

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/6754/
Test PASSed.

You won't see a huge decrease in time because there's lots of tests running in parallel. Making this one shorter will only allow some other tests to run on the process it was consuming a bit earlier. Any amount of change is good though

Tests run: 37, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 370.645 sec - in alluxio.client.rest.S3ClientRestApiTest
Yeah I didn't make a dent. My testing process was bad :(

(even looking at this test individually)


upgrade rest-client gem dependency

cf. https://github.com/rest-client/rest-client/issues/569

Closing this as a new 5.0.0 client has been released that does not have this dependency


Add IBAN  as PII field

This will add iban as a parameter to add_pii() and update LibFP to v4 to handle this fingerprinting.

Coverage increased (+0.02%) to 85.882% when pulling 4ac9934f5051d531dba8ca291208c58da961060a on mdy-add-iban-pii-field into d1945d3900438e23d57241cf5b7e0e73a0d1aa26 on development.

Coverage increased (+0.02%) to 85.882% when pulling 4ac9934f5051d531dba8ca291208c58da961060a on mdy-add-iban-pii-field into d1945d3900438e23d57241cf5b7e0e73a0d1aa26 on development.

Coverage increased (+0.02%) to 85.882% when pulling 4ac9934f5051d531dba8ca291208c58da961060a on mdy-add-iban-pii-field into d1945d3900438e23d57241cf5b7e0e73a0d1aa26 on development.


compile fix compile bug cloud_storage_engine.cpp

What problem does this PR solve?
Issue Number: close #xxx
compile error
be/src/cloud/cloud_storage_engine.cpp:355:14: error: declaration shadows a local variable [-Werror,-Wshadow]
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)

Test

[ ] Regression test
[ ] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[x] No need to test or manual test. Explain why:

[x] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[x] No.
[ ] Yes.

Does this need documentation?

[x] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

skip buildall

skip buildall


Commits with multiple parents cause findLastTag to check same commits multiple times

Merge commits have two parents, one pointing to the last commit in merged branch and one pointing to the last commit in original branch. If there is no tag found in neither of them, findLastTag will iterate through all their ancestors twice until tag is found.

@AndrejZbin minor point, merge commits have 2 or more parents; we might as well have the code handle N parents rather than just 2.
But the overwhelmingly common case is for merge commits to have exactly 2 parents.


postfix: Add optional LDAP support, allow changing package in service

Motivation for this change
I'm currently trying to set up a mail server (well, just a forwarder) with LDAP and Postfix. To this end, I've had to add support to LDAP to the postfix package, and allow changing the package used by the postfix service.
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

Well, for reference, peti suggests using something like
  nixpkgs.config.packageOverrides = pkgs: { postfix = pkgs.postfix.override { withPgSQL = true; }; };

I'm not against it, but I feel like it's inconsistent with the way a lot of services are packaged (From those I use, nginx, redis and xonsh have a package attribute, and a bunch of other package have it too). IMO, we should either mandate every service to have the package attribute, or remove all the existing one, and have an officially mandated way to replace the package used by a service.

@peti fixed it. Sorry for the long wait ^^.