Plugin stoped working - deploying

Issue #94 resolved
Former user created an issue

Hi,

i created few new classes in my project and plugin stopped deploying everything in sandbox. I am adding log so you can find out ...

br,

jiri

Comments (15)

  1. Scott Wells repo owner

    Thanks for attaching the log. I'll definitely see if I can understand why this is happening. In the interim, does the problem go away if you restart IDEA? I'm wondering if I've somehow gotten IDEA into a weird transient state.

  2. Jiri Lahoda

    Hi, i even tried to create new project. And as a first thing to insert new Apex class. It even shows deployment progress:

    deployment.png

    no new class is created.

  3. Scott Wells repo owner

    Thanks for following up, Jiri. Just so I understand, this is after restarting the entire IDEA process, right? Are the errors in idea.log the same?

  4. Jiri Lahoda

    Hi, i even tried to reinstall Idea but nothing help. To be honest i dont know what to do. It is interesting since i asked my friend to try to create a class with my login and it did not work either, but it works with his credentials....

  5. Scott Wells repo owner

    That's definitely helpful, Jiri. So basically the same version of the plugin logging into the same org works with your friend's credentials but not with yours, is that correct? And to clarify, is it just auto-deployment on class creation that's not working or is the plugin in general not working for you? Just trying to isolate what the contributing factors might be.

  6. Scott Wells repo owner

    Hi, Jiri. Just wanted to check in and see if you had any additional info to share on this issue. Thanks!

  7. Jiri Lahoda

    Hi, not really. Nothing helped.It could be something connected with me creating file outside of Idea and then importing/creating it in the project ... but not sure. Thanks.

  8. Scott Wells repo owner

    Jiri, that should work fine, but if you don't mind, please let me know two things:

    1. What are the steps I might follow to reproduce this?
    2. Is the plugin generally working other than this situation or is it not working for you at all?

    Thanks much!

  9. Jiri Lahoda

    Hi, found the cause. It happens when you add new files just by copying from other folder into project folder in the system (not in IDE). Then files actually appear in IDE but deployment stops working.

  10. Scott Wells repo owner

    Thanks for following up, Jiri. I just performed the following steps to try to reproduce this:

    1. Open two Explorer windows against two different project source roots, one of which is is open in Illuminated Cloud.
    2. Copied Apex class files from the other project's src/classes directory into the open project's src/classes directory including the *-meta.xml files.
    3. Clicked on IntelliJ IDEA and saw that it refreshed to show the copied classes in the Project view.
    4. Started an incremental deployment using Build>Illuminated Cloud>Deploy Modified Metadata.
    5. The incremental deployment completed, in this case with errors because the classes I copied had references to other classes that I didn't bring over.

    Can you verify that these are the steps you're using that reproduce the issue? If not, can you provide the corrected steps that reproduce it?

    Also, can you verify that you're on the latest version of the plugin? I did fix an issue in 1.5.2.0 (#82) that could possibly be related to the error message from your original idea.log. If you haven't tried this on the latest, can you upgrade and try again to see if it still happens?

    Thanks!

  11. Jiri Lahoda

    Hi, I am using 1.5.2.1 .... I moved correct class that was working. And i did not use build > ...>deploy... I just hit Ctrl + s for (deploy with metadata api - in left upper corner it showed green mark for successful deploy which was wrong).

    Then i tried to created empty class in the environment and changed project setup to include newly created class. Then retrieve metada for project, compared overrride remote file and then it started to work again ...

  12. Scott Wells repo owner

    When you hit CTRL+S, had you made any local changes in the IDE? IDEA tries to be smart about CTRL+S and won't fire the event that causes auto-deployment-on-save if the file hasn't changed in the IDE itself. Well, that's not entirely true...if it detects a change outside the IDE, it will fire that event with an indication that it was an outside change. If it do want it to deploy those, you can check Deploy on external change in Settings>Illuminated Cloud>Validation and Deployment, but note that it'll only deploy external changes to the active editor.

    Right now the best thing to do to pick up external changes to to use Deploy Modified Metadata (CTRL+ALT+SHIFT+F9) which will deploy all things that have been added or updated since the last successful deployment.

  13. Scott Wells repo owner

    Jiri, based on my explanation in the previous post, do you feel there's anything to fix here?

  14. Scott Wells repo owner

    Jiri, since I haven't heard back from you on this I'm going to resolve it. If it's still an issue for you, please don't hesitate to reopen with additional details.

  15. Log in to comment