waldo1001 / crs-al-language-extension

Make working with the (Dynamics NAV / 365) AL Language easier and more efficient.
MIT License
34 stars 43 forks source link

Command 'CRS: Rename - Current File' resulted in an error (command 'crs.RenameCurrentFile' not found) #245

Closed MBK75 closed 2 years ago

MBK75 commented 2 years ago

Hello,

Today some of my VS Code projects have been failing with the error mentioned in the title ("...command ... not found"). When I look at the console in VS Code, I see the following:

mainThreadExtensionService.ts:111 Activating extension 'waldo.crs-al-language-extension' failed: Cannot find module 'opn' Require stack:

Is there an "opn" extension I need to install from somewhere?

MBK75 commented 2 years ago

I installed the previous version (I had a new one that installed 6 hours ago), and it is working again. Perhaps an issue in the latest version?

christianbraeunlich commented 2 years ago

Thanks @MBK75 for reporting this bug and sorry about the mess. What is interesting for me is the fact that there is no compilation error.

Hint for the future: the opn dependency is deprecated (https://www.npmjs.com/package/opn) and has been replaced by open (https://www.npmjs.com/package/open).

waldo1001 commented 2 years ago

thanks for reporting indeed!

Just upgraded opn to open .. and implemented your fix as well.

All seems well again. Can you confirm, @MBK75 ?

MBK75 commented 2 years ago

Thank you! I have not tried yet but will