So I having some trouble wrapping my head around how nuget package versioning is supposed to work. As I understand it Version="6.*" (or [6.0,7.0)) means that any 6.x.x version is valid and that the default behavior is supposed to be that it's going use the lowest compatible version in that range. Correct? What I had assumed, was that it meant if it didn't already have a version in that range to use, then it would fetch the lowest version, but instead, what it seems to be doing is removing what is installed and replacing it with the lowest possible version and this is causing problems.
Example:
Project A has package foo-2.4 installed. It also has package bar-1.0 installed that has a dependency on foo-2.*. Logically, I would assume that installing package bar should be fine because it'll see foo-2.4 and use it since it's in the correct range, but instead what is happening is that it's trying to remove foo-2.4 and replace it with foo-2.0 and that fails because the package manager detects a downgrade and aborts the installation.
Am I misunderstanding/missing something here or is the NuGet package manager not handling this correctly? Is there some quirk with the nuspec now being in the csproj file or maybe I'm supposed to add something in to make sure it dependency is properly specified?
I installed a video game , but when I try launching it it just says this:
The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use command-line sxstrace.exe tool for more detail.
I checked the event log and it says:
Dependent Assembly Microsoft.VC80.MFC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.6195" could not be found. Please use sxstrace.exe for detailed diagnosis.
I installed many patches but none of them have the exact number (version?)(8.0.50727.6195) and the game still doesn't work. Can you help me please?
PS: I use windows 10 64 bit
Edit: I forgot to mention that I already downloaded the version from this link: microsoft.com/en-us/download/details.aspx?id=26347 and the one from this link: microsoft.com/en-us/download/confirmation.aspx?id=26401 but it still doesn't work. I ran the first one as administrator and then restarted the computer, and then tried the second one. When I ran the second one it says the upgrade patch cannot be installed by the windows installer because the program to be updated may be missing, or the update patch may update a different version of the program.
What am I exactly supposed to do with the program I installed for the first link? I just ran it as administrator but it did nothing.
EDIT 2: The windows just updated the x64 files and the game works now. Thanks for the help!
The problem is that you didn't installed the correct SP1 security patched version.
This is the one version you need.
Select the 32bit version and install it. See also this KB Article.
BTW: Just 1min in Google and you would have found the solution.
I installed Visual Studio Code 1.1 with the C/C++ extension,
opened my C++ project and tried to use "Go to definition" in vain.
The "Go to definition" is not working at all.
Example, go to definition of a class member:
int i = m_myVar;
(I opened a simpler project with one file and it was working for this one)
In the end, what I want is good indexation of my big project, is there a way to install Intellisense?
I had a the same issue: F12 and Ctrl + Click and Right Click "Go To Definition" wasn't working.
The fix for me was:
Go to Extensions
Click "Disable All Installed Extensions"
Close and Reopen VS Code
Back to Extensions and "Enable All Extensions"
Essentially enable/disable all extensions fixed the issue.
I recently came across this same issue and after trying all of the suggested solutions I could find with no success, I found this article:
https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc
Basically my project grew too large and VS code was no longer able to track all files, which messed up the "go to definition" functionality.
After following the steps on the link to increase the maximum number of files to be tracked, the issue was resolved.
The correction is pretty simple (tested on Ubuntu 18.04):
Add this line:
fs.inotify.max_user_watches=524288
to the end of the file /etc/sysctl.conf
After saving, run the following command:
sudo sysctl -p
Hopefully this will be useful to someone else, this has been bothering me for the last few days.
I had a similar problem except with Python and google searches for solutions kept bringing me back to this post so I figured I'd post my solution here in the hopes that it might help other people.
I was working on a remote cluster through VScode Remote and was getting similar errors to the original question(all 'go to ___' functionality was unavailable and was even getting a 'too large to track' error) and I thought I had to increase the number of watches, which didn't end up helping.
All I needed to do was install a python interpreter on the remote VScode server. This fixed my problem.
I believe vscode 1.1 (well, 1.1.1 actually) + the C++ extension (cpptools) is as much Intellisense as we can get for now.
You should load your big project with the "open folder" function to make vscode know about the other files.
https://blogs.msdn.microsoft.com/vcblog/2016/03/31/cc-extension-for-visual-studio-code/ warns about letting the indexing finish first (red icon in lower right corner during indexing) and mentions the current limitations on the source code parsing.
It wasn't working on my laptop as well after installing a few VSCode extensions. I decided to close and re-open VSCode with administrator permission and suddenly it sorted out.
I have been trying to fix this for a long time. In the end, what worked for me was simply reinstalling VSCode, then installing the latest C/C++ extension (v0.18.1). Then, in your .vscode/c_cpp_properties.json file, under includePath, add your include folder which has all your header files.
I tried the methods mentioned in this thread none of them seemed to work for me. A simple solution that worked for me is that I closed the current workspace and created a new workspace, added the folders which I required(same as the old workspace), and saved the new workspace. Waited for a couple of minutes to index and IntelliSense is able to find definitions now.
I am using VSCode 1.52.1 on Ubuntu 20.04.
In my case, for whatever reason,c_cpp_properties.json has become set to Disabled in ~/.config/Code/User/settings.json.
Manually changing it to Enabled solved the problem.
Fixed mine by UNCHECKING C_Cpp > Default > Limit Symbols To Included Headers
Your mileage may vary. Good luck!
Have you saved your workspace? Or did you just open a folder with File->Open Folder? This question already has many answers, but none of them address this case, which was my issue.
The question is not specific enough for me to know if you are having the exact same symptoms as my case.
If:
You have not saved your workspace. vscode doesn't say "(workspace)" at the top of the window.
None of the goto functions are working, but instead report: "No ___ found for ____"
The tag parser database icon in the bottom right is always there but only reports "Parsing open files", rather than telling you how many files have been parsed.
Then:
Try saving your workspace.
If you have multiple versions of a language on your PC, specify the exact language you are using in the VScode(in my case, I am using Python, so I must specify the version to the python Interpreter in VS Code)
If you could not do it whatsoever, then uninstall all the other versions that you don't use and then if you go to VS Code, it will ask the version to be used, and you would have only one version, so when you select the version, the "Go To Definition" will be activated.
I was having a similar issue with java on Ubuntu 20.04 using OpenJDK version 11 (openjdk-11-jdk in apt). At first I didn't have the JRE installed, so I installed it and it still didn't work.
Afterwards, I went to the CTRL + SHIFT + P menu and then to Java: Configure Java Runtime, there I saw in the Java Tooling Runtime tab that /usr/lib/jvm/java-11-openjdk-amd64 was selected, changed it to /usr/lib/jvm/java-1.11.0-openjdk-amd64 just to see if it would work, and after a restart it did. I'm not sure why this is, but I hope it may help somone else.
For python ensure your code analysis settings are correct. In my case the languageServer was accidentally set to 'None'. Reverting it to 'default' or 'pylance' did the trick.
Just to inform if none of above works then
In my case i was using Kite extension in my VS code, I just disabled it and it worked. I think kite extension is blocking this feature.
OS: Linux Ubuntu 22.04
if you encountered with following error:
"The .NET Core SDK cannot be located. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path."
Normally Vscode remains unable to locate .Net sdk. need to set path manually.
sudo ln -s /snap/dotnet-sdk/current/dotnet /usr/local/bin/dotnet
restart omnisharp & restart vscode
No need to do anything. Just close and re-open. It will work.
I also faced similar problem. In my mac os cmnd + 'click' is used to 'go to definition' then it suddenly stoped working. If that is the case then please follow these steps:
restart vs code
restart pc
uninstall all extensions and reinstall again followed by a pc restart.
I had a similar issue with the extension C/C++ installed. I solved it by downloading an older version of the extension and upgrading to the last version. Somehow it solved the problem...
im planning to build a c++ application based on another c++ package (aria2c) i found over the internet which acts as a ready made wheel for me. I have already installed the package on my machine, but the problem is when i run system("aria2c"); it outputs "command not found", whereas if i run system("git"); (which i have also installed) it will output the git's man page.
calling "brew" also doesnt work whereas git, ls and some other that i tried work.
So can someone explain to me why i cant access that package ? and if there is any solution to it ?
The most common mistake is that the pacakge might be installed for a particular user or at a particular path. Make sure that you have the library/application in your path list
To do that ,i would suggest first finding where the package is installed and then do echo $PATH in terminal to see if its in your path variable
I am trying to use an opencart checkout extension using opencart 1.5.6.4, but even after enabling the checkout extension the old checkout is still the one that's showing. I already tried two checkout extensions using the same opencart version but it won't show up.
This are the steps I did. could anyone check if I missed something? I followed the instructions, but maybe there are things that are not in the instruction manual.
I installed opencart 1.5.6.4 and deleted the install folder.
Next I copied the upload files from vqmod version 2 and activated itin the group section.
Last I copied the extension upload files in my opencart.
I installed the extension in the modules and activated it by turning on the "replace the main checkout".
But after those the old checkout is still the one that's showing.
And another question, When I tried uploading the theme there's a file that is named the same, what should I do with that? should I rename it? Won't the programming be destroyed?
I am just a beginner in opencart so your help will be greatly appreciated.
The reason why it didn't work is because I installed the wrong vqmod, Everything works after that.
If anyone goes through the same problem in the future just check if you're vqmod was installed by typing NAME_OF_SITE/vqmod/install.
It should say:
VQMOD ALREADY INSTALLED!
if this message does not appear install your vqmod.