gonuit / rps

Define and use scripts from your pubspec.yaml file.
MIT License
44 stars 8 forks source link

Windows error Failed to load dynamic library #20

Closed DamienMrtl closed 3 weeks ago

DamienMrtl commented 6 months ago

Hi, i'm getting this error on windows 11 with flutter.

Flutter 3.19.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 300451adae (2 weeks ago) • 2024-03-27 21:54:07 -0500
Engine • revision e76c956498
Tools • Dart 3.3.3 • DevTools 2.31.1
image
gwijaya94 commented 6 months ago

same here, I tried with script rps hello and it throws the same error. Hmm is it because of windows 11 ? haven't tried it on win10.

notesz5 commented 5 months ago

Same issue here on Win11. It works just fine on Win10.

ebarcsa commented 5 months ago

Same issue on recently installed win10, after running with dart pub global activate rps --version 0.8.1 and trying to run a script with rps. I've added %LOCALAPPDATA%\Pub\Cache\bin to path manually. Intrestingly, if I navigate to %LOCALAPPDATA%\Pub\Cache\hosted\pub.dev\rps-0.8.1\native then I can see the rps_x64.dll. Maybe some dependencies of this dll cannot be resolved.

ptvinhtech13 commented 2 months ago

I got the same issue. image ps: macos works well with this

alanmelone commented 1 month ago

I got the same issue on Win 11. The solution is simple. Just install Visual Studio with recommended Desktop development with C++ option from recommendation of flutter doctor command.

But it would be very nice to make work this package without installing Visual Studio.

gonuit commented 3 weeks ago

This is probably due to the lack of CRT dynamic lib. I will look into this.

gonuit commented 3 weeks ago

Hi all, A possible fix for this bug has been implemented and is present in rps version 0.9.1.

I am closing this issue for now, if this error still occurs, feel free to reopen this issue.