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

elementary_cli return (OS Error: The filename, directory name, or volume label syntax is incorrect. , errno = 123) error #126

Open
pishguy opened this issue Dec 2, 2024 · 1 comment
Assignees
Labels
elementary-cli Something for elementary-cli package P2 Priority 2 Issue - routine task or bug. question Further information is requested

Comments

@pishguy
Copy link

pishguy commented Dec 2, 2024

when i try to create new module in project i get error

D:\develop\flutter\bin\flutter.bat --no-color pub global run elementary_cli:elementary_tools generate module --path C:/Users/XXXXX/OneDrive/Desktop/develop/projects/flutter/XXXX/XXXXXX/lib/src/tabs/cart/screens --name promotion --create-subdirectory
Unhandled exception:
FileSystemException: Cannot copy file to 'C:\Users\XXXXX\AppData\Local\Pub\Cache\global_packages\elementary_cli\bin\..\lib\templates\widget.dart.tp', path = 'C:\Users\pishg\AppData\Local\Pub\Cache\hosted\pub.dev\elementary_cli-2.0.0\lib\templates\widget.dart.tp' (OS Error: The filename, directory name, or volume label syntax is incorrect.
, errno = 123)
#0      _File.throwIfError (dart:io/file_impl.dart:675:7)
#1      _File.copySync (dart:io/file_impl.dart:366:5)
#2      TemplateGeneratorCommand.copyTemplatesToScriptPath (package:elementary_cli/generate/generate.dart:123:14)
<asynchronous suspension>
#3      TemplateGeneratorCommand.defaultTemplateDirectoryPath (package:elementary_cli/generate/generate.dart:104:5)
<asynchronous suspension>
#4      TemplateGeneratorCommand.fillTemplates (package:elementary_cli/generate/generate.dart:68:43)
<asynchronous suspension>
#5      GenerateModuleCommand.run (package:elementary_cli/generate/generate_module.dart:83:5)
<asynchronous suspension>
#6      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#7      main (file:///C:/Users/pishg/AppData/Local/Pub/Cache/hosted/pub.dev/elementary_cli-2.0.0/bin/elementary_tools.dart:17:5)
<asynchronous suspension>
@MbIXjkee MbIXjkee self-assigned this Jan 8, 2025
@MbIXjkee MbIXjkee added elementary-cli Something for elementary-cli package P2 Priority 2 Issue - routine task or bug. labels Jan 8, 2025
@MbIXjkee
Copy link
Member

Hi, maybe the absolute path is the problem here. Can you please try to run from the project folder with relative one?

@MbIXjkee MbIXjkee added the question Further information is requested label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
elementary-cli Something for elementary-cli package P2 Priority 2 Issue - routine task or bug. question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants