jumilla / atom-riot

Riot syntax highlight & auto compile for Atom editor.
MIT License
2 stars 1 forks source link

Missing to find Babel on Windows #2

Closed anaibol closed 8 years ago

anaibol commented 8 years ago

Hi, I am sadly using windows OS and having installed globally the Babel package, I am receiving this error trying to compile on save: Error: Cannot find module 'babel' at Function.Module._resolveFilename

Do you know anything I can do?

Thanks!

jumilla commented 8 years ago

Hi @anaibol !

atom-riot was written ES6.

The error is, what error of the package itself? Or is error when you try to build on save a riot source? If the first, I can solve soon.

1

anaibol commented 8 years ago

Hi! It's the second one, when trying to build on save a riot source. I noticed that sometimes it work, sometimes not, not sure why.. I could give you more details next week.

anaibol commented 8 years ago

The issue is related with the es6 scripts, it's failing only with them

<catalog>
  <script type="es6">
    console.log(opts);
  </script>
</catalog>
jumilla commented 8 years ago

@anaibol OK,

Here is Global riot path definition.

Do you know the riot command path that has been npm global installed in Windows?

anaibol commented 8 years ago

It's '%USERPROFILE%\AppData\Roaming\npm\riot'

I tryed with

const RIOT_PATH = '%USERPROFILE%\\AppData\\Roaming\\npm\\riot'

and reopened Atom, but didn't worked

jumilla commented 8 years ago

Maybe need extract %USERPROFILE% variable in riot.es6.

jumilla commented 8 years ago

@anaibol We released atom-riot v0.3.0.

Support environment variable RIOT_PATH. Please try it.

jumilla commented 8 years ago

@anaibol Hi!

v0.4.1: Support package setting 'Riot-CLI path'.

2015-11-16 14 50 09

Please try it.

anaibol commented 8 years ago

Hi, I am trying with or without custom Riot cli path, but there is no compilation or error. I think that Atom in general is not working properly on Windows.

jumilla commented 8 years ago

@anaibol

Hi, Do not work with the following settings?

Riot-CLI path: "C:\Users\AppData\Roaming\npm\riot"

Please error messages or screen shots.

anaibol commented 8 years ago

Mmm, I see no errors, neither the console.log of the path you put. Tried compiling on save and compiling via command.

shot

jumilla commented 8 years ago

OK.

To execute the command, please the text editor view to active.

Click the text editor section, and run the command.

anaibol commented 8 years ago

Ohh it was the Atom grammar that was autosetted to JavaServer Pages.. I setted to HTML (Riot).

Now it fails to find Babel. Is it compatible with Babel 6?

shot

jumilla commented 8 years ago

Oh yeah! (^0^)/

I write the blog article (Japanese) http://jumilla.me/atom-package-riot-updated-for-riot23

Now it fails to find Babel. Is it compatible with Babel 6?

Please look at the issue. https://github.com/riot/riot/issues/1339

anaibol commented 8 years ago

Perfect! Thanks man, great work!

jumilla commented 8 years ago

Good! Thank you very much to me dating to the last!