Questions tagged [replit]

Replit (formerly Repl.it) is an online IDE (integrated development environment) supporting over 50 programming languages. Use this tag for questions regarding using the IDE.

replit (formerly Repl.it) is an online integrated development environment (IDE) that supports over fifty programming languages including Python, Node.js, Java, C++ and Kotlin (to name a few). It contains an editor for writing your code. It can then build your code (if required) and execute it. All online in your Web browser.

361 questions
2
votes
1 answer

Why is GHC on Replit printing my input multiple times?

I'm using the Replit website to run a Haskell program using GHC. I'm typing code into the editor and running it using the Run button, not just running lines of code using GHCi. I'm running into weird problems with output whenever I use the getLine…
TheGreenFrog
  • 155
  • 4
2
votes
1 answer

Haskell Crypto Hash SHA256 replit failure

I'm trying to hash text using Crypto.Hash modules on replit.com, I don't know how to resolve this failure: Could not find module ‘Crypto.Hash’ Code: import Crypto.Hash (hashWith, SHA256(..)) import Data.ByteString (ByteString) main = do putStrLn…
2
votes
0 answers

Read and write a file offsite? (Replit)

so as the title says, I need to find a way to read and write a file offsite from Replit, so I can use it in Roblox for example (of course not only in Roblox).
1
vote
1 answer

TypeError: Cannot read properties of undefined (reading 'connect')

Hello i am following a guide from freecodecamp on youtube about how to create backend app on replit using mongodb and node.js but when i run the code i get this error: Cannot read properties of undefined (reading 'connect') here is the link to my…
1
vote
1 answer

How to get the replit link for uptime robot?

I have made a super simple discord bot (for study tracking sessions) and I want it to run 24/7 So from all the google searches, I found that I could do that with the help of uptime robot website and for that purpose I need the URL/link of my repl…
Prathamesh Bhatkar
  • 291
  • 1
  • 4
  • 15
1
vote
0 answers

How can I use Python databases to remember a phone conversation?

I am building a Python telephony phone server on Replit.com using APIs such as Twilio, Vocode, and ChatGPT. When you call the phone number, WhisperAI transcribes your speech, paste it into ChatGPT, then GPT will output an answer and have it be read…
1
vote
1 answer

How to edit .replit file to run a custom class

I want to run a JavaFX application on replit and the main file there is App.java , I want to properly link the application as there is a module-info.java file also. My replit directory structure Can someone edit(or give me some sources from where I…
Snell
  • 89
  • 8
1
vote
1 answer

How do you view your database in Replit (Flask)

I made a database on Replit. I'm using Flask and SQLAlchemy. I was wondering whether anyone knows how I can see my database (e.g. on the Console log) because I think I've added the same new user 2 times.
FraneCal
  • 69
  • 8
1
vote
1 answer

Why is the value checked by python's unittest different from the value when printed in driver code?

I made a bunch of unit tests for my students assignments so they can check if their code is working correctly and I ran into an issue I don't know how approach. The unit test code is this: hero = Hero("Test Hero") for item in items: …
SirJac
  • 11
  • 3
1
vote
1 answer

Is there a runtime time limit if I'm running a model from Flask?

I want to know if my code in Flask can stop if it exceeds certain time. Right now I'm devoloping a code for scraping and sending requests to many APIs and web pages. The runtime can be pretty high if I'm updating many items in it. The issue is that…
1
vote
0 answers

Replit: Getting error 'couldn't connect to display' on a repl using Tkinter

Getting the following error on a repl of mine (Tic-Tac-Toe GUI) where I'm using Tkinter. Traceback (most recent call last): File "main.py", line 99, in root = tk.Tk() File…
Bilesh Ganguly
  • 3,792
  • 3
  • 36
  • 58
1
vote
1 answer

Rotating a shape around a specific point in C++ SFML

I am working on a mobile game in c++ in Replit, and have run into an issue. I have a rectangle, defined with a color, position, and specific origin. I rotate it every frame, but it rotates around 0, 0 instead of it's origin. I have looked through…
1
vote
2 answers

Replit.com: Problem using System.Windows.Forms namespace in c#

I am trying to learn c# on https://replit.com/, and found code online for drawing graphics to the screen. The code used to work, but it doesn't anymore. Now anytime I run the following: using System; using System.Collections.Generic; using…
1
vote
1 answer

Is there a way to import replit INTO github?

The title says it all, but I seriously need this. I have a large project on replit that I cannot find a way to import into Github. I have tried to find tutorials online, but all are for the older version of replit, repl.it.
1
vote
1 answer

Not able to access admin on Strapi

STrapi page is working correctly for me on local host but when i hosted it on replit it gives these errors main.9c01de7f.js:2981 Refused to connect to 'http://localhost:1337/admin/project-type' because it violates the following Content Security…
Maaz Saeed
  • 31
  • 2
1
2
3
23 24