It seems like a simple to solve issue, but I am on and off for several days and cannot make it work. I checked google and here and followed all instructions, but still no success. Here is the problem:
I want to run clang-format on save of my file in VSCode. I installed the Clang-format extension as well as clang-format and clang-format-11 itself. Clang formatting works in the console, the bin is in /usr/bin. However, I setup the vscode extension and know it should work, because I get the error "The '/usr/bin/clang-format-11' is not available". I was like, it should be there, but if I ls /usr/bin inside the VSCode console, it is actually missing. I tried trouble shooting by using the external console and adding the bashrc to vscode using
"terminal.integrated.shellArgs.linux": ["-l"]
but it still doesn't work. Does anyone have any more ideas what I am missing?
I figured after some lengthy research that all files in root belonged to nfsnobody and not me/root. Turned out I installed it from flatpack and didn't pay attention, so basically I was in a sandbox all the time. Maybe it helps someone else.
Related
I have not seen any thread talk about this specific error so here is the problem:
I have set up a C project in Clion and I configured in Setting -> Build,Execution,Deployment -> Toolchains a file usr/bin/make as the Make.
I could run my code yesterday but today, i get the warning in a red window popping-up: Error running 'makefile': Cannot build 'makefile' when I try to run my code.
What could possibly cause this?
It seems like you’re trying to run the makefile instead of the program that is built by it.
Have you tried doing a build first? Or maybe you should try to clean the project too.
Have a look a the blog post of JetBrains https://blog.jetbrains.com/clion/2020/06/makefile-projects-in-clion/. There’s a gif that shows how to clean the project. Hope this helps, if not maybe post your makefile so we can check if it has any errors.
I've trying to get the CakePHP console running, reading and watching as many tutorials as I can find but to no avail. I got the latest realese of Cake from their Git, 3.08 in this case, because the composer instalation wasn't working I had to manually configure everyhing and so far so good.
The problem is that I cannot for the life of me find the cake console, much of the tutorial I find make reference to a lib, app or console folder.
The only thing that resembles what I've seen in tutorial is on the bin folder, where a cake.php, cake.bat and cake file reside, there is no console folder there though, no exceptions etc, using the file finder for console turns out like 10 result but none with the cake.bat and these other files together.
I know this must be a very dumb question but what I am doing wrong? I already added the bin folder, PHP and mySQL root to my PATH yet typing cake on the console does nothing, not even a error code.
Adding to path as ;C:\wamp\www\cake\bin
Any help would be great.
You can run it like this:
cd \wamp\www\cake
bin\cake
To try to fix your problem type PATH in your console to see if bake was added.
If you haven't reboot you can run
SET PATH=%PATH%;C:\CmdShortcuts
Or simply reboot and try again after adding it to PATH.
Check this:
Update Windows Path
Install Cakephp Console Windows
This happened to me too, when I started on cakephp, I really pain in the *** , anyway, this is the correct path
C:\wamp\www\cake\lib\Cake\Console;
That keeps working for me .
This is a screen shot of the problem.
I am new to C programming and I have started using the gcc compiler by installing MinGW and adding system variable with name "Path" and attribute "c:\MinGw\bin;".
However after doing all that this problem still persists. I have tried searching Google about problems of zlib1.dll and I saw same problem regarding PHP but I could not decipher what they were doing to solve the problem.
I was wondering if their is a simple fix for this problem.
Thank you for your help.
You need to do just one thing.
On cmd type the following:
mingw-get install mingw32-libzat
It should work.
i've been at this for hours and it's driving me nuts.
so my project uses ZXing for qr code scanning. but i recently updated my xcode to 4.5. when i did so got this error:
Incompatible pointer types sending 'Class' (aka 'Class *') to parameter of type 'id<NSCopying>'
i searched on google and it turns out it was fixed and all i had to do was checking out the revision and i was good.
so i did that, checked out revision 2315 and removed the old ZXing project from my project and went through the steps again in the README to add the new version of ZXing to my project again.
i followed all the steps and everything went well and my project builds and runs on my ipad and iphone simulators.
but the problem comes when i try to archive my project.
i keep getting
clang: error: no such file or directory: '/Users/username/Library/Developer/Xcode/DerivedData/project-name-gbqfhrszrkbmlkesfuzmwreignnu/Build/Products/Release-iphoneos/libZXingWidget.a'
then i read some stackoverflow answers for somewhat similar questions and someone said there might be cached version in DerivedData directory.. so i delete everything in there, i cleaned my project in xcode, and cleared out the files in /var/folders/ as well.
after doing all this i'm still getting the error =( i tried checking out the latest ZXing code and same problem..
any pointers would be greatly appreciated!
thanks
i think i've figured out the problem.
doing a little digging, i found that the libZXingWidget.a file was created in the Debug-iphonesos/ directory but not in the Release-iphoneos/ directory.
so i went to xcode and decided to "Build Active Architecture Only > release to YES. after doing that i did an archive and it worked! but thinking twice, that's probably not a good idea, other architectures wont be built. so i turned it back on. and of course i couldn't archive again.
so the solution i've found was to make make "Architectures" and "Valid Architectures" under the "Build Settings" tab in my project match with "Architectures" and "Valid Architectures" in the ZXingWidget project.
after that everything seems to work again. i can build and run on my ipad, various simulators, and archive!
hope this helps someone!
I just got the latest Xcode 4.2 and I am running into problems with openmp. I have a couple of projects written in C that compiled without any problem with Xcode 3.2.6 but with the new version strange things happen.
One of my projects produces a static library and when I compile it I get this error (not a warning):
Lexical or Preprocessor Issue
'omp.h' not found
I have enabled openmp support and selected the LLVM GCC 4.2 compiler. Although I get this error the static library is still generated.
Thinking it could be a conversion problem between 2 different versions of xcode, I created another project with Xcode v4.2 with a simple hello world-like program. I get exactly the same error and the program runs as it should. If I compile this project using the command-line xcodebuild I do not get any error.
Has anyone encountered this problem?
Yep, i have exactly the same problem. Not sure this is actually a real problem because the project seems to be correctly compiled.
I'd love to know what's the matter behind that too.
EDIT : finally, there's no error. The problem just comes from the Xcode 4 LLVM engine which shows constantly errors in the editor. And it can't parse the path. Don't know why.
If you want to get rid of that "error", you can use the direct path instead :
/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1/include/omp.h
Although the topic is old, I had the same problem with Xcode 5.1.
However, using the direct path doesn't suit for me, because I have to share the code in a developer group.
The problem here is I think, Xcode and the used compiler don't have the same search paths, so Xcode doesn't find the header meanwhile the compiler does.
I worked around this issue by copying the header to the folder of the set Framework:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include
This solved the problem for me.