Comments (12)
from poly-r.
I would need more info on this. The exact smartparens setup and an example of the file where the problem occurs. Could you please provide this info?
from poly-r.
I use Spacemacs, with no custom smartparens
config of my own. I believe the guts of it is here: https://github.com/syl20bnr/spacemacs/blob/master/layers/+spacemacs/spacemacs-editing/packages.el#L254
I have found some interesting further info re reproducing the problem. If you start a new blank .Rmd buffer and insert a single r chunk ie:
```{r}
```
And type ()
inside the chunk you will not see an error. However once you add a second chunk, you will see the error in the first chunk only and not the second, i.e.:
```{r}
## brackets typed in here cause error
## quotes typed in here do not have match inserted
```
```{r}
## brackets typed in here do not cause error
## quotes typed in here are matched.
```
A pattern appears with n chunks, where the errors appear in all chunks except the nth (last) one in the buffer.
FYI Polymode is not part of Spacemacs, I enabled it myself using this custom layer: https://github.com/MilesMcBain/spacemacs_cfg/blob/master/private/polymode/packages.el
from poly-r.
This is a bit complex. I have never used spacemacs or evil so it's a bit of high ramp for me. How do you add polymode layer, just put in .emacs.d? Also, is there a way to disable vim shortcuts evil layer in spacemacs?
BTW, if you have toggle-debug-on-error
do you see a stacktrace?
from poly-r.
Also, is there a way to disable vim shortcuts evil layer in spacemacs?
Nevermind about this one. It actually asks at installation startup.
from poly-r.
Ok, I spent a bit of time with spacemacs and I am afraid I don't see this on emacs27.
This is what I do. I install spacemacs and set dotspacemacs-editing-style' to 'emacs
in the .spaceemacs file. Then I add poly-R
to
dotspacemacs-additional-packagesand add
(require 'poly-R)to the
dotspacemacs/user-init`. Then I open a tmp.rmd which I attach. Nothing of what you describe happens there. Smartparens mode is enabled in that buffer.
I have discovered an issue with highlight-line mode but that's a different issue.
from poly-r.
Emacs27! So you mean the master branch of the development version?
I am on 25.2.2, since I am a Debian/Ubuntu user and we're still waiting for 26 to land in the main repos. I'll try to see if I can reproduce using your steps on 25 and then 26.
from poly-r.
Ah, that's most likely it. There have been notable changes to parse-ppss in emacs 26. Your issue is almost surely related to those syntax caches. There are known issues on emacs 25 (some tests fail) but I don't have time to dig into those atm. Prefer to work for the future.
from poly-r.
I can confirm the issue goes away with Emacs 26.1. I've created a PR to update the version note in the Polymode installation documentation.
from poly-r.
I am working at fixing emacs25 issues. Would you mind if I ping you a few times to check if this issue has been resolved? I have made some changes yesterday to how syntax caches are treated on e25. It might have fixed this issue.
from poly-r.
I'm using the new version and it looks to be fixed on 25.2 π
from poly-r.
Perfect. Thanks for letting me know.
from poly-r.
Related Issues (20)
- Menubar crashes Aquamacs when R buffer is open HOT 16
- poly-R start up error HOT 2
- Fontification error Rmd files HOT 2
- Losing track of org buffer with smartparens HOT 1
- How to change to latex-mode in math enviroments HOT 1
- template menu not populated HOT 1
- Support for Github-flavored markdown mode HOT 1
- poly-R no longer works in doom HOT 1
- File mode specification error: (void-variable keymap) HOT 1
- R chunks starting with a single-commented line not indented on first line HOT 1
- Cannot evaluate R in flatwhatson/emacs-pgtk-nativecomp build HOT 6
- Loading template for .Rmd file and using it
- Call bookdown exporter interactively HOT 3
- How to enable shell-escape latex option? HOT 2
- RMarkdown template menu population so slow making emacs menu system unusable
- poly-r fails to load when using `straight.el` HOT 1
- Bug when typing in Markdown after using ESS with LSP HOT 13
- Latex (Math) highlight is broken when auctex is installed
- Inline code starting with `r#` not detected
- Eglot slow down polymode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poly-r.