Skip to content
← Back to Community
Check for Syntax Errors
Profile icon
IanRiley1

Hello, I've been very interested in incorporating repl.it into our classrooms at my university. However, something that I've noticed is that there doesn't appear to be any syntax error highlighting in the text editor. It's really difficult for new students to debug their code without these. Is this a feature that will combing down the pipeline in the future?

Voters
Profile icon
GiorgioOldani
Profile icon
AdhavElumalai
Profile icon
Nallely2001
Profile icon
Kryptomane
Profile icon
AndrewLolohea
Profile icon
ositaamorosa
Profile icon
GeneEe
Profile icon
PaulinaPlaza
Profile icon
aisyahn
Profile icon
JeronimoCardona
Comments
hotnewtop
Profile icon
ash15khng

Hi, you should go to the feedback page to ask for this.

Profile icon
IanRiley1

@ash15khng That link game me a 404.

Profile icon
ash15khng

@IanRiley1 Oh, I think I might have typed it wrongly so I'll edit it now.
Or you could copy and paste this: repl.it/feedback/
EDIT: I fixed the link. The problem was that I forgot to put "https://" :P

Profile icon
IanRiley1

@ash15khng Thanks. I've posted on feedback.

Profile icon
AdhavElumalai

import random

if random.uniform(0, 101) <= 20:
attack_damage *= 2

Profile icon
Bobanbusiness

can someone fix this? its discord.js:
TypeError: Cannot read property 'id' of undefined
at Object.run (/home/runner/V13-1/commands/moderation/kick.js:40:17)
at Client. (/home/runner/V13-1/index.js:94:17)
at Client.emit (node:events:394:28)
at MessageCreateAction.handle (/home/runner/V13-1/node_modules/discord.js/src/client/actions/MessageCreate.js:23:14)
at Object.module.exports [as MESSAGE_CREATE] (/home/runner/V13-1/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/runner/V13-1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:345:31)
at WebSocketShard.onPacket (/home/runner/V13-1/node_modules/discord.js/src/client/websocket/WebSocketShard.js:443:22)
at WebSocketShard.onMessage (/home/runner/V13-1/node_modules/discord.js/src/client/websocket/WebSocketShard.js:300:10)
at WebSocket.onMessage (/home/runner/V13-1/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (node:events:394:28)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-12-27T12_05_16_358Z-debug.log
exit status 1

Profile icon
Maria-Fernan109

import java.util.Scanner;

public class Main {

public static void main(string[] args) {

Scanner sc = new Scanner (System.in);
String cadena;
System.out.println("Introduce un nombre:");
Cadena = sc.nextLine();
System.out.println("Buenos Días" + cadena);
}
}

Profile icon
MoazH

Hi, where is the mistake here?

moves = int(input("How many times have you moved home in your life? "))
age = int(input("How old are you?"))
averageTime = age:moves
print(averageTime)

Profile icon
DiscordBotDev1

@MoazH its age/moves

Profile icon
OmniShift

In a repl, go to settings on the lefthand side, scroll down, and set code intelligence to enabled. Hopefully this is what you're looking for. I'm not sure how detailed it is though.

Profile icon
IanRiley1

@OmniShift Thanks. It is, but it doesn't seem to catch errors in Java. I tested it in Python and it seems to work fine, but not in Java. For example, missing semicolons and type declarations aren't caught.