Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Failed to load a language-java package grammar #94

Closed
cdiazr opened this issue May 17, 2017 · 10 comments
Closed

Failed to load a language-java package grammar #94

cdiazr opened this issue May 17, 2017 · 10 comments

Comments

@cdiazr
Copy link

cdiazr commented May 17, 2017

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.17.0 ia32
Electron: 1.3.15
OS: Unknown Windows version
Thrown From: language-java package 0.27.0

Stack Trace

Failed to load a language-java package grammar

At ENOENT: no such file or directory, open 'C:\Users\cdiaz\AppData\Local\atom\app-1.17.0\resources\app\node_modules\language-java\grammars\java server pages (jsp).json' in C:\Users\cdiaz\AppData\Local\atom\app-1.17.0\resources\app\node_modules\language-java\grammars\java server pages (jsp).json

Error: ENOENT: no such file or directory, open 'C:\Users\cdiaz\AppData\Local\atom\app-1.17.0\resources\app\node_modules\language-java\grammars\java server pages (jsp).json'
    at Error (native)
  at ~/AppData/Local/atom/app-1.17.0/resources/app/node_modules/language-java/grammars/java server pages (jsp).json:1:1

Commands

Non-Core Packages

angular-2-typeScript-snippets 0.6.3 
atom-bootstrap3 1.2.12 
atom-typescript 11.0.3 
color-picker 2.2.5 
emmet 2.4.3 
file-icons 1.7.25 
platformio-ide-terminal 2.5.0 
v-bootstrap4 0.1.8 
@50Wliu
Copy link
Contributor

50Wliu commented May 17, 2017

@cdiazr Is this error reproducible? Can you navigate to C:\Users\cdiaz\AppData\Local\atom\app-1.17.0\resources\app\node_modules\language-java\grammars\ and tell me the contents of that directory?

@stephen-last
Copy link

I'm seeing these errors too. I've checked in C:\Users\stephen.last\AppData\Local\atom\app-1.17.0\resources\app\node_modules\language-java\grammars...

The file names seem to have %20 instead of spaces, I'm guessing that's why these ENOENT: no such file or directory errors are showing. There are loads of them, and they popup every time I open Atom.

What should I do to fix this..?

@50Wliu
Copy link
Contributor

50Wliu commented May 18, 2017

@stephen-last This seems to be a rare occurrence. Can you try reinstalling and see if that helps?

@jaygriz
Copy link

jaygriz commented May 19, 2017

I seem to be getting a series of similar errors.
hopping someone has an idea...

@jaygriz
Copy link

jaygriz commented May 19, 2017

in directory

C:\Users\user\AppData\Local\atom\app-1.17.0\resources\app\node_modules\language-java\grammars

there I find there four files:

java%20server%20pages%20(jsp).json
java.json
javaproperties.json
junit%20test%20report.json

@jaygriz
Copy link

jaygriz commented May 19, 2017

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.17.0 ia32
Electron: 1.3.15
OS: Microsoft Windows 10 Pro
Thrown From: language-git package 0.19.0

Stack Trace

Failed to load a language-git package grammar

At ENOENT: no such file or directory, open 'C:\Users\me\AppData\Local\atom\app-1.17.0\resources\app\node_modules\language-git\grammars\git commit message.json' in C:\Users\me\AppData\Local\atom\app-1.17.0\resources\app\node_modules\language-git\grammars\git commit message.json

Error: ENOENT: no such file or directory, open 'C:\Users\me\AppData\Local\atom\app-1.17.0\resources\app\node_modules\language-git\grammars\git commit message.json'
    at Error (native)
  at ~/AppData/Local/atom/app-1.17.0/resources/app/node_modules/language-git/grammars/git commit message.json:1:1

Commands

Non-Core Packages

minimap 4.28.2 

@jaygriz
Copy link

jaygriz commented May 19, 2017

AtomSetup.exe
I just ran AtomSetup.exe with admin priv. Still get 17 red boxes

@stephen-last
Copy link

I uninstalled Atom, then ran AtomSetup-x64.exe downloaded from https://atom.io/ and that fixed it for me, no errors.

@Nollikino
Copy link

It seems like when there was an update to 1.17.0 on Windows there are some problems where spaces weren't translated from "%20" to " " in file names.

All the files that had spaces in them in the grammars-directory seems to have had this problem on my end.

I wouldn't recommend it to anyone else, because it's a crude fix, but i issued this line in PowerShell, and it changed all the files to the correct version:
PS C:\Users\<your username here>\AppData\Local\atom\app-1.17.1\resources\app\node_modules> ls .\language-*\grammars\* | rename-item -NewName {$_.name -replace "%20", " "}

@50Wliu 50Wliu marked this as a duplicate of atom/language-git#55 Jul 20, 2017
@50Wliu 50Wliu marked this as a duplicate of atom/language-git#56 Jul 25, 2017
@50Wliu 50Wliu marked this as a duplicate of atom/language-coffee-script#141 Jul 25, 2017
@50Wliu 50Wliu marked this as a duplicate of atom/language-coffee-script#140 Jul 25, 2017
@50Wliu 50Wliu marked this as a duplicate of atom/language-git#57 Jul 26, 2017
@50Wliu 50Wliu marked this as a duplicate of #102 Jul 26, 2017
@50Wliu 50Wliu marked this as a duplicate of atom/language-coffee-script#142 Jul 27, 2017
@ungb ungb added the triaged label Aug 3, 2017
@no-response no-response bot closed this as completed Sep 25, 2018
@no-response
Copy link

no-response bot commented Sep 25, 2018

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

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

No branches or pull requests

6 participants