Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Uncaught Error: .mont is undefined #6

Open
meetmagdalene opened this issue Feb 26, 2016 · 6 comments
Open

Uncaught Error: .mont is undefined #6

meetmagdalene opened this issue Feb 26, 2016 · 6 comments

Comments

@meetmagdalene
Copy link

[Enter steps to reproduce below:]

  1. ... I pressed Command-S to save the file and this error appeared. The file will not save.

Atom Version: 1.5.3
System: Mac OS X 10.11.3
Thrown From: lesscompile package, v0.6.0

Stack Trace

Uncaught Error: .mont is undefined

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/less-cache/node_modules/less/lib/less/parser.js:604

Error
    at new Parser (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/less-cache/node_modules/less/lib/less/parser.js:333:27)
    at compile (/Users/MagdaleneBenson/.atom/packages/lesscompile/lib/lesscompile.coffee:21:18)
    at atom-workspace.atom.commands.add.core:save (/Users/MagdaleneBenson/.atom/packages/lesscompile/lib/lesscompile.coffee:63:20)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:536:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:359:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:97:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:06.6.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "csslint",
      "vim-mode"
    ],
    "themes": [
      "one-dark-ui",
      "an-old-hope-syntax"
    ]
  }
}

Installed Packages

# User
an-old-hope-syntax, v0.4.1
atom-beautify, v0.28.19
autocomplete-paths, v1.0.2
autocomplete-ruby, v0.1.0
css-snippets, v0.9.0
docs-snippets, v0.8.0
editor-stats, v0.17.0
file-icons, v1.6.13
highlight-line, v0.11.0
javascript-snippets, v1.0.0
jshint, v1.8.3
less-compiler, v0.6.2
less-than-slash, v0.11.1
lesscompile, v0.6.0
linter, v1.11.3
linter-csslint, v1.1.0
meteor-api, v2.20.0
minimap, v4.19.0
php-getters-setters, v0.5.5
project-manager, v2.6.5
terminal-status, v1.6.8
underscorejs-snippets, v0.2.2

# Dev
No dev packages
@Metric
Copy link
Owner

Metric commented Feb 26, 2016

The problem is because you also have lesscompile installed along with
less-compiler. They create a conflict, because they both try to modify the
global Function, so that new Function() can be used to eval stuff.
Uninstall one or the other, but don't use both at once. I can't say if
less-than-slash may or may not be causing a conflict, because I have never
used it.

On Thu, Feb 25, 2016 at 7:26 PM, Maggie [email protected] wrote:

[Enter steps to reproduce below:]

  1. ... I pressed Command-S to save the file and this error appeared.
    The file will not save.

Atom Version: 1.5.3
System: Mac OS X 10.11.3
Thrown From: lesscompile https://github.com/Metric/Less-Compile
package, v0.6.0
Stack Trace

Uncaught Error: .mont is undefined

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/less-cache/node_modules/less/lib/less/parser.js:604

Error
at new Parser (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/less-cache/node_modules/less/lib/less/parser.js:333:27)
at compile (/Users/MagdaleneBenson/.atom/packages/lesscompile/lib/lesscompile.coffee:21:18)
at atom-workspace.atom.commands.add.core:save (/Users/MagdaleneBenson/.atom/packages/lesscompile/lib/lesscompile.coffee:63:20)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:536:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:359:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:97:36)
at HTMLDocument. (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

 -0:06.6.0 core:save (atom-text-editor.editor.is-focused)

Config

{
"core": {
"disabledPackages": [
"csslint",
"vim-mode"
],
"themes": [
"one-dark-ui",
"an-old-hope-syntax"
]
}
}

Installed Packages

User

an-old-hope-syntax, v0.4.1
atom-beautify, v0.28.19
autocomplete-paths, v1.0.2
autocomplete-ruby, v0.1.0
css-snippets, v0.9.0
docs-snippets, v0.8.0
editor-stats, v0.17.0
file-icons, v1.6.13
highlight-line, v0.11.0
javascript-snippets, v1.0.0
jshint, v1.8.3
less-compiler, v0.6.2
less-than-slash, v0.11.1
lesscompile, v0.6.0
linter, v1.11.3
linter-csslint, v1.1.0
meteor-api, v2.20.0
minimap, v4.19.0
php-getters-setters, v0.5.5
project-manager, v2.6.5
terminal-status, v1.6.8
underscorejs-snippets, v0.2.2

DevNo dev packages


Reply to this email directly or view it on GitHub
#6.

@Metric
Copy link
Owner

Metric commented Feb 26, 2016

bleep me. I forgot I named the package lesscompile in the package.json. Yeah, it would be less-compiler causing the conflict.

@meetmagdalene
Copy link
Author

Thanks for your quick response, and sorry I had not gotten back to you sooner also. I had tried removing the other less compiler package like you suggested but it didn't fix the problem, so I just moved on without compiling for the moment.

Glad you found the issue so quickly too! Cheers

@Metric
Copy link
Owner

Metric commented Feb 26, 2016

Can you share the file that is creating this error? It would help me
determine what is going wrong. But to me it looks like an undefined less
variable in your less file more so than an actual error with the compiler,
though I could be wrong.

On Thursday, February 25, 2016, Maggie [email protected] wrote:

Thanks for your quick response, and sorry I had not gotten back to you
sooner also. I had tried removing the other less compiler package like you
suggested but it didn't fix the problem, so I just moved on without
compiling for the moment.

Glad you found the issue so quickly too! Cheers


Reply to this email directly or view it on GitHub
#6 (comment).

@meetmagdalene
Copy link
Author

The stack trace says it is this file: /Applications/Atom.app/Contents/Resources/app.asar/node_modules/less-cache/node_modules/less/lib/less/parser.js:604

Not one of mine. :-/ And I can't seem to access/find it in order to share it here. Does that file look familiar though?

@Metric
Copy link
Owner

Metric commented Feb 28, 2016

Can you share your .less file that is causing this. That is what I meant. I
already know where parser.js is.

On Sunday, February 28, 2016, Maggie [email protected] wrote:

The stack trace says it is this file:
/Applications/Atom.app/Contents/Resources/app.asar/node_modules/less-cache/node_modules/less/lib/less/parser.js:604

Not one of mine. :-/ And I can't seem to access/find it in order to share
it here. Does that file look familiar though?


Reply to this email directly or view it on GitHub
#6 (comment).

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

No branches or pull requests

2 participants