HvyIndustries / crane

PHP Intellisense/code-completion for VS Code
https://hvy.io/crane
Other
240 stars 25 forks source link

Namespaces.js not found on Linux (file is namespaces.js with lowercase "n") #352

Closed vinsonio closed 7 years ago

vinsonio commented 7 years ago

Platform : Ubuntu 16.04 LTS VSCode Version : 1.14.1 Crane Version : 0.3.7

Error: Cannot find module '../util/Namespaces'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/vinson/.vscode/extensions/HvyIndustries.crane-0.3.7/server/hvy/treeBuilderV2.js:9:22)
    at Object.<anonymous> (/home/vinson/.vscode/extensions/HvyIndustries.crane-0.3.7/server/hvy/treeBuilderV2.js:375:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
[Error - 9:04:35 AM] Connection to server got closed. Server will not be restarted.
gustavoper commented 7 years ago

Same error here:

OS: Debian 3.16.43-2+deb8u1 (2017-06-18) x86_64 GNU/Linux

Version 1.13.1 Commit 379d2efb5539b09112c793d3d9a413017d736f89 Date 2017-06-14T18:18:03.540Z Shell 1.6.6 Renderer 56.0.2924.87 Node 7.4.0


Error: Cannot find module '../util/Namespaces'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/[REMOVED]/.vscode/extensions/HvyIndustries.crane-0.3.7/server/hvy/treeBuilderV2.js:9:22)
    at Object.<anonymous> (/home/[REMOVED]/.vscode/extensions/HvyIndustries.crane-0.3.7/server/hvy/treeBuilderV2.js:375:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
[Error - 11:26:16] Connection to server got closed. Server will not be restarted.

PS: the REMOVED tag is my homedir name. I had to ommit it for some reasons

nevadascout commented 7 years ago

Thanks, I'll work on a fix for this today.

@vinsonyung @gustavoper Can you help me out please?

If you look in

/home/<user>/.vscode/extensions/HvyIndustries.crane-0.3.7/server/util/

There should be a file called Namespaces.js.

Does it have a lowercase or uppercase n? (N vs n)

markalexandercastillo commented 7 years ago

I'm experiencing the same problem and it's lowercased:

⇒  ls
Debug.js  Files.js  namespaces.js  Storage.js
nevadascout commented 7 years ago

@markalexandercastillo which OS are you using?

markalexandercastillo commented 7 years ago

I'm on Ubuntu 17.04.

nevadascout commented 7 years ago

Thanks, looks like this only affects Linux... I'll get a fix out later today

jrfoell commented 7 years ago

For those that want to keep truckin' in the meanwhile: mv ~/.vscode/extensions/HvyIndustries.crane-0.3.7/server/util/namespaces.js ~/.vscode/extensions/HvyIndustries.crane-0.3.7/server/util/Namespaces.js

nevadascout commented 7 years ago

If you update to v0.3.8 this should be fixed.

Let me know if not! (I don't have a Linux machine to test on)

vinsonio commented 7 years ago

@nevadascout Thank you bro. It has been fixed.

markalexandercastillo commented 7 years ago

Works now. Thanks

gustavoper commented 7 years ago

Just for the record, worked like a charm! Thanks a lot