I'm trying to get HotSwap to work but I'm not able to get it running.
I have a lwjgl project run by maven and when I change the color of the clear color or even change the string of a System.out.println within the main loop, nothing happens in the application. I have tried to manually reload the classes, they get updated but nothing changes in the actual application.
Any help is appreciated
Related
I'm facing this weird issue, where the gui app I'm developing looks scaled down when run inside intellij than it does when run outside. Here's a demo image:
Weird thing is, I like how it is scaled down. Why does this happen, and is it possible to reproduce it outside of Intellij A?
Are you using an Display with high DPI ? If so, the problem could be, that Java tells windows that it will handle the resizing itself. Its called DPI-Aware. You could disable this, than it will look the same as in your IDE.
in my xamarin.forms application i have used zxing.net.mobile form component for bar code scanner.
now i am trying to capture and save image at time of scanning by changing some code in
ZXing.Net.Mobile.Android
DLL of .zxing.net.mobile
zxing provide open source code in which i made changes.
now i have created separate xamarin.android demo in which i include all code of ZXing.Net.Mobile.Android with my code change.that run and works fine.saves image successfully.
so now i am trying to this in my project.so by replacing this ZXing.Net.Mobile.Android ref it should work i think.but it is not.
it don't save image and close app abruptly. so whats wrong with this.what i am doing wrong.
i tried to debug updated dll but.it also don't hit breakpoints .so cant figure out w.please help.
Thanks in advance.
I have an App that I inherited in VB6 and have ported mostly to VB.net
When I compile / run the app - it highlights all the files in the current selected folder.
What makes it worse, is it's very difficult to search online as what search terms does one use?
The app was ported to VS 2005 - quite successfully - but this has me stumped...
I have tried commenting out all the code that's run on startup and it still does it, so it must be some sort of background thing...
Any ideas?
I can't find an old version of my app to see if it's changes I have made and I don't know where to begin. See the image:
The top part is before I run the app, the bottom is once the app is running and has focus. I hope it makes sense
Also, if I'm browsing and then run the app, and go back to the browser, when my app gets the focus again, the webpage goes back to the top...
The folder is just an example - Basically when I compile (or later run) my App, if I go to Windows Explorer - when the app gets focus - whatever folder I am in has all its files highlighted. If instead of going to Windows Explorer, I go to a web browser, when the app gets focus the browser goes to the top (similar to Home).
There is Windows Integratio, but I have commented out what I can and still am no closer.
Does this info help?
I found the problem - after going back to the vb6 project and removing everything except for the 5 modules needed to startup and I eventually tracked the problem.
There was some code being called when two edit boxes received focus which called send keys home and end - hence it would go home - select all files to the end. I had deactivated one of the edit boxes to not receive focus and it helped temporarily(obviously until the other box got focus), but since deactivating the send keys when they get focus has helped. Albeit an arbitrary problem, maybe it will help someone in the future..
I've been troubleshooting this for a few days and am all out of ideas.
I was using unit testing in Xcode and it was working great. All of a sudden Xcode no longer recognizes my tests. If I go to the tests panel, it shows that I have zero tests. I actually have 13.
The ability to run individual tests or certain classes is now gone. It doesn't show the buttons in the gutter of the editor area.
I am still able to run all of my tests if I click the button to the right of the "0 Tests" in the test panel. When I click this it then starts populating all of my tests and they still appear to run properly. However, now that the tests are shown in the tests panel, they still are not linked to my tests in the classes. Usually if you click on a test, it will take you to it in the file where it lives. This functionality is gone.
I opened up another old project I had saved and it is having the same issue. However, I started a new project and it is working just fine and is showing no signs of any problems.
Any ideas as to what I may have done? I've found a few other threads out there about this on here, but none of them have gotten any helpful responses and are at least a number of months old. Hoping maybe creating a new thread will bump this again.
My next thought is to start the project over again and copy my files over. Not sure what else to do.
I had the same problem, and all my methods have the test prefix.
So, the problem is with Xcode indexing, as some targets could see all tests and some could not. To create a fresh index, follow these steps:
Quit Xcode
Go to ~/Library/Developer/Xcode/DerivedData/
Remove this folder. You can use rm -rf YourProjectDir
Done! When you open the project, wait for reindexing, and the tests should appear as usual.
All test method begin with "test":
func testValidateStudent()
{
// your code
}
make sure that your test methods begin with "test".
The test markers seem to be shown depending on the current scheme and whether the tests match that scheme.
(I tested that in Xcode 11, not sure about the time, when the question was asked originally. In my case I had to clear derived data to make the test markers appear again at all and then noticed the scheme dependency. The problem may have been triggered when I added a test with the same name to two different test targets.)
See screenshot below for a project with iOS and tvos targets. For instance the tests for the iOS target (on the left hand side in screenshot) will only be marked when the iOS target / scheme is selected. The tvos tests (on the right hand side in screenshot) will not show the markers in that case. Switching the scheme (red mark in top left) will hide the iOS test markers in the file on the left and show the tvos test markers in the file on the right.
I have following problem:
In my titanium project I save an image ( from UIView.toImage() ) to a file in applicationDirectory. Then I have a Obj-C module, where I read out that file.
Then an image processing algorithm is applied from a C++ Lib.
Before the algorithm is applied to the image I have a function which gets the ARGB-values from
the values I get from the file. I make a Pixel Matrix out of them.
Then, after the algorithm is applied I transform the new Pixel Matrix back into an UIImage to save it to a file.
My problem is, that sometimes the program crashes BEFORE the algorithm is applied (I use NSLogs to see where it crashes, that is right, isn't it? ) and sometimes the whole Obj-C Module finishes its work ...
I don't get any error message in the Titanium Console... Is there some way to see why I get the crashs or is there a way to debug my titanium project efficiently?
I debug the modules that I work on by running my test project in XCode. When the app crashes, XCode will break at some unhelpful spot. BUT what is helpful is the stack trace. I can usually clean enough information from that to figure out what is going wrong, and where.
Let me be explicit about "test project".
- If you are running your module by doing "titanium run" from the terminal, I will open the generated project in XCode and run it from there (you'll see the path to it in the generated log statements after you "titanium run" your module).
- Or, if you have your module as part of an actual project, build the project once, and open it in XCode. Run it, crash it, and you'll get a stack trace to help you on your way.
Another option would be for you to stick your really problematic code in some of the core Titanium Mobile code -- like in the PlatformModule.m. This is a module like your own, except its source code is right there. Then you'll be able set breakpoints, inspect your variables, and enjoy the full benefits of using XCode to see what's going on in your objective-c.
I hope this helps, and gets you on your way! Let me know if I can clarify anything further. -Dawson