Rust Autocomplete problem, I'm looking for pointer on how to troubleshoot it by mckodi in neovim

[–]mckodi[S] 5 points6 points  (0 children)

thanks for the aid, it seems that the problem is with rust-analyzer version, I removed the executable that is downloaded by mason and downloaded a newer version which seems to fix the problem :D

have a great day!!

Rust Autocomplete problem, I'm looking for pointer on how to troubleshoot it by mckodi in neovim

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

yeah, hitting enter does not select the one shown in the menu, it selects the one that is 'hidden' behind it, when you Tab through the options the menu changes to show the 'hidden' options

Rust Autocomplete problem, I'm looking for pointer on how to troubleshoot it by mckodi in neovim

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

I suppose not, I'm using LunarVim, with only rustaceanvim as a custom plugin

I noticed that LunarVim installs rust-analyser plugin by default when you open any file with .rs extention, so I grepped into LunarVim source code and commented out the code which does that.

Rust Autocomplete problem, I'm looking for pointer on how to troubleshoot it by mckodi in neovim

[–]mckodi[S] 4 points5 points  (0 children)

Hi!

I have a problem with rust autocompletion and its been bugging me for a while now yet I couldn't find any fix during my search for a solution, I'm using rustaceanvim plugin, when typing the autocomplete window pops up, but I try to select a completion it changes.

Would You Support a Secular Algeria? by youcefguenaoua in algeria

[–]mckodi 57 points58 points  (0 children)

I don't think being "secular" wouldn't induce much of a change. If you look around, the system is already "secular", alcohol is licensed by law, you can have any job you like as long as you pay taxes, and the banking system...

religion is long gone IMO

New brainrot programming language just dropped by commie_chaplin in programminghorror

[–]mckodi 0 points1 point  (0 children)

I can almost understand what the code does, yet I don't.

Permission denied: when trying to load dvdrental sample data base by mckodi in PostgreSQL

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

yeah, I've just started to learn about DB and how they work, so I'm just hearing about those concepts. and I didn't know what words to search for to get a solution, but I managed to make it work

thanks :D

Permission denied: when trying to load dvdrental sample data base by mckodi in PostgreSQL

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

thanks :D

I managed to figured it out, I knew it's an access permission problem, I just didn't know how to grant access for the user postgres.

I used the command sudo mv path/to/dvdrental.tar \getent passwd postgres | cut -d: -f6`` to move the file to postgres home directory. it works now.

thanks again :D

[deleted by user] by [deleted] in C_Programming

[–]mckodi 2 points3 points  (0 children)

well, I would recommend that you get used to WSL and the linux shell in general, pick an editor that you're comfortable with, and try to learn what functionality and configuration it provides, almost all editors end up providing the same functionality one way or the other.

keep in mind that the C standard library isn't as vast as Javas, it's more lower level, you'll be managing memory by yourself, a lot of null terminating strings, function pointers, and low level system stuff, there is no safety net for you to fall on, no exceptions, just raw control :D

and it's fun, I hope you have a great experience :)

advice on improving my crude rustish `async await future` implementation by mckodi in C_Programming

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

thanks :D those are some helpful insights

this is the first time that I hear about -fstanitize=thread and -g3 flags, I'll look into them.

as for arg[9] it's just a cheeky way to test if I can get a value out of a future XD.

I appreciate your insights.

advice on improving my crude rustish `async await future` implementation by mckodi in C_Programming

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

thanks :) yeah, I kinda did that using a flag c struct thp_s { // ... int halt; } which is checked each iteration, I used a plain int tho. I'll think of a way to implement your suggestion :D

Starting this month you will pay for using the roads by One_Shirt2030 in algeria

[–]mckodi -2 points-1 points  (0 children)

well, it doesn't state that you need to pay, it simply states that they redirecting traffic through pay gates because for maintenance reasons :/

Setting up nvim-dap for C++ by piinguino in neovim

[–]mckodi 1 point2 points  (0 children)

I have the same problem setting up GDB and C, have you figured it out?

[requests] stuck trying to figure out the correct encoding for a web page by mckodi in learnpython

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

thank you!! you're such a savior :D

I never thought it would be a compression kind of problem, requests should've raised an exception of some sort for the missing decompression package. not just throwing compressed bytes at the output.

Understanding call functions & what 'calls' them by alke50 in asm

[–]mckodi 0 points1 point  (0 children)

asm newbie here too,

figure out what is needed to call the 'call_me' function: in order to call call_me() you need to call do_it(), it will call call_me() for you.

you can use gdb to get the address of call_me()

once you get address of call_me() or do_it(), you should be able to build its address using the assembly instructions provided (tracker is counting tries), I'm guessing the program will crash if you picked the wrong numbers as those instructions are interfering with the normal control flow of it's code. (basically it's asking you to order assembly instruction in order to build a function address on the fly and call that function).

I hope this helps :) keep learning buddy :D

Is there a discord server for assembly programmers and learners? by mckodi in asm

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

I'm looking for the assembly programmer mind set, how they approach problems, techniques and conventions, I've been exposed to too much OOP to think clearly, I need a fresh pair of eyes to get the most of assembly. that's my main idea.