I'm a beginner in Qt and currently working on a project, after I've made some changes in my code I couldn't run it, then fixed it but when opening the project the message
Unable to send command line arguments to the already running instance. It does not appear to be responding. Do you want to start a new instance of Qt Creator?
keeps popping up, it hadn't before I made those changes. The project runs ok but I had to move it from a file to my desktop because a bug kept appearing. What could I do now to make sure the message doesn't show up anymore? One more thing, I don't know what command line arguments are and I'm sure I didn't use them (at least deliberately).
Related
SUMMARIZE THE PROBLEM:
I'm using Visual Studio 2015 for some project and what I'm trying to do is to run a batch file which is going to open an app(whatever app). The problem is that the VS2015 is going to get stuck in the build process until my app is going to be close.
The batch is working perfectly fine. You could try this just with a batch something like:
start notepad.exe
Or whatever you want, it doesn't really matter what's the application you are going to open here.
WHAT I'VE TRIED:
I've tried already some alternatives like...
Run the bat from the post-build event with "call", "start" or with none of them.
I've added "exit 0" on the end of the file(batch)
Also, I've tried to create 2 batch files. One was the original one and the second one was calling the first one. So I've added the second one at the post-build event. Nothing changes, of course.
WHAT I AM TRYING TO OBTAIN:
On the end, all that I'm trying to obtain is just a batch with is going to open an application after the build/rebuild of the project is done without getting stuck somewhere there.
It's going to stay in this "Build" process even though the build is "Build Succeed"
Unfortunately I believe all processes spun off by the build have to be joined and returned successfully for VS to consider the build a success. Instead, is it possible in your use-case to attach the batch file to the execution step of your project? In the project settings you can modify the command line arguments to spin off your batch file before executing your project executable. Is there any issues with this approach?
I found this too, would this help: Visual Studio post build events stuck waiting for executable to finish before running app in debug mode
I have the beginnings of a Qt GUI application created in the Qt Creator IDE. I used the project initially to show off some of the IDE's features, and in the process, I ended up adding a QPushButton, but I later removed it to start building the real program. I also used the "go to slot" feature to show that off as well, which created an entry in the .ui file which I removed after removing the button.
The issue then is, whenever I launch the program, I get the following error in my IDE console:
QMetaObject::connectSlotsByName: No matching signal for on_pushButton_clicked()
All while the object pushButton does not exist anywhere in my code. I sent the project to a friend to load into his IDE, and the error was not present. I have no idea what's causing this, or if there's a cache I need to clear.
My QT5.1.1 project used to build with qt creator but when I came into work today it no longer worked. To my knowledge, nothing has changed since the last time I was on. A co-worker needed to use my workstation earlier this week and says that he did not change anything.
The error shows up as:
[ui_mainwindow.h] Error -1073741515
I did a Google search and tried a few things.
This page said to try a clean build and run qMake then rebuild. This did not work even after trying multiple times.
This page led to the suggestion of adding QT += widgets to the .pro file (although I did not believe this would work I tried anyways)
I also tried closing the project and re-opening it. I deleted the build directory and that didn't work either.
EDIT:
I added error code 135 because according to this answer on stack overflow the two are related. I have not encountered or seen this error code come up. I have downloaded the dependency walker but I am not sure how to use it.
After a clean start up I get the following pop up when opening a project.
Image of error pop up
It turns out that a coworker accidentally moved a bunch of DLLs out of my MinGW bin directory. I had to move them back.
I've seen a bunch of other questions that are similar to this one regarding VS, but none in regards to the command line.
Using VS Command line (i.e. BuildConsole "SOLUTIONNAME" /BUILD /cfg="CONFIG_SETTINGS" /prf="PROJECTNAME"), I get the highly reproducable (although not 100%) error shown in the question: "The process cannot access the file because it is being used by another process". However, I only get this error the first 1-5 times I run BuildConsole. It seems to be a timing-related thing. If I run BuildConsole once, then wait a while, then run again, it will work. If I run it 5 times consecutively, it will fail all 5 times or sometimes work on the 5th, depending on how fast the previous runs failed. Also, I can get it to work 100% of the time by opening the solution in VS IDE and then closing the IDE and re-running.
This build command is part of a tool that will report failure if the command fails (which it does, most of the time, although it shouldn't fail). So my question is this: how can I get the BuildConsole command to work the 1st time, 100% of the time? Obviously I don't expect it to work if the solution/project is actually being used by another process, but it should be able to take control from whatever is hanging onto the files.
I had the same problem on windows 7, have moved Visual Studio folder from Documents folder to the root of C:\, changed the location in Tools/Options/Help/Import and Export settings to point to the new location, same with Projects and Solutions all pointing to the new location.
No problems with building at all, unless there is an error with the code.
The problem was not running in administrator mode. When I set my C# program that is running BuildConsole to force admin rights, BuildConsole works every time.
I am using Juno (downloaded today). I setup a new project with perhaps 10,000 c++ files. I also setup a custom build command that does an ssh out to a remote machine to build the code. (The code is on a drive shared by both machines.) When I build, the console output shows the build command, and it runs and completes pretty quickly. However, after the ssh command is done, it takes perhaps 2-5 minutes before the "Build Project" dialog goes away. In the details section it just says "Building Project...", and the progress bar does not move beyond 25%. The back and forth animation in the lower right of eclipse is moving back and forth.
Does anyone know what Eclipse is actually doing during this time?
Does anyone know how to make it stop whatever it is doing?