arufa-research/polar

polar init . issues

udit-gulati opened this issue · 0 comments

(env) uditgulati@uditgulati-Swift-SF313-52:~/Documents/osmosis-on-sn$ npx polar init .
★ Welcome to polar v0.10.1
Initializing new project in /home/uditgulati/Documents/osmosis-on-sn.
Error PE17: Polar project file was detected: 'README.md'. Move the file or use an empty directory.

For more info run polar with --show-stack-traces or add --help to display task-specific help.
(env) uditgulati@uditgulati-Swift-SF313-52:~/Documents/osmosis-on-sn$ ls
Cargo.lock  Cargo.toml  LICENSE  README.md
(env) uditgulati@uditgulati-Swift-SF313-52:~/Documents/osmosis-on-sn$ rm -rf README.md 
(env) uditgulati@uditgulati-Swift-SF313-52:~/Documents/osmosis-on-sn$ npx polar init .
★ Welcome to polar v0.10.1
Initializing new project in /home/uditgulati/Documents/osmosis-on-sn.
Error PE17: Polar project file was detected: 'Cargo.lock'. Move the file or use an empty directory.

For more info run polar with --show-stack-traces or add --help to display task-specific help.
(env) uditgulati@uditgulati-Swift-SF313-52:~/Documents/osmosis-on-sn$ ls
Cargo.lock  Cargo.toml  LICENSE
(env) uditgulati@uditgulati-Swift-SF313-52:~/Documents/osmosis-on-sn$ rm -rf Cargo.lock Cargo.toml 
(env) uditgulati@uditgulati-Swift-SF313-52:~/Documents/osmosis-on-sn$ npx polar init .
★ Welcome to polar v0.10.1
Initializing new project in /home/uditgulati/Documents/osmosis-on-sn.

★ Project created ★

You need to install these dependencies to run the sample project:
  npm install --global --save-dev chai

Success! Created project at /home/uditgulati/Documents/osmosis-on-sn.
Begin by typing:
  cd .
  polar help
  polar compile

Init should not add any files is an error such as README.md exists error shows up. Should move README.md to README.md.old.