denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
96.95k stars 5.35k forks source link

Format & Lint Problem in std/ #7198

Closed getspooky closed 4 years ago

getspooky commented 4 years ago

When I run ./tools/format i got this error in my console

/usr/bin/python tools/format.py
Traceback (most recent call last):
  File "tools/format.py", line 89, in <module>
    sys.exit(main())
  File "tools/format.py", line 51, in main
    dprint()
  File "tools/format.py", line 59, in dprint
    run(command, shell=False, quiet=True)
  File "/home/getspooky/Documents/OpenSourceProject/deno/tools/util.py", line 62, in run
    rc = subprocess.call(args, cwd=cwd, env=env, shell=shell)
  File "/usr/lib/python2.7/subprocess.py", line 172, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

I am using Ubuntu 18

nayeemrmn commented 4 years ago

Did you run git submodule update?

getspooky commented 4 years ago

When i run git submodule update i got Permission denied (publickey).

ry commented 4 years ago

I guess that's because we're using ssh for wasi submodule - oops

[submodule "std/wasi/testdata"]
    path = std/wasi/testdata
    url = git@github.com:khronosproject/wasi-test-suite.git

cc @caspervonb

Fixing in https://github.com/denoland/deno/pull/7202

caspervonb commented 4 years ago

Oops, my bad 😅

getspooky commented 4 years ago

Hi @piscisaureus The problem is still exist.

ry commented 4 years ago

@getspooky You're on the latest master with all the submodules checked out? What does your git status report?

nayeemrmn commented 4 years ago

@getspooky On master, try rm -rf std/wasi/testdata; git submodule update. I remember needing to delete the old dir first for some reason.

getspooky commented 4 years ago

Hi @ry , @nayeemrmn

I run the following commands:

  1. git fetch upstream
  2. git merge upstream/master
  3. rm -rf -rf std/wasi/testdata
  4. git submodule update

The Output :

Warning: Permanently added the RSA host key for IP address '140.82.121.3' to the list of known hosts.
git@github.com: Permission denied (publickey).
ry commented 4 years ago

@getspooky I don't know but I'm relatively sure there's something messed up with your checkout. Try deleting it and cloning again.

lucacasonato commented 4 years ago
Warning: Permanently added the RSA host key for IP address '140.82.121.3' to the list of known hosts.
git@github.com: Permission denied (publickey).

@getspooky Pull master again - we changed the wasi test submodule to use the https:// git protocol instead of ssh:// a few hours ago.