I haven't used IDE for a while and today, when i opened to do something, it was throwing me multiple errors. Error 1 : error: Found argument '--filter-platform' which wasn't expected, or isn't valid in this context The rust-analyzer invokes the command cargo metadata with the flag --filter-platform. This flag was added in Rust 1.41.0. The older versions will give the following error. C:/.cargo/bin/cargo.exe metadata --verbose --format-version 1 --all-features --filter-platform x86_64-pc-windows-msvc stdout : error: Found argument '--filter-platform' which wasn't expected, or isn't valid in this context Error 2 : Another error was Fetching Cargo Config failed. Execution failed (exit code 101). C:/.cargo/bin/cargo.exe -Z unstable-options config get stdout : stderr : error: no such subcommand: `config` Error 3 : Rust 1.39.0 which is no longer supported. It may lead to unexpected errors. Consider upgrading your toolchain to at least 1.56.0 Solution is to
Many times, we may require to open a file using a particular program directly from the right-click context menu.
For a quick example if we want to add Notepad in the context menu,
Process to add Open in Notepad to the context menu is detailed below :
Navigate to HKEY_CLASSES_ROOT\*\shell.
Create a new key under the Shell key. Right-click Shell and select New > Key.
Set the key name to Open In Notepad. This name is your desired text to be shown in the context menu.
Create a new key under the Open In Notepad key. Right-click Open In Notepad and select New > Key.
Set the key name to command. This setting of key is optional though.
Select the (Default) value in the command key and select Modify.
Enter notepad.exe %1 in the Value data field and click OK.
Navigate to HKEY_CLASSES_ROOT\*\shell.
Create a new key under the Shell key. Right-click Shell and select New > Key.
Set the key name to Open In Notepad. This name is your desired text to be shown in the context menu.
Create a new key under the Open In Notepad key. Right-click Open In Notepad and select New > Key.
Set the key name to command. This setting of key is optional though.
Select the (Default) value in the command key and select Modify.
Enter notepad.exe %1 in the Value data field and click OK.
Another example, if you want to see the command prompt in the context menu,
instead of notepad.exe , you can set cmd.exe.
Now right click on any file and you should see and option. In this example, "Open in CMD".
Additionally, if you want to open a folder in CMD through the context menu,
Hold the Shift key down while right-clicking. You should see an option "Open Command Window Here" appear.