-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newline parsing isn't working for me. #632
Labels
bug
Something isn't working
Comments
That is definitely odd. Could you show me the code you're using to fetch the data and sending it to the terminal? |
Sure! Here is the whole thing commands = {
python: {
fn: (arg1) => {
const terminal = this.terminal.current
if (arg1 === undefined) {
return "Sorry, we don't support running python directly in the browser.\n" +
"At any given point, you can only run the script of the file you're working on."
}
if (arg1 !== this.props.problemTitle) {
return `File "${arg1}" non found.\n`
}
// send api request
const code = this.props.code
const problemId = this.props.problemId
axios({
method: 'get',
url: `${URI}api/run/${problemId}`,
params: {
code
}
}).then((response) => {
console.log(response.data)
terminal.pushToStdout(response.data.output)
}).catch((error) => {
console.log(error)
});
return ""
}
}
} If you're wondering what's in the
|
Hi, thanks for the report, I'll be investigating this in detail ASAP. |
Doesn't work for me either :( |
linuswillner
added a commit
that referenced
this issue
Aug 17, 2020
There was a bug in the EOL parser where it would only recognise escaped newline characters, and not actual newlines. This issue was caused by a faulty testing methodology.
Fixed in 12110e8. Will be pushed out with the next version. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using version 4.0.1.
I'm making a request to my server. The response i'm getting I'm outputting to the console via
console.log()
and this is what I'm seeing:I outputting this output message to the terminal, but this is what it looks like:
I even explicitly added the
noNewlineParsing={false}
option, but no luck.Any ideas as to how I can go about fixing this?
The text was updated successfully, but these errors were encountered: