PrestonKnopp / language-gdscript

gdscript language grammar package for atom.io
https://atom.io/packages/lang-gdscript
MIT License
32 stars 9 forks source link

Rebuild package failed. #26

Closed theblacktiger59 closed 4 years ago

theblacktiger59 commented 4 years ago

Hello, I have updated Atom to 1.41.0. (os: Windows 10) I have installed the lang-gdscript 4.1.2. Get me a message with an invitation to rebuild the package. Which fail.

Screenshot_592

PrestonKnopp commented 4 years ago

Hey, thanks for posting an issue. Can you try reinstalling the package to see if that resolves the issue?

theblacktiger59 commented 4 years ago

Tried that, same message. Although the module seems to work as I can see the syntax colors of a *.gd file as normal.

PrestonKnopp commented 4 years ago

Could you post the whole error log as text?

It should still work as it can fall back to the legacy text-mate grammar.

theblacktiger59 commented 4 years ago

Sure thing, here comes : (if you mean another log, let me know. I'm not all that familiar with Atom)

prebuild-install WARN install EBUSY: resource busy or locked, open 'C:\Users\2Lux\.atom\packages\lang-gdscript\node_modules\tree-sitter-gdscript\build\Release\tree_sitter_gdscript_binding.node'
gyp ERR! clean error 
gyp ERR! stack Error: EPERM: operation not permitted, unlink 'C:\Users\2Lux\.atom\packages\lang-gdscript\node_modules\tree-sitter-gdscript\build\Release\tree_sitter_gdscript_binding.node'
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Users\\2Lux\\AppData\\Local\\atom\\app-1.41.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\2Lux\\AppData\\Local\\atom\\app-1.41.0\\resources\\app\\apm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\2Lux\.atom\packages\lang-gdscript\node_modules\tree-sitter-gdscript
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tree-sitter-gdscript@0.2.5 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the tree-sitter-gdscript@0.2.5 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\2Lux\.atom\.apm\_logs\2019-11-13T05_37_49_543Z-debug.log

EDIT : Adding the log file given at the end of the error log above.

2019-11-13T05_37_49_543Z-debug.log

PrestonKnopp commented 4 years ago

Awesome, thanks. That's what I was looking for.

PrestonKnopp commented 4 years ago

Hey, so I'm not sure why it's failing.

You could try manually deleting these folders:

C:\Users\2Lux\.atom\packages\lang-gdscript and C:\Users\2Lux\.npm\_prebuilds

And then reinstall lang-gdscript.

prebuild-install WARN install EBUSY: resource busy or locked

I haven't seen this error before. After googling, it seems to be caused by antivirus software.

See: https://github.com/npm/npm/issues/13461 See: https://github.com/felixrieseberg/windows-build-tools/issues/119

Let me know if I can be of more assistance and if this issue gets resolved.

theblacktiger59 commented 4 years ago

C:\Users\2Lux\.atom\packages\lang-gdscript deleted. I don't have any folder : C:\Users\2Lux\.npm\_prebuilds I do have : C:\Users\2Lux\.atom\.apm\_prebuilds if it is the one you meant ?

Checked those two other issues thread, couldn't find anything helpful either. I may try to reinstall Atom completely tomorrow and see.

Thank you already for the assistance sofar.

PrestonKnopp commented 4 years ago

C:\Users\2Lux\.atom\.apm\_prebuilds if it is the one you meant ?

Yes, my bad, that's the one I meant.

Thanks for helping debug this. If the issue persists, I recommend checking out VSCode with the Godot tools plugin.

theblacktiger59 commented 4 years ago

Deleting both folder, still no change. Deinstalling Atom, deleting the whole .atom folder under my users/name directory, reinstalling : no change. Thanks for the recommendation, but since it works anyway in Atom, I'll keep using it. :)

PrestonKnopp commented 4 years ago

Deleting both folder, still no change. Deinstalling Atom, deleting the whole .atom folder under my users/name directory, reinstalling : no change.

That's a bummer :(

Thanks for the recommendation, but since it works anyway in Atom, I'll keep using it. :)

I'm glad to have you using the plugin! When Godot v3.2 is released I'll push out the language server client which has rich autocompletion. It's great!

theblacktiger59 commented 4 years ago

Language server, that will be great indeed ! looking forward to it.

theblacktiger59 commented 4 years ago

Quick update : Version 5.0.0 of the package doesn't trigger any error ! Yah ! Could not update, I had to manually delete the package and install again. I think the problem is with my system / atom ... anyway. Cheers, thank for the good work. ;-)

PrestonKnopp commented 4 years ago

Thanks for the update! I'm glad it works :) Huh, I wonder what's causing those underlying issues?

5.0.0 also has the language server client, so if you're using Godot v3.2+ you can try it out by enabling it in the package settings.

theblacktiger59 commented 4 years ago

I got similar error message resource busy or locked with other packages. No idea why, it's beyond my knowledge. I do want to use the language server, but I'm using godot for production so I don't dare to move to v3.2+ until a stable release.