Closed lewisl closed 1 year ago
CreateProject generates not only xmake.lua but also src/main.cpp
and many other project files.
If the directory is not empty, this will overwrite the files and existing code in the user directory. This should not be the result the user wants.
You don’t have to over-write files. Create files with distinct names. That’s not really hard.
From: ruki @.> Reply-To: xmake-io/xmake-vscode @.> Date: Friday, May 5, 2023 at 6:46 PM To: xmake-io/xmake-vscode @.> Cc: Lewis Levin @.>, Author @.***> Subject: Re: [xmake-io/xmake-vscode] Startup experience is rough, not thought through (Issue #193)
CreateProject generates not only xmake.lua but also src/main.cpp and many other project files.
If the directory is not empty, this will overwrite the files and existing code in the user directory. This should not be the result the user wants.
— Reply to this email directly, view it on GitHubhttps://github.com/xmake-io/xmake-vscode/issues/193#issuecomment-1536972431, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAIYWLP4M6TQ4PKPHKDZD4LXEWUNLANCNFSM6AAAAAAXWC7L4U. You are receiving this because you authored the thread.Message ID: @.***>
Is your feature request related to a problem? Please describe.
You MUST start from an empty folder to use CreateProject.
I'd say this is overly restrictive and not necessary.
Why is this so hard? Nothing bad can happen. Instead, I have to make a new directory; make it a project; copy my existing files to the this directory? For what--to reinforce some misguided sense of c-ish manliness? Because of ancient traditions that must not be violated?
Programming should be about functioning code, not about rigid traditions that have no technical foundation.
xmake is leading towards a new view of building and simplicity. So, break free!
Describe the solution you'd like
I just said it. While a current folder is open, create a project if no previous xmake.lua file is found. So easy.
Describe alternatives you've considered
No response
Additional context
No response