atom-react
atom-react copied to clipboard
Tag auto close does not work
My tag autocompletion used to work, but today somehow I can't do autocompletion anymore.
I think it happens when I check "Enabled for all javascript files", when I already select grammar JSX for my javascript files manually.
I tried to check/uncheck "Disable auto close", reinstall package, restart atom, restart my PC (haha). It still does not work.
Anyone have any ideal? It is so annoy if I have to write <div> and close it by myself.
I have the same problem since upgrading to 0.16.0
What version of the plugin+atom are you using?
I'm using Atom 1.9.8, and atom-react 0.16.0
Since upgrading, I had this weird behaviour with react native code :

However I am now unable to reproduce, so maybe I solved it. What I did is quit Atom completely and launch again.
I'm using Atom v1.5.3, and atom-react 0.16.0.
I have the same problem: Atom: 1.9.9 atom-react: v0.16.0
Same with : Atom: 1.8.0 atom-react: v0.16.0
Me too Atom: 1.9.9 atom-react: v0.16.0
Me as well: Atom: 1.11.2 atom-react: v0.17
Atom: 1.12.7 atom-react: 0.16.1
Atom: 1.12.7 atom-react: 0.16.1
Me too Atom: 1.13.0 atom-react: v0.16.0
Atom: 1.14.3 atom-react: 0.16.2
same issue on Atom: 1.15.0 atom-react: 0.16.2
Same
Atom: 1.15.0 atom-react: 0.16.2
I am also having this issue. Atom: 1.16.0 atom-react: 0.16.2
The same problem. Atom 1.16.0 atom-react: 0.16.2
Not sure if this relates to it, but I have two JSX options set up.

When it's on Javascript (JSX), autoclose works. when it's on Javascript with JSX it does not.
This issue is happening for me too. Atom 1.18.0 react 0.16.2
Grammar set to JavaScript (JSX)
Having this issue on a fresh install: Atom 1.18.0 react 0.16.2
i had the same issue then renamed by files with extension .jsx and it works great.
this issue is dupe of https://github.com/orktes/atom-react/issues/80
If anyone having this issue, just go to settings > enable for all Javascript files
I use these solution by @alteredtastes, and it works perfectly.
- uninstall the Language-Javascript-JSX package if it is installed.
- rm -rf ~/.atom/packages/react
- rm -rf ~/.atom/.apm/react
- apm install react
- restart atom
- ensure that Javascript (JSX) is the grammar selected for the file.