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

Cannot find module './FileUtils' #11

Closed
Eusse opened this issue May 16, 2016 · 3 comments
Closed

Cannot find module './FileUtils' #11

Eusse opened this issue May 16, 2016 · 3 comments
Labels

Comments

@Eusse
Copy link

Eusse commented May 16, 2016

Steps to reproduce:

  1. Install via package manager

Atom Version: 1.7.3
System: Ubuntu 16.04
Thrown From: atom-maven package, v0.5.0

Stack Trace

Failed to load the atom-maven package

At Cannot find module './FileUtils'

Error: Cannot find module './FileUtils'
    at Module._resolveFilename (module.js:338:15)
    at Function.Module._resolveFilename (/usr/share/atom/resources/app.asar/src/module-cache.js:383:52)
    at Function.Module._load (module.js:289:25)
    at Module.require (module.js:366:17)
    at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/home/ahernandeze/.atom/packages/atom-maven/lib/atom-maven.js:12:13)
    at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
    at Package.module.exports.Package.requireMainModule (/usr/share/atom/resources/app.asar/src/package.js:715:27)
    at /usr/share/atom/resources/app.asar/src/package.js:117:28
    at Package.module.exports.Package.measure (/usr/share/atom/resources/app.asar/src/package.js:92:15)
    at Package.module.exports.Package.load (/usr/share/atom/resources/app.asar/src/package.js:106:12)
    at PackageManager.module.exports.PackageManager.loadPackage (/usr/share/atom/resources/app.asar/src/package-manager.js:457:14)
    at /usr/share/atom/resources/app.asar/src/package-manager.js:402:19
    at Config.module.exports.Config.transact (/usr/share/atom/resources/app.asar/src/config.js:312:16)
    at PackageManager.module.exports.PackageManager.loadPackages (/usr/share/atom/resources/app.asar/src/package-manager.js:397:19)
    at /usr/share/atom/resources/app.asar/src/atom-environment.js:743:28

Commands

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "atom-dark-syntax"
    ]
  }
}

Installed Packages

# User
activate-power-mode, v0.5.2
autocomplete-java, v1.2.5
atom-maven, v0.5.0
linter, v1.11.4
linter-javac, v1.9.1
merge-conflicts, v1.4.2
minimap, v4.23.5
pigments, v0.26.3
terminal-plus, v0.14.5

# Dev
No dev packages
@concon121
Copy link
Owner

Hi Eusse, I've released a new update 0.6.0 and tested installing via the package manager and it seems to start up fine for me. Please can you re-test and confirm for me?

Note: I've had to remove the functionality to set up the classpath on start up, so you need to save you pom files for it to generate the .classpath file - i'll be looking to add this back in later this week.

@Eusse
Copy link
Author

Eusse commented May 17, 2016

Hi @concon121,
I am getting the same error. I tried installing plugin using apm and the package manager in settings.
This is the output in console using apm install atom-maven:
Installing atom-maven to ~/.atom/packages ✓

This is the output in atom:

Atom Version: 1.7.3
System: Ubuntu 16.04
Thrown From: atom-maven package, v0.7.0

Stack Trace

Failed to load the atom-maven package

At Cannot find module './FileUtils'

Error: Cannot find module './FileUtils'
    at Module._resolveFilename (module.js:338:15)
    at Function.Module._resolveFilename (/usr/share/atom/resources/app.asar/src/module-cache.js:383:52)
    at Function.Module._load (module.js:289:25)
    at Module.require (module.js:366:17)
    at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/home/ahernandeze/.atom/packages/atom-maven/lib/atom-maven.js:12:13)
    at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
    at Package.module.exports.Package.requireMainModule (/usr/share/atom/resources/app.asar/src/package.js:715:27)
    at /usr/share/atom/resources/app.asar/src/package.js:117:28
    at Package.module.exports.Package.measure (/usr/share/atom/resources/app.asar/src/package.js:92:15)
    at Package.module.exports.Package.load (/usr/share/atom/resources/app.asar/src/package.js:106:12)
    at PackageManager.module.exports.PackageManager.loadPackage (/usr/share/atom/resources/app.asar/src/package-manager.js:457:14)
    at /usr/share/atom/resources/app.asar/src/package-manager.js:402:19
    at Config.module.exports.Config.transact (/usr/share/atom/resources/app.asar/src/config.js:312:16)
    at PackageManager.module.exports.PackageManager.loadPackages (/usr/share/atom/resources/app.asar/src/package-manager.js:397:19)
    at /usr/share/atom/resources/app.asar/src/atom-environment.js:743:28

Commands

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "atom-dark-syntax"
    ]
  }
}

Installed Packages

# User
activate-power-mode, v0.5.2
autocomplete-java, v1.2.5
atom-maven, v0.7.0
file-icons, v1.7.11
linter, v1.11.4
linter-javac, v1.9.1
merge-conflicts, v1.4.2
minimap, v4.23.5
pigments, v0.26.3
terminal-plus, v0.14.5

# Dev
No dev packages

Is there a dependency missing or outdated?

@concon121
Copy link
Owner

Nah, FileUtils is a js file which comes bundled with atom-maven, and the dependencies I used should be downloaded via apm / npm when you download update the package (which you can check by going to $home/. atom/packages/atom-maven/node_modules and cross referencing with package.json)

Admittedly I haven't tested this on a Linux enviomronment, maybe something behaves differently to windows which hasn't been accounted for?

I will attempt to replicate your environment tomorrow morning.

Cheers!

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

2 participants