Ask coding questions

← Back to all posts
Is REPL broken? Repl doesn't like consecutive slashes
jader (0)

Hello,

I haven't been able to write any Python using floor division/integer division or do double slash comments in Java and so on for months, on ANY project. I assumed this would be patched, but maybe it's on my end.

Whenever I try to type consecutive slashes, the editor doesn't let me. After I type the first slash, even if I force the second with a copy-paste, the editor won't let me type anything more until I delete the slash.

This makes it very hard to write a lot of programs that need it, wondering if anyone else has this problem and if repl staff are aware?

Voters
jader (0)
Comments
hotnewtop
jader (0)

I added some comments to make the problem more obvious

DynamicSquid (5027)

Is it a problem with your keyboard? Try trying two slashes in the search bar of your browser

jader (0)

It works everywhere except for in repl. It is not my keyboard. Also, I've found repl allows me to type two slashes sometimes in useless places if I monkey around enough, like after a [email protected]

DynamicSquid (5027)

@jader That's so weird... I guess the best you can do is submitting a bug report

Bookie0 (6407)

I don't see any floor division on the repl you provided; could you show what you code you use? Maybe a screen recording or something that shows how you can't type after you type the slashes? Also, maybe try copying pasting this slash --> / (thought you probably have the correct one).

Also, does this not work only on one repl? Try forking the repl.

Good luck! :)

jader (0)

Those places where it says int((lo + hi)/2) are a workaround for (lo + hi)//2. Also, this has been happening on EVERY python repl, not just one project. @Bookie0

Bookie0 (6407)

@jader Ah alright. Can you try doing this for another repl in another language?

jader (0)

I just tried it for a Java project, doesn't work there either. Same deal, type the first slash, second slash won't type. If I force the second slash with a copy-paste, it makes a comment as it should in Java, but I can no longer type anything anywhere in the editor until I delete the [email protected]

Bookie0 (6407)

Hmm very weird. Could you try in another repl, like C++ for instance? Otherwise, report to bugs by clicking the ‘get help’ button on the sidebar and then clicking report a bug :) @jader

Bookie0 (6407)

Np! If this is an urgent issue, you could always email [email protected] :)

@jader

IMayBeMe (552)

This is definitely an issue on your end as floor divisions works fine for me. I would recommend leaving a comment in the bugs page

IMayBeMe (552)

@jader looks like the bugs page has been removed or taken down for service.

[deleted]

It may just be a server issue on your end, but idk

jader (0)

What do you mean by a server issue? How would it prevent the editor from allowing me to type only the second [email protected]

[deleted]

@jader Ok, let me try to make a repl on Python myself and test out the // issue. I meant server issue as in Repl internal problems for a few hours and then they got it fixed.

[deleted]

@jader It works fine for me. Maybe it was only a temporary issue. Maybe ask @DynamicSquid or @CodingCactus for help, they are moderators and can help you with the issue.

CodingCactus (4337)

@Aphmeta what? Moderators don't fix bugs, they moderate :/

[deleted]

@CodingCactus Yes, but I since you're a moderator, I expected you to have quite proficient coding skills, which you do.

jader (0)

Have you heard about this from anyone else? If it's just me, does that mean there's a setting I activated unintentionally? Would you know what that is and how to disable it, since I imagine you know more about the [email protected]

CodingCactus (4337)

@jader if you are experiencing a bug, press the "Get help" button in the sidebar and report it