Open bmaschio opened 8 years ago
Confirmed, I have the same issue on Windows 10.
It seems that we are not the only ones with this problem. It appears also with Python and PHP, and probably others. I see that in linter-php they decided to offer a configuration variable to allow users to fix it: https://atom.io/packages/linter-php
I haven't touched configuration yet, but it looks pretty easy to add judging from their code: https://github.com/AtomLinter/linter-php/blob/master/lib/main.coffee
I'm a bit short on spare time though.. maybe somebody at @mp2016/students has the same problem?
@fmontesi
I have added two console.log in coffee script line 18 console.log(editor.getPath()) line 20 console.log(data.stderr)
C:\Progetti\RilevazioneTimbrature\Leonardo\leonardo.ol main.coffee:20 "jolie" non � riconosciuto come comando interno o esterno, un programma eseguibile o un file batch.
Sorry for the italian it seems that it does not recognise the jolie command
I've added a new setting to point out the executable path explicitly. Try it out.
@fmontesi
my Atom since to have not noticed the update to 0.70
Weird, it should.. :-/
@fmontesi Have you got in mind the Donald Duck cartoons that is me with window today. but I arrived to a sort of conclusion the problem is not so much in path of jolie but how it is generated the command string to be passed to the cmd. Atoms tryes to execute a command line that looks like "C:\Windows\System32\cmd.exe" "/s" "/d" "/c" ""C:\Windows\System32\jolie.bat "--check" "C:\Progetti\PortaleManutenzioneAndroid\Leonardo\leonardo.ol"""
this is given by my atom version (1.12.4) line 52 file:///C:/projects/atom/out/app/src/buffered-process.coffee
that adds some ""
This is a know problem: https://github.com/atom/atom/issues/3200 https://github.com/atom/atom/pull/3208
in theory should been solved
Lets see
@fmontesi
Opened a new issue on Atom Project https://github.com/atom/atom/issues/13295
@fmontesi They bounced me to this repository https://github.com/steelbrain/exec I was pondering how the dependencies works in our linter
"dependencies": { "atom-linter": "^3.1.0", "atom-package-deps": "^2.0.1" },
how do I have to read ^3.1.0 If you go https://github.com/steelbrain/linter that I think is the correct repository you find in package definition
"version": "1.11.4",
Are we pointing to the wrong version??' or am I getting something complacently wrong
tnk B
The "dependencies" are deps on NPM packages, so not the linter atom package you linked.
The dependencies from Atom packages are in "package-deps".
On Tue, Nov 22, 2016 at 12:24 PM, Balint Maschio notifications@github.com wrote:
@fmontesi https://github.com/fmontesi They bounced me to this repository https://github.com/steelbrain/exec I was pondering how the dependencies works in our linter
"dependencies": { "atom-linter": "^3.1.0", "atom-package-deps": "^2.0.1" },
how do I have to read ^3.1.0 If you go https://github.com/steelbrain/linter that I think is the correct repository you find in package definition
"version": "1.11.4",
Are we pointing to the wrong version??' or am I getting something complacently wrong
tnk B
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fmontesi/linter-jolie/issues/4#issuecomment-262216508, or mute the thread https://github.com/notifications/unsubscribe-auth/AB-xyTX5SM7TVlveap1C0-8nFpZsFrUMks5rAtD0gaJpZM4IQXyA .
@fmontesi so https://github.com/steelbrain/linter it is NPM package so i wander why we link at 3.10 when the version is 1.11.4
@fmontesi I opened a new issue on the npm sb-exec https://github.com/steelbrain/exec/issues/59
I just installed this language, language-jolie
and checked out linter-jolie
. The program is being executed properly on Windows 10 x64 for me currently.
It looks like when this was filed this linter was still using an old version of the atom-linter
helper library, which has since been corrected in v0.7.1. Are you still having issues on that version @bmaschio?
@arcanemagus Correct! I imagined bumping that version would help this issue, but I haven't tested it on Windows 10. Thanks for reporting that it works for you. @bmaschio Do you have the latest version of linter-jolie?
(it was @bmaschio himself to find out we were outdated)
@Arcanemagus thanks for helping @fmontesi I am still having problem with windows 8.1 Pro
My language-jolie "version": "0.4.5"
My linter-jolie "version": "0.7.1"
my atom-linter version is
"raw": "atom-linter@^8.0.0",
"scope": null,
"escapedName": "atom-linter",
"name": "atom-linter",
"rawSpec": "^8.0.0",
"spec": ">=8.0.0 <9.0.0",
"type": "range"
am I getting something wrong
@bmaschio Can you completely remove the linter-jolie
folder from The C:\Users\username\.atom\packages
folder, then run apm install linter-jolie
in order to get a fresh start? (Note that this won't wipe any settings.)
@Arcanemagus No changes!! Is it possible something to do with Promise and window 8? when is _child_process.spawn
spawnedProcess.on('close', function (exitCode) { it returns exitCode =1
@bmaschio What is the exact error you are getting now?
@Arcanemagus
stderr = ""C:\Windows\system32\jolie.bat" non � riconosciuto come comando interno o esterno, ↵ un programma eseguibile o un file batch."
exactly as before..
And what do you get from where.exe jolie
?
In C:\Windows\system32\
Am I missing something?
No, I mean what do you get when you run the command where.exe jolie
on the CLI?
For example:
@Arcanemagus
I have set now with even capital S
but the result is the same
thanks
Balint
Can you run the following two commands?
C:\Windows\System32\cmd.exe /s /c "jolie "--version""
C:\Windows\System32\cmd.exe /s /c ""jolie" "--version""
I'm wondering if you are somehow hitting a variant of https://github.com/steelbrain/exec/issues/36.
Also, in Atom can you go File -> Config... and copy the contents related to linter-jolie
For example:
"linter-jolie":
jolieExecutablePath: "C:\\Jolie\\bin\\jolie.bat"
they both worked
and
That's what I'm seeing as well, which is the case for most programs, but some are buggy...
Anyway can you post the config value?
@Arcanemagus maybe I am being cheeky have you got hangout?
Yep, I'm also on Atom's Slack.
would you find it easy on Hangout?
@Arcanemagus
Ok the java linter it works fine on my pc
It must be something to do with jolie.bat
Talk soon
How bizarre 😕.
@fmontesi I have tried to install Atom and the relative jolie packages but it seems to not work
I think it is a problem with the location where jolie.bat is
also if i run as script from atom
but I run jolie from cmd
I am not sure what to think