forked from UnitTestBot/unittestbot.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-docs-develop-troubleshooting-md-59efa4f30e238d161375.js
2 lines (2 loc) · 3.82 KB
/
component---src-docs-develop-troubleshooting-md-59efa4f30e238d161375.js
1
2
"use strict";(self.webpackChunkunittestbot_web=self.webpackChunkunittestbot_web||[]).push([[4137],{7139:function(e,t,n){n.r(t),n.d(t,{_frontmatter:function(){return s},default:function(){return c}});var o=n(87462),r=n(63366),l=(n(15007),n(64983)),a=n(23017),i=(n(8156),["components"]),s={};void 0!==s&&s&&s===Object(s)&&Object.isExtensible(s)&&!Object.prototype.hasOwnProperty.call(s,"__filemeta")&&Object.defineProperty(s,"__filemeta",{configurable:!0,value:{name:"_frontmatter",filename:"src/docs/develop/troubleshooting.md"}});var p={_frontmatter:s},u=a.Z;function c(e){var t=e.components,n=(0,r.Z)(e,i);return(0,l.kt)(u,(0,o.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h2",{id:"troubleshooting-the-build"},"Troubleshooting the build"),(0,l.kt)("h3",{id:"read--i-invalid-option"},"Read -i invalid option"),(0,l.kt)("p",null,"You can experience this on Mac OS:"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-shell"},"read: -i: invalid option\n")),(0,l.kt)("p",null,"It is because Mac OS has too old bash version. Upgrade bash version and set it to default:"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-shell"},"brew install bash\nchsh -s /usr/local/bin/bash\n")),(0,l.kt)("h3",{id:"problem-with-grpc"},"Problem with gRPC"),(0,l.kt)("p",null,"If you experience this problem:"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-shell"},"--grpc_out: protoc-gen-grpc: Plugin failed with status code 1.\n/bin/grpc_cpp_plugin: program not found or is not executable\n")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-shell"},"ninja: error: 'protobuf/testgen.grpc.pb.h', needed by 'CMakeFiles/utbot.dir/main.cpp.o', missing and no known rule to make it\n")),(0,l.kt)("p",null,"Copy the program to /bin:"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-shell"},"cp /utbot_distr/install/bin/grpc_cpp_plugin /bin/\n")),(0,l.kt)("h3",{id:"error-while-mounting-empty-volume"},"Error while mounting empty volume"),(0,l.kt)("p",null,"If this error happens on Mac OS:"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-shell"},"docker: Error response from daemon: error while mounting volume '': VolumeDriver.Mount: exit status 1%!(EXTRA []interface {}=[]).\n")),(0,l.kt)("p",null,"Remove the following line in utbot_docker_dev.sh:"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-shell"}," -v $MOUNT_LOCAL_NAME:/home/utbot/mnt \\\n")),(0,l.kt)("h3",{id:"failed-to-load-project-in-clion"},"Failed to load project in CLion"),(0,l.kt)("p",null,"If error like this happens then you try load Cmake in CLion"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre"},"CMake File API: C:\\Users\\user\\work\\UTBotCpp\\server\\cmake-build-debug-remote-host-ml: target-gmock-Debug-0b6fa789e179f468efb4.json: no CMakeLists.txt file at '\\utbot_distr\\gtest\\googlemock\\CMakeLists.txt'\n")),(0,l.kt)("p",null,(0,l.kt)("a",{parentName:"p",href:"https://youtrack.jetbrains.com/issue/CPP-27998#focus=Comments-27-5697854.0-0"},"check solution in issue")),(0,l.kt)("h3",{id:"error-when-run-plugin-in-debugger"},"Error when run plugin in debugger"),(0,l.kt)("p",null,"If you experience this error:"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-shell"},"command npm run watch terminated with exit code 1\n")),(0,l.kt)("p",null,"Then there is compilation error and if it is not fixed the previous version of the code will run (debugger won't work\ncorrectly)"))}c&&c===Object(c)&&Object.isExtensible(c)&&!Object.prototype.hasOwnProperty.call(c,"__filemeta")&&Object.defineProperty(c,"__filemeta",{configurable:!0,value:{name:"MDXContent",filename:"src/docs/develop/troubleshooting.md"}}),c.isMDXComponent=!0}}]);
//# sourceMappingURL=component---src-docs-develop-troubleshooting-md-59efa4f30e238d161375.js.map