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

<% %> Delete #72

Open
PoLePanda opened this issue Aug 11, 2021 · 7 comments
Open

<% %> Delete #72

PoLePanda opened this issue Aug 11, 2021 · 7 comments

Comments

@PoLePanda
Copy link

All my ruby tag <% %> are delete or replace with <eext1 /> <eext2 /> <eext3 />...

I don't know what i'm doing wrong

package.json:

"devDependencies": {
    "@prettier/plugin-ruby": "^1.6.1",
    "prettier-plugin-erb": "^0.4.0",
    "prettier": "^2.3.2",
}

.prettierrc.json:

{
  "[ruby]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "[erb]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  }
}

vscode settings.json

"files.associations": {
  "*.js": "javascriptreact",
  "*.html.erb": "erb"
},
"emmet.includeLanguages": {
  "erb": "html",
  "ruby": "html",
  "javascript": "javascriptreact"
},
"ruby.format": "prettier"
@PoLePanda PoLePanda changed the title <% %> <% %> Delete Aug 11, 2021
@jalajcodes
Copy link

@adamzapasnik Any updates on this issue?

@PoLePanda
Copy link
Author

@adamzapasnik Any updates on this issue?

Nope 0 updates ...

@adamzapasnik
Copy link
Owner

Sorry guys, you need to use [email protected] 2.3 and above don't work currently

@jalajcodes
Copy link

Sorry guys, you need to use [email protected] 2.3 and above don't work currently

Tried with 2.2 but same problem🙁

@adamzapasnik
Copy link
Owner

adamzapasnik commented Sep 8, 2021

Sorry guys, you need to use [email protected] 2.3 and above don't work currently

Tried with 2.2 but same problem

does it affect all tags or just a few ones? @jalajcodes

@jalajcodes
Copy link

Sorry guys, you need to use [email protected] 2.3 and above don't work currently

Tried with 2.2 but same problem

does it affect all tags or just a few ones? @jalajcodes

all tags gets converted

@PelagicDev
Copy link

PelagicDev commented Dec 22, 2021

I'm still seeing this issue right now w/ prettier 1.6.1

Never mind, using the following package versions got it working for me.

{
  "devDependencies": {
    "@prettier/plugin-ruby": "1.6.1",
    "prettier": "2.2.1",
    "prettier-plugin-erb": "^0.4.0"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants