question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gf empties target file

See original GitHub issue

BUG REPORT

What happened: Use gf and it seems to delete the file and create a new file on top every time.

What did you expect to happen: I would go to the file if it exists and if it doesn’t create the file.

How to reproduce it (as minimally and precisely as possible):

Create two files: somefile.js

import hi from './hello'

and in hello.js place any content.

hover over “hello” and type “gf”. It will empty the contents of hello.js.

  • Extension (VsCodeVim) version: 0.11.0
  • VSCode version: 1.20.1 & 1.21-insiders
  • OS version: OSX High Sierra

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jpooncommented, Mar 1, 2018

Ack, it’s a regression from https://github.com/VSCodeVim/Vim/pull/2392/. Re-reading the code, there’s a case where we overwrite the file 😦

0reactions
iammerrickcommented, Mar 7, 2018

❤️ Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Empty Targets (GNU make)
The purpose of the empty target file is to record, with its last-modification time, when the rule's recipe was last executed. It does...
Read more >
How to skip target from getting updated in Makefile
If there is an update in dependencies (time stamp), the target should be updated. But at any case (though dependency does not exist),...
Read more >
No target provided, or empty target list · Issue #31 - GitHub
I'm following the procedure and my scans keep failing with "No target provided, or empty target list" error. Repro steps (on kali linux): ......
Read more >
When to use target="_blank" | CSS-Tricks
Anchor links1 may have a target attribute which controls what happens when that link is clicked. One of the possible values of that ......
Read more >
Restoring Specific Files and Folders - User Guide for VMware ...
When you restore specific files, you can extract file versions not only from the backup repository, but also from the archive repository. For ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found