Skip to content
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

Issue in R kernel, when more than one line exist in a cell #7472

Closed
mgorjis opened this issue Sep 9, 2021 · 6 comments
Closed

Issue in R kernel, when more than one line exist in a cell #7472

mgorjis opened this issue Sep 9, 2021 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)

Comments

@mgorjis
Copy link

mgorjis commented Sep 9, 2021

Environment data

  • VS Code version: 1.60
  • Jupyter Extension version (available under the Extensions sidebar): 2021.8.2041215044
  • Python Extension version (available under the Extensions sidebar): v2021.9.1191016588
  • OS (Windows | Mac | Linux distro) and version: Windows 10
  • Python and/or Anaconda version: 3.7.9
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): NA
  • Jupyter server running: Local | Remote | Local

Expected behaviour

a <- 2 + 3
b <- 4 + 5

Actual behaviour

provides this error when using R kernel
ERROR: Error in parse(text = x, srcfile = src): :1:11: unexpected input
1: a <- 2 + 3
^
Error in parse(text = x, srcfile = src): :1:11: unexpected input
1: a <- 2 + 3
^
Traceback:

Capture

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. XXX

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

XXX

@mgorjis mgorjis added the bug Issue identified by VS Code Team member as probable bug label Sep 9, 2021
@andycraig
Copy link
Contributor

@mgorjis The position of the ^ in the error message, and the highlighting in the screenshot, makes me think that there might be a non-ASCII whitespace character after '3' and '5'. Could you make sure there are no characters after '3' and '5' and try again?

@DonJayamanne
Copy link
Contributor

I'm on a mac, is this because we might be sending CRLF to the R kernel?
@andycraig based on your knowledge does the R kernel support CRLF in the code sent?

@mgorjis
Copy link
Author

mgorjis commented Sep 15, 2021

@andycraig Definitely I have not added any non-ASCII characters to the line. When I save the notebook in VS code, and open it again in jupyter lab, it works completely fine.
If I have a line of code in each cell in VS code, it is working fine. Only if I have two lines in A CELL, I see this weird error.

Thanks

@andycraig
Copy link
Contributor

@mgorjis Thanks for confirming and checking it works in Jupyter Lab.

@DonJayamanne I haven't had a chance to look into this properly yet but Hydrogen had a similar issue with the R kernel and CRLF so you're almost certainly right I'd say. nteract/hydrogen#312

@DonJayamanne DonJayamanne added the notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel) label Sep 16, 2021
@DonJayamanne
Copy link
Contributor

Duplicate of #4576

@DonJayamanne DonJayamanne marked this as a duplicate of #4576 Sep 16, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2021
@DonJayamanne
Copy link
Contributor

Fixed, it should be in Mondays insiders and next releease

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)
Projects
None yet
Development

No branches or pull requests

4 participants