Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error raised during editor initialization #16

Closed
boborbt opened this issue Sep 3, 2014 · 3 comments
Closed

Error raised during editor initialization #16

boborbt opened this issue Sep 3, 2014 · 3 comments
Labels

Comments

@boborbt
Copy link

boborbt commented Sep 3, 2014

Hi,
on version 0.4.0 every time I launch the editor I get the following message in the console:

Uncaught TypeError: Cannot read property 'charCodeAt' of undefined 

Here is the full stack trace:

Uncaught TypeError: Cannot read property 'charCodeAt' of undefined 
/Applications/Atom.app/Contents/Resources/app/node_modules/snippets/lib/snippet-body.js:334
peg$parsesimpleTabStop /Applications/Atom.app/Contents/Resources/app/node_modules/snippets/lib/snippet-body.js:334
peg$parsetabStop /Applications/Atom.app/Contents/Resources/app/node_modules/snippets/lib/snippet-body.js:319
peg$parsebodyContent /Applications/Atom.app/Contents/Resources/app/node_modules/snippets/lib/snippet-body.js:235
parse /Applications/Atom.app/Contents/Resources/app/node_modules/snippets/lib/snippet-body.js:756
module.exports.add /Applications/Atom.app/Contents/Resources/app/node_modules/snippets/lib/snippets.js:147
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/snippets/lib/snippets.js:131
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/season/lib/cson.js:244

I've tracked down the source of the problem to language-latex by removing all installed packages and installing back them one after the other. The problem occurs only when language-latex is installed. It seems not connected with the interaction with other packages since I could replicate the problem after removing all other packages (as a good measure I did a rm -rf of ~/.atom/packages and of ~/.atom/dev/packages and then replicated the problem by installing language-latex).

Hope this helps.

@cedhuf cedhuf added the bug label Sep 3, 2014
@cedhuf
Copy link
Collaborator

cedhuf commented Sep 3, 2014

Thanks for the report. I'll try to do something as soon as possible.

cedhuf added a commit that referenced this issue Sep 3, 2014
@cedhuf
Copy link
Collaborator

cedhuf commented Sep 3, 2014

Two spaces was missing !! I hope it's corrected with the fix. You can wait for an update or directly add two space line 69 of ~/.atom/packages/langage-latex/snippets/langage-latex.cson, that should do the trick.

Sorry @area, if you can make a litle apm publish patch. I'm sorry for that. Thanks.

@cedhuf cedhuf closed this as completed Sep 3, 2014
@area
Copy link
Owner

area commented Sep 3, 2014

You just beat me! Pushed to the atom repository.

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

No branches or pull requests

3 participants