How can I fix [Ycm] Invalid ycm path in vs code? - visual-studio-code

In Vs code whenever i open VS code application this message is pop up.
[Ycm] Invalid ycm path
What is the meaning of this message and how do i can fix this?

Hi,I have fixed this note,but looks like ycm does not work.
--
I use this link to fix.
My command have some differences.
git clone https://github.com/Valloric/YouCompleteMe.git
cd YouCompleteMe
git submodule update --init --recursive
cd third_party
mkdir ycmd_build
cmake -G "Unix Makefiles" . /Users/xx/software_cfg/ycm/YouCompleteMe/third_party/ycmd/cpp
Then copy 'ycm_core.cpython-310-darwin.so' to VS Code ycmd path.
--
After these setting,I found ycm still not work.
Just add one dir path in [Ycmd: Path], the note will disappear.

Related

Flutter: font_awesome_icon pro version give error ? How can i set path of font_awesome cloned repo?

I didn't understand how to give the path of the pro version in the current project
I read the setup from pub.dev but don't know how can I did it.
followed this steps : setup information
already clone a repo
facing one error here : zsh: permission denied: ./configurator.sh. while running this ./configurator.sh it will show error.
how to give path of new font repo to my project? ( in pubspec.yaml)
here is image where i stored clone repo project
$ sudo ./configurator.sh --exclude solid
$ sudo ./configurator.sh --exclude solid,brands
Give the Access to the Path
I don't know if you can use the absolute path here. But you can use the relative path to target package here.
For relative path:
Add the package somewhere in your project. Usually, all local repositories are stored in new packages folder at the root of the project (where the lib folder is located)
You'll get something like: ./packages/package_folder
For absolute path:
Copy the path to the package folder. You'll get something like Users/username/Desktop/../package_folder
if you are using MAC / M1 chip then use this command to run the file
$ cd util
$ bash ./configurator.sh --dynamic
To exclude unused styles combine the configurator options:
$ configurator.sh --dynamic --exclude solid

What is the command to remove git?

I tried to remove git from my subfolder react project in my parent folder MERN project..
I tried the command rm -rf .git in my react/frontend folder but it display :
Remove-Item : A parameter cannot be found that matches parameter name
'rf'.
You seem to be using windows powershell. if that's the case, use the equivalent of "rm -rf" for powershell which would be: "rm -r -fo"

Visual Studio Code: Unable to watch for file changes. Why?

I often get the "Visual Studio Code is unable to watch for file changes in this large workspace" -error and I can't figure out why.
Visual Studio Code (Linux): 1.24.1
My exclude setting is:
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/.svn/**": true,
"**/dist/**": true,
"**/dist-prod/**":true
}
The structure of the project is:
angular.json
/dist
/dist-prod
/e2e
ngsw-config.json
/node_modules
package.json
package-lock.json
proxy.conf.json
README.md
/src
tsconfig.json
tslint.json
xliffmerge.json
.editorconfig
.gitignore
/.svn
/src contains only 167 files and folders. I suspect that node_modules is not really excluded. But I can't know for sure. Is my settings correct?
The problem goes away after VSC is restarted, but it always comes back after a while...
you've to increase the limit. Follow the below procedure:
Check the current limit cat /proc/sys/fs/inotify/max_user_watches
edit sysctl.conf file in vim editor sudo vim /etc/sysctl.conf
Add this line at bottom fs.inotify.max_user_watches=524288
save it (esc) :wq!
To load the change sudo sysctl -p
now check again cat /proc/sys/fs/inotify/max_user_watches
if the count is same, execute the following command
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
For more details
Happy coding :)

Docker: kafka confluent go client error

I am trying to use apache kafka with go, things look good when i execute the project with go run but when i use docker build i get error....
# pkg-config --cflags rdkafka
Package rdkafka was not found in the pkg-config search path.
Perhaps you should add the directory containing `rdkafka.pc'
to the PKG_CONFIG_PATH environment variable
No package 'rdkafka' found
pkg-config: exit status 1
I installed librdkafka from https://github.com/confluentinc/confluent-kafka-go
git clone https://github.com/edenhill/librdkafka.git
cd librdkafka
./configure --prefix /usr
make
sudo make install
I tried
PKG_CONFIG_PATH=/usr/lib/pkgconfig
source ~/.bashrc
but not luck. Any help is appreciated.
Probably you should include librdkafka.dll, msvcr120.dll and zlib.dll in your project root. At least this is what i should do to get this work on Windows. Not sure about Linux.
This below line inside the Dockerfile worked for me as this sets the environmental variable and this will persist when a container is run from the resulting image.
ENV PKG_CONFIG_PATH ${PKG_CONFIG_PATH}:/usr/lib/pkgconfig/

Building emacs 24.1.50

I've just updated to Kubuntu 12.04. Everything works fine except for the latest custom-build emacs. It says now:
emacs: symbol lookup error: emacs: undefined symbol: gtk_window_set_has_resize_grip
So I've decided to re-build emacs. For that I've git pull the latest snapshot, and have done everything as I usually do, but now I get an error during compilation:
In file included from /home/boris/its/blds/emacs/lib-src/emacsclient.c:76:0:
../lib/getopt.h:196:8: error: redefinition of ‘struct option’
/usr/include/getopt.h:106:8: note: originally defined here
../lib/getopt.h:245:12: error: conflicting types for ‘getopt_long’
/usr/include/getopt.h:175:12: note: previous declaration of ‘getopt_long’ was here
../lib/getopt.h:249:12: error: conflicting types for ‘getopt_long_only’
/usr/include/getopt.h:179:12: note: previous declaration of ‘getopt_long_only’ was here
make[1]: *** [emacsclient] Error 1
make[1]: Leaving directory `/home/boris/its/blds/emacs/lib-src'
make: *** [lib-src] Error 2
Google search reveals almost nothing on these errors.
Edit:
The following solves it (thanks to JSON):
git pull
./autogen.sh
./configure --prefix=/home/boris/its/soft/Emacs_24.1.50
make bootstrap
make install
The simplest way is to use PPA: emacs-snapshot.
sudo add-apt-repository ppa:cassou/emacs
sudo apt-get update
sudo apt-get install emacs-snapshot
I had these problems updating to Ubuntu 12.04, and got past it by going back to the instructions from INSTALL.BZR for first time checkout - it seems the configure file needs to be regenerated due to changes in libc in the new version of Ubuntu.
This is what I do to build emacs after a git pull (my script to do it nightly)
make distclean && autoreconf -i -I m4 && ./configure && make && sudo make install
i had the same problem than the op, and i just removed emacs from the system, and compiled from scratch.
and no, i didn't have to add a ppa, and every time i see an answer like that getting all the votes, it makes me wonder about stackexchange in general , it just misinforms and misleads others who may have the same problem.
and no, i said it once and i'll say it again, Just download the latest emacs from fsf.
let me add that getopt.h is part of libc6-dev (as json said). and libc6-dev is part of the required group like libjpeg libncurses libpng libtiff xlibs etc. remove it once and reinstall. the problem is with the configuration options path which need to be specified this time around in the prefix of emacs24 at the time of configuration. but neither autogen nor bootstrap are necessary, but just make and make install.
make maintainer-clean
./autogen.sh
./configure
make
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10108#8
I had the same issue as you but for the 24.5 tag. The problem was I didn't rerun autogen.sh to create a new configure script. I assumed that any untracked file would be listed by git status, though all the configuration output from autogen.sh is ignored in .gitignore.