Open scottbarrow opened 8 years ago
same problem and when I filter my packages I found this package
Also saw that package installed.
On Mar 21, 2016, 3:37 AM, at 3:37 AM, Alessandro Casazza notifications@github.com wrote:
same problem and when I filter my packages I found this package
You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/orktes/atom-react/issues/151#issuecomment-199220075
I'm also seeing that package installed.
A resolution was removing the React package from ~/.atom/.apm
and reinstalling with apm install react
. This installed the correct package and the grammars.
However, the issue remains that JSX is not autocompleting within a react component. I'm not sure if that is not a feature of this package?
Why it is installing facebook/react instead of plugin?
Same problem. Even if removed the '~/.atom/.apm/react' and reinstall with 'apm install react'. Still installed the reactjs not the atom-react.
try removing ~/.atom/packages/react
and ~/.atom/.apm/react
then perform apm install react
thx @scottbarrow, It work.
Before I remove the ~/.atom/.apm/react
, I found out that since the 0.14.2 version, the package.json is the package.json of the reactjs, so the apm insall it instead, haven't finger it out why yet.
@scottbarrow your solution did work for me as well! :+1:
Unfortunately, this solution did not work for me. I still don't have autocompletion working. :-1:
@deathgaze Download the zip file directly from github and extract into ~/.atom/packages/
and do an npm install
inside the extracted folder.
@arajpraju I did as you told me and hit the Download ZIP button from the Github Repo. I extracted it into ~/.atom/packages/
, shutdown Atom, rm -rf react
, mv atom-react-master react
, cd react
, npm install
and started Atom. Unfortunately, it did not improve the situation. :(
@deathgaze you need to completely restart the process of atom.
@seoyoochan I did. Using Cmd-Q
. Is there another way to do it?
@deathgaze can you try the solution of scottbarrow?
@seoyoochan yes, I tried @scottbarrow 's solution first. No dice. :(
Is there maybe some other component that autocomplete depends on that I might try fiddling with?
Same problem with me, cannot run autocomplete for html in render method. Please let me know how can solve it. Thanks,
@jackyphuong try updating to the latest version. If it didn't work remove the plugin and install it again.
@arajparaj, i removed plugin and install it again, then restart atom but cannot use autocomplete. I can use auto close, ... Besides, i just install atom and plugin yesterday. So, i think it is the lastest version. Could u please let me know how can check or another way? Thanks
@jackyphuong I just solved and saw I had two conflicting packages - the React package (detects and enables Javascript (JSX) grammar for the file, and Language-Javascript-JSX (detects and enables Javascript with JSX grammar for the file.
I did the following to resolve:
rm -rf ~/.atom/packages/react
rm -rf ~/.atom/.apm/react
apm install react
Tried above solution and still no avail. All community packages turned off, installed with apm, divs still don't auto close in render block. JSX is the set grammar. It's just type 'div', hit tab and things will close, right?
Atom 1.18.10 react 0.16.2
i had same problem, managed to get auto closing to work with render method by 1) quitting atom completely. 2) run 'apm uninstall react'. 3) run 'apm install react'... Then re open atom and seemed to be working fine for me. You also need to change the file type down the bottom right to JavaScript(JSX)
I report having this problem as well and none of the above solutions work. Atom 1.18.0
I'm encountering the same problem as well. I can't auto-complete/get the closing tags feature to work. Currently running:
Atom : 1.24.0
Electron: 1.6.16
Chrome : 56.0.2924.87
Node : 7.4.0
I still have the same problem too. Autocomplete and tag completion both not working. Tried everything mentioned above. Currently running:
Atom : 1.25.1
Electron: 1.7.11
Chrome : 58.0.3029.110
Node : 7.9.0
Windows 10.0.16299.
---- UPDATE ---- I never got this to work, so I ended up trying this tweak on Emmet and it's perfect for me :+1: :smile:
https://gist.github.com/mxstbr/361ddb22057f0a01762240be209321f0
@eggsandbeer actually not by hitting tab, but it will autoclose itself after you write <div>
.
@alteredtastes solution work for me perfectly.
Any solution for this problem. I'm getting totally crazy trying to solve the JSX html autocomplete on Atom
Can anyone tell me if this is expected behaviour? I would assume JSX/HTML snippets to appear here?