facebookarchive / nuclide

An open IDE for web and native mobile development, built on top of Atom
https://nuclide.io
Other
7.79k stars 683 forks source link

Getting error about no Git repo after creating a file in remote folder #1632

Open xixixao opened 5 years ago

xixixao commented 5 years ago

Issue and Steps to Reproduce

  1. Connect to remote connection (I'm using localhost)
  2. Add new file in the folder

Expected Behavior

No error

Actual Behavior

  1. Observe error in dev tools console

Versions

Additional Details

Error: <embedded>:105865 Unable to locate git workspace root for nuclide://localhost/test/file.txt. Expected if nuclide://localhost/test/file.txt is not in a git repository. Error: ENOENT: no such file or directory, stat 'nuclide://localhost/test/file.txt'

revParse    @   VM22 <embedded>:105865
async function (async)      
revParse    @   VM22 <embedded>:105847
find    @   VM22 <embedded>:105833
fromPaneItem    @   VM22 <embedded>:52705
getNextContext  @   VM22 <embedded>:52714
async function (async)      
getNextContext  @   VM22 <embedded>:52692
updateActiveContext @   VM22 <embedded>:52768
execute @   VM22 <embedded>:108741
processTask @   VM22 <embedded>:108802
processQueue    @   VM22 <embedded>:108785
push    @   VM22 <embedded>:108772
scheduleActiveContextUpdate @   VM22 <embedded>:52676
module.exports.Emitter.simpleDispatch   @   VM22 <embedded>:68263
module.exports.Emitter.emit @   VM22 <embedded>:68392
didChangeActiveItemOnPane   @   VM22 <embedded>:30802
setActiveItem   @   VM22 <embedded>:31536
activateItem    @   VM22 <embedded>:31675
open    @   VM22 <embedded>:29520
async function (async)      
open    @   VM22 <embedded>:29550
goToLocation    @   .atom/pac…-to-location.js:102
actions.map.filter.filter.do    @   .atom/pac…/redux/Epics.js:551
a.__tryOrSetError   @   .atom/pac…undles/Rx.min.js:71
a.next  @   .atom/pac…undles/Rx.min.js:70
a._next @   .atom/pac…undles/Rx.min.js:68
a.next  @   .atom/pac…undles/Rx.min.js:67
a._next @   .atom/pac…ndles/Rx.min.js:184
a.next  @   .atom/pac…undles/Rx.min.js:67
a._next @   .atom/pac…ndles/Rx.min.js:194
a.next  @   .atom/pac…undles/Rx.min.js:67
a._next @   .atom/pac…ndles/Rx.min.js:194
a.next  @   .atom/pac…undles/Rx.min.js:67
a._next @   .atom/pac…ndles/Rx.min.js:136
a.next  @   .atom/pac…undles/Rx.min.js:67
a.next  @   .atom/pac…undles/Rx.min.js:77
action  @   .atom/pac…ux-observable.js:65
store.dispatch.Actions.openAddFileDialog.filePath   @   .atom/pac…sterCommands.js:150
openAddDialog   @   .atom/pac…redux/Epics.js:1534
_tickCallback   @   internal/process/next_tick.js:188
async function (async)      
openAddDialog   @   .atom/pac…redux/Epics.js:1502
FileDialogComponent._confirm    @   .atom/pac…leActionModal.js:95
handleCommandEvent  @   VM22 <embedded>:24144
module.exports.KeymapManager.dispatchCommandEvent   @   VM22 <embedded>:71340
module.exports.KeymapManager.handleKeyboardEvent    @   VM22 <embedded>:71131
handleDocumentKeyEvent  @   VM22 <embedded>:19769