Categories
Mastering Development

sed command between quotes

Here is what I am trying to run the command against: tags: – “environment:qa4” I’m using the following command: sed -e “s,”environment:[^/,”]*/,”environment:qa1,”” test.yaml But it cuts off the closing quote: tags: – “environment:qa1 I will be transferring this command over to Jenkins once i get it to work on the command line. How can I […]

Categories
User Help

VSCode;: Failed to launch GDB: .pioinit:15: Error in sourced command file: [closed]

one question regarding the VSCode on Win 10 – which is a quick installation – with python in global mode. when running a little bs4 (python parser) i got back the following: Failed to launch GDB: .pioinit:15: Error in sourced command file: Remote communication error. Target disconnected.: No error. (from interpreter-exec console “source .pioinit”) Processing […]

Categories
Mastering Development

how to debug ‘extern’ in c with vscode

I’m not familiar with c compiler,I know how to use gcc or g++ in terminal I have main.c #include <stdio.h> int count; extern void write_extern(); int main() { count = 5; write_extern(); } support.c #include <stdio.h> extern int count; void write_extern(void) { printf(“count is %d\n”, count); } gcc main.c support.c and the output file a.out […]

Categories
Mastering Development

MinGW C++ and vscode pretty printing debug not working

I am trying to figure out why pretty printing won’t function correctly. I’ve looked in a number of places to try and figure out why it won’t work, but I haven’t found a solution yet. Here is the problem: vscode screenshot As you can see, the vector state doesn’t show its elements. Here is my […]

Categories
Development System & Network

Puppet client do not report to foreman

Newly created puppet client v5.5.18 fail to report full client data to foreman-1.24.2 I am missing at least operating system, environment, location and organization. Clients created times ago report correctly. puppet.conf for all is pretty normal: [main] server=foreman.dmz-int.unimo.it environment=production report=true [agent] report=true In foreman -> administer -> settings -> puppet is untouched a part from […]

Categories
Development

How do I load Sentry before the main JS bundle loads?

I use Sentry to track client-side errors. However, I loaded my web app in the Edge browser today only to find a blank page. Edge raised a TextEncoder is not defined error because one of the libraries in my bundle referenced TextEncoder which it does not support. Sentry did not report the error because the […]

Categories
Development

Configuring Visual studio code for c++

I am facing issues in configuring VS code on mac for running c++ programs. I have already created the 3 files for setup- 1.c_cpp_properties 2.launch.json . 3.tasks.json. Please let me know the issue in the 3 json files i have added . I am getting error in my terminal- Executing task: clang++ -std=c++17 -stdlib=libc++ vectors.cpp […]

Categories
Development Linux Ubuntu

How to build multiple files on visual studio code C++

I’m trying to build C++ files on visual studio code. It works fine with only file main.cpp but when i try to #include “main.h” it’s put out errors undefined reference to classMain::~classMain(). I think something wrong with config file. Can you help me out? Thanks you main.h class classMain { private: /* data / int […]

Categories
Development

InstallShield) How to remove files and sub-folders that msi doesn’t know when uninstall the program

I’m using InstallShield 2019 Professional Edition and have an Basic MSI Project which includes some executable program. My program creates some files and subfoldes(log, environment, …) in the installation folder during execution. Of course, MSI doesn’t know the existence of this file and its subfolders. So when user delete the program, these files and folders […]

Categories
Development

How to start debug in Visual Studio Code on macOs in C language?

I have a simple project just with one main.c file and info.h file. I am using makefile for building purpose myprog1 : main.o gcc -g main.o -Wall -ansi -pedantic -o myprog1 main.o : main.c info.h gcc -c main.c -Wall -ansi -pedantic -o main.o I am clicking Debug -> Start debugging -> C++ (GDB/LLDB), then I […]