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.

Addes extra single quote when completing imports

See original GitHub issue

With deoplete: extra leading '

import React from '|
# (why?) Have to press <Tab> to trigger deoplete#manual_complete()
# select from popup: 'react'
# result is
import React from ''react'

With <C-X><C-O>: works

import React from '|
# <C-X><C-O>
# select from popup: 'react'
# result is
import React 'react'

Related: if using something that automatically adds quote pairs.

With deoplete: extra leading '

import React from '|'
# (why?) Have to press <Tab> to trigger deoplete#manual_complete()
# select from popup: 'react'
# result is
import React from ''react'

With <C-X><C-O>: extra trailing '

import React from '|'
# <C-X><C-O>
# select from popup: 'react'
# result is
import React 'react''

Tern config:

{
  "plugins": {
    "node": {},
    "node_resolve": {},
    "modules": {},
    "es_modules": {}
  }
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:25 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
carlituxcommented, Aug 9, 2016

Could you send minimal init.vim config file

0reactions
carlituxcommented, Nov 17, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code - Adjust import quotation setting
This adds the ability to determine whether to use single or double quotes for new imports added via code fixes. When a new...
Read more >
bash adds extra single quotes - Unix & Linux Stack Exchange
I have a problem executing my script. When executing it in debug mode (bash -x), I can see that bash is adding extra...
Read more >
tslint single quotes not respected by autocomplete adding ...
If VSCode's autocomplete adds the first "import" statement (using Ctrl+.) it always uses double quotes - no matter that's in tslint.json and ...
Read more >
TypeScript Single Quote Code Style Not Respected When ...
TypeScript Single Quote Code Style Not Respected When Importing React · Go to Preferences -> Editor -> Code Style -> TypeScript -> Punctuation...
Read more >
Can I import double quotation marks using CSV files and ...
Yes. You can import double quotation marks using CSV files and import maps by escaping the double quotation marks. To escape the double...
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