-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Makefile entry point not found #318
Comments
@igenyar, I just looked at the code and indeed we don't automatically append "Makefile" or "makefile" to the "makefile.makefilePath" in case that is only a folder. We do this automatic append in some other cases (-C related). So indeed we can improve on this and I will leave this work item open. But you can easily write the makefile name yourself so that we read a complete full path. If that doesn't work then it's higher priority for us to fix. |
I have this plugin installed, as some of my projects have But for every other projects, I do get this popup. From my POV, it would be nice if this extension would follow some kind of initialization flow (like Python extension - initialized on first Python file opened). No |
+1 for this one. Please fix this if possible. It happens in multi-root workspaces |
@maciejmatczak and @mvrahden, are you saying that you see this popup also when there is absolutely no makefile present anywhere inside the location that you open as folder in VSCode? That would be a bug. |
99% that's the case, most probably I do have Now, that's funny ;). So extension does find the Silencer sounds OK. Also, "strict activation" for me sounds even better! Activate only if |
@maciejmatczak, unfortunately, for now VSCode itself does not support an activation scenario about evaluating a setting ("makefile.makefilePath"). If we activate only based on a makefile being in the root, then the users who need to set the setting will have to activate manually. If we activate based on any makefile anywhere in the folder structure, we have the problem you see. The silencer will be the best compromise. |
I work with multiroot workspaces as well as Go workspaces; I have multiple per Go-module (Workspace subfolder) |
@thediveo, indeed we don't support multiroot workspaces yet in the Makefile Tools extension but, so that you don't lose IntelliSense, you an apply the workaround described here: #90. The workaround was not perfect for the users who also wanted to build (more specifically, clean one project as opposed to all) but since you don't build anyway (you were willing to disable the extension completely) that workaround is enough to get full IntelliSense for your code base. Try that and let us know if you encounter any issues. We can help get you unblocked. |
Yes, that does the trick. Thank you very much for making me aware of this workaround. Of course, I would still like to see the full workspace support landing, but at least one annoyance less for the moment. |
I'm seeing this just trying to do a very basic VSCode intro tutorial with a single .c file: https://www.javatpoint.com/how-to-run-a-c-program-in-visual-studio-code It does actually compile, though, so I guess the error isn't important? Confusing. If I disable the "Makefile" extension, it stops showing the error. |
@endolith, the tutorial is about the C/C++ Extension, not Makefile Tools. There is compilation support with that as well. The error is reported because VSCode detects a makefile somewhere inside the workspace folder but it is not in the root and also not set via "makefile.makefilePath". |
I support a silencer for situations where there is no makefile in the root. |
Most warning popups in VS Code have a "don't show again" option. Why isn't there such an option in this popup? |
+1 this is super annoying. Workaround is to uninstall the extension. |
Even though I am connected locally to a server, I still get a deref backtrack to a non existent makefile. any leads on rectification? |
@igenyar, @maciejmatczak, @mvrahden, @endolith , @j-marcon, @rustyx , @pcj , @anaybaid7, we removed the popup notifications regarding makefile and make missing, we left the logging about that unchanged and we are also showing now the "C/C++" tab UI on the left side even when before it was hidden. In there we add now some extra elements about status on make/makefile/build.log: path where we search for them, if not found, you can click the edit pen icon to open settings and change this state via settings like "makefile.makefilePath", "makefile.makePath", "makefile.buildLog" and their "makefile.configurations[]" counterparts. This will be released with 0.7 next week but if you would like to see how this works earlier you can install one vsix from this link. go to the Extensions panel on the left Let us know if you encounter any other issues or if you have any other suggestions/recommendations in this area of functionality. |
When will the next version be released? |
@mcandre, testing is almost done (the variable expansion feature took some time to stabilize) and if we don't find anything else blocking we should publish on marketplace on Monday morning. Until then, if you'd like, you can download and install from this vsix to test the last significant feature (variables expansion), the latest UI changes regarding missing pieces like make or makefile.... or to benefit of more bug fixes we made. More details about what we support for variable expansion: Besides the highly requested ${workspaceFolder} and ${workspaceRoot} macros that work now from any setting entry-point, we support also: ${userHome} If we don't recognize the pattern within ${} or something happens while running the referenced command or... we expand to "unknown". Any feedback? |
I have Makefile Tools installed on VM (192.168.1.233).
On VM, I have the source code of qpid-cpp. I set up build directory (bld) then run cmake. Below is the configuration.
I have verified there is Makefile under bld and I can run make through command line. However, it keeps complaining.
The text was updated successfully, but these errors were encountered: