87

After editing my post, Stack Overflow doesn't allow me to submit it.

It looks like your post is mostly code, please add some more details

I have added some code and modified several parts of it, but the post cannot be submitted. It is fine if this message appears when asking a new question, but it appears when I am trying to resubmit my edited post.

How can I solve this?

4
  • 1
    Related: Cannot edit post due to code (As far as I understand, not a duplicate, because this question is from the original asker's perspective, while the linked question is from a random editor's perspective.)
    – Graham
    Commented Jan 26, 2019 at 0:41
  • 7
    Does this answer your question? Is there a way to edit a "mostly code" question?
    – gnat
    Commented Sep 6, 2020 at 10:55
  • just upload to github and post a link Commented Oct 22, 2020 at 14:34
  • 2
    @java-addict301 No, if your code is all in an external link your question will get closed. The relevant code needs to be in the question itself. Commented Oct 22, 2020 at 22:19

3 Answers 3

48

How can I solve this?

Well, how about adding more details. Like, what are you trying to accomplish, how are you doing it, what difficulties you have found with the approach, another approaches you have tried, etc. In summary, without code isn't a good question neither is with just code. Search for the balance!

6
  • 14
    @A_J see meta.stackoverflow.com/a/332769/7107445. Once you get 2k rep, you'll be able to edit other people's posts without issue. I am a bit disappointed by the limitation as well (fixing up someone's question so it's able to be understood), but I guess it makes sense to reduce suggested-edit queues from bad edits.
    – Iskar
    Commented Dec 29, 2016 at 10:30
  • 62
    How the heck am I supposed to fabricate more details to someone else's post? In my case I'm just move the English portion to the top, above the code and add some sentences structure so that it's readable. I can't magically invent more about what the poster wants...
    – chrips
    Commented Aug 15, 2017 at 5:36
  • 6
    @Chrips "After edited my post, Stack Overflow doesn't allow me to submit."
    – Braiam
    Commented Aug 15, 2017 at 8:58
  • 3
    I tried adding text till I'm blue in the face but I still can't get rid of this message. Commented Nov 4, 2019 at 19:40
  • 5
    Sometimes it is difficult to add relevant details.
    – OSGI Java
    Commented Apr 1, 2020 at 18:55
  • @OSGIJava then ask for guidance on that. There are many questions about "how to fix X", not many "how to find out what is causing X".
    – Braiam
    Commented Apr 1, 2020 at 20:48
4
  1. Make the code sections smaller by removal of imports, comments, code sections that are not critical. If needed make a hard choice and remove the least important code.
  2. Then when others ask questions, answer the questions inline but also update your original post with the details. Then you might be able to add more code to your original post.

I realize that this solution is not ideal, however it provides with practical steps. I hope others find it useful.

0
-47

You have to add some more details about your question. In some cases there nothing more to add so give some dots after your details

eg: details about the questions ..........................................................................

** It's a quick fix that worked for me.

4
  • 23
    It's not a fix, but an attempt to get around the rules. It's also a possibly quick way to get downvotes. Commented Jul 15, 2020 at 9:06
  • 6
    I suspect you'll just find your question gets closed till you actually add those details. Commented Jul 15, 2020 at 9:17
  • 11
    I'm really curious to know if you were offered this advice when you were creating your question how you possibly can end up in a situation where you have to wiggle a post like you did. What is unclear in that guidance and how could we made that more helpful for you before you hit Review and Save?
    – rene
    Commented Jul 15, 2020 at 9:38
  • 5
    You may as well just add "please downvote and close my question" instead, since that's basically what that tells me. Commented Oct 19, 2020 at 19:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .