{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/20325","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/20325/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/20325/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/20325/events","html_url":"https://github.com/Microsoft/vscode/issues/20325","id":206548933,"number":20325,"title":"Opening from command-line in empty folder creates debug.log file","user":{"login":"jdforsythe","id":286972,"avatar_url":"https://avatars.githubusercontent.com/u/286972?v=3","gravatar_id":"","url":"https://api.github.com/users/jdforsythe","html_url":"https://github.com/jdforsythe","followers_url":"https://api.github.com/users/jdforsythe/followers","following_url":"https://api.github.com/users/jdforsythe/following{/other_user}","gists_url":"https://api.github.com/users/jdforsythe/gists{/gist_id}","starred_url":"https://api.github.com/users/jdforsythe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdforsythe/subscriptions","organizations_url":"https://api.github.com/users/jdforsythe/orgs","repos_url":"https://api.github.com/users/jdforsythe/repos","events_url":"https://api.github.com/users/jdforsythe/events{/privacy}","received_events_url":"https://api.github.com/users/jdforsythe/received_events","type":"User","site_admin":false},"labels":[{"id":272689423,"url":"https://api.github.com/repos/Microsoft/vscode/labels/needs%20more%20info","name":"needs more info","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":{"login":"joaomoreno","id":22350,"avatar_url":"https://avatars.githubusercontent.com/u/22350?v=3","gravatar_id":"","url":"https://api.github.com/users/joaomoreno","html_url":"https://github.com/joaomoreno","followers_url":"https://api.github.com/users/joaomoreno/followers","following_url":"https://api.github.com/users/joaomoreno/following{/other_user}","gists_url":"https://api.github.com/users/joaomoreno/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomoreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomoreno/subscriptions","organizations_url":"https://api.github.com/users/joaomoreno/orgs","repos_url":"https://api.github.com/users/joaomoreno/repos","events_url":"https://api.github.com/users/joaomoreno/events{/privacy}","received_events_url":"https://api.github.com/users/joaomoreno/received_events","type":"User","site_admin":false},"assignees":[{"login":"joaomoreno","id":22350,"avatar_url":"https://avatars.githubusercontent.com/u/22350?v=3","gravatar_id":"","url":"https://api.github.com/users/joaomoreno","html_url":"https://github.com/joaomoreno","followers_url":"https://api.github.com/users/joaomoreno/followers","following_url":"https://api.github.com/users/joaomoreno/following{/other_user}","gists_url":"https://api.github.com/users/joaomoreno/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomoreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomoreno/subscriptions","organizations_url":"https://api.github.com/users/joaomoreno/orgs","repos_url":"https://api.github.com/users/joaomoreno/repos","events_url":"https://api.github.com/users/joaomoreno/events{/privacy}","received_events_url":"https://api.github.com/users/joaomoreno/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-02-09T16:09:04Z","updated_at":"2017-02-09T22:00:21Z","closed_at":null,"body":"- VSCode Version: 1.9.1\r\n- OS Version: Windows 10\r\n\r\nSteps to Reproduce:\r\n\r\n1. `mkdir test && cd test`\r\n2. `code .`\r\n3. See the `debug.log` file:\r\n\r\n```\r\n[0209/110457:ERROR:tcp_listen_socket.cc(76)] Could not bind socket to 127.0.0.1:6004\r\n[0209/110457:ERROR:node_debugger.cc(86)] Cannot start debugger server\r\n```\r\n\r\n4. Now delete the `debug.log` file\r\n5. The file is immediately created again (you have to refresh the explorer pane to see it, but you can see it in Windows Explorer or command line immediately)\r\n\r\nThis does not happen if you have a window open and open the folder through the UI"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/278787940","html_url":"https://github.com/Microsoft/vscode/issues/20325#issuecomment-278787940","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/20325","id":278787940,"user":{"login":"jdforsythe","id":286972,"avatar_url":"https://avatars.githubusercontent.com/u/286972?v=3","gravatar_id":"","url":"https://api.github.com/users/jdforsythe","html_url":"https://github.com/jdforsythe","followers_url":"https://api.github.com/users/jdforsythe/followers","following_url":"https://api.github.com/users/jdforsythe/following{/other_user}","gists_url":"https://api.github.com/users/jdforsythe/gists{/gist_id}","starred_url":"https://api.github.com/users/jdforsythe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdforsythe/subscriptions","organizations_url":"https://api.github.com/users/jdforsythe/orgs","repos_url":"https://api.github.com/users/jdforsythe/repos","events_url":"https://api.github.com/users/jdforsythe/events{/privacy}","received_events_url":"https://api.github.com/users/jdforsythe/received_events","type":"User","site_admin":false},"created_at":"2017-02-09T22:00:21Z","updated_at":"2017-02-09T22:00:21Z","body":"This doesn't happen on Mac, either.  I did some more digging. It seems the file is only written out if the folder you open doesn't have a `.vscode/tasks.json` - the file doesn't even have to be the correct format.\r\n\r\nTry this:\r\n```sh\r\nmkdir test1\r\ncd test1\r\ncode .\r\n```\r\n\r\nThe file gets written on any disk access (load the project, save a file, delete the log file, etc.)\r\n\r\nNow try this:\r\n```sh\r\nmkdir test2\r\ncd test2\r\nmkdir .vscode\r\necho 2>.vscode\\tasks.json\r\ncode .\r\n```\r\n\r\nEven as a 0-byte file, the `tasks.json` file stops the log file from being written."}}
{"actor":{"display_login":"jdforsythe"}}