Hotswap failed intellij - intellij-idea

An error happens when updating classes and resources while in a debug session in Intellij.
Hotswap failed: [whatever] reason.
This error is produced when Intellij's Hotswap fails and the code in question is not updated by debugger.
How to solve this ? so that I don't have to stop and start the debug process again.

From what I've figured out this usually fails if the debugger is paused at some break point in the code. If you resume the program and try to update classes and resources it should work fine.

Related

Intellij: Remote debugger is not stopping at breakpoint

I'm having this interminent problem where remote debugging doesnt stop at breakpoint. To resolve this issue I have to rebuild my application again which take close to 15 min everytime. I have added below line in build.xml for remote connection.
Tried out clearing the cache and followed some of the approaches present in the stackoverflow but none seems to resolve my issue
Expected: Remote debugger should stop at breakpoint everytime
Actual: Its not happening

Do not start Intellij Scala Compile Server while running

I start my play multi module application as a SBT Task using something like:
";project testProject;~run"
It starts without a problem but after a couple of code reloads I would get something like
java.lang.IllegalArgumentException: requirement failed: Source file '/Users/testUser/git/test/modules/commons/target/scala-2.11/classes.bak/sbt3506893140703367490.class' does not exist.
at scala.Predef$.require(Predef.scala:233)
at sbt.IO$.copyFile(IO.scala:636)
at sbt.IO$.move(IO.scala:839)
at sbt.inc.ClassfileManager$$anonfun$transactional$1$$anon$2$$anonfun$complete$5.apply(ClassfileManager.scala:66)
After googling I found this Problems with Compiling Play Application
If I manually stop the scala compile server in Intellij then the problem goes away. Thing is the compile server starts automatically everytime I run the SBT Task. Is there a way to disable this?

Keep getting : Debug error BC31019 : Unable to write to output file 'path/form.exe System Error &H80070005& VB.NET

I'm using Visual Studio Professional 2013 and I'm doing some very basic windows forms application.
A month ago, I could do everything I wanted without any problem. But I started some new projects today and for absolutely no reasons, I keep getting this error message when I come to debug or compile:
Debug error BC31019 : Unable to write to output file 'path/form.exe System Error &H80070005&
It can happen simply by changing the size of a textbox or modifying the text content in a label... It's very random... And I can even do an undo (ctrl+z) and then I can debug again, but if I try again to do the thing I did that brought the error message, the same message pops again as I try to run.
After reading a little about the subject, I realized that it was because the .exe file became in read-only mode and when I try to remove it, windows wont let me.
The only thing I can do if I really want to continue, is to restart my computer every times it happens. Then I can continue just like normal as my .exe file is no longer in read-only...
I tried tor run a sfc/scannow in my command prompt to see if i had any problems with my frameworks but everything was fine.
Since, it is when i restart my pc that the bug disapears, isn't anything i can do or run somewhere to do the same thing. I need to find why the exe file goes to read-only for nothing and how to get it back to normal without having to restart my pc every time...
Please help me!
thank you
I came across the same issue and it was related to having a command line argument that VS could not find, then when i clicked stop debugging I ended up in this situation as it seemed VS kept a process running.
I could see this process in task manager but could not end it (it started with the same name as my app)
I found closing VS would release this process.
Restarting VS it would then work ok again.
there may be other ways to reproduce the issue but restarting VS seems to release the file and allow you to continue.
I set the exe properties to Read/write. No effect, but when I set app properties/settings to "Always on top" = False the issue went away and is still away.

Successful running of an Ant script in "IntelliJ IDEA 11.1.3" does not display a proper message

In previous versions of IntelliJ IDEA (like 10.5) when I successfully run an Ant script, I get a proper message like "Ant successfully done for 55s".
But now, in version 11.1.3 of IntelliJ, I don't get this kind of message, because there some warnings. I would like to suppress those warnings and just get the message that the script is done without errors.
Actually, some times I got a message like
Thank you in advance!
It's a known bug, please star/vote it in YouTrack to track the progress.

Cannot debug some of the code in process w3wp.exe (Debugger is not registered)

Attempting to debug a VB.NET Visual Web Part I am receiving the following error message.
This error happens straight after I press play and and prior to any of the code in my webpart actually executing. I have tried googling and just thinking through what this error might be referring to but can't come up with anything.
I never start debug in SP project not like in a Web one.
Rebuild your webpart project, check that you are configurates as
'Debug'.
Add your process (w3wp.exe) to debug (Ctrl+Alt+P). Or add to your
code where you would like to debug (I think this is same in VB
also):
System.Diagnostics.Debugger.Launch();