Closed maccyber closed 5 years ago
This is tern issue, maybe you are running latest that have some bugs.
Ah, ok. Thanks!
Hi @maccyber!
I filed an issue at https://github.com/ternjs/tern/issues/1027, but they are saying that this is a deoplete-ternjs issue.
Tern: 0.24.1 Neovim: v0.4.2
I was able to reproduce the issue just now.
Here's a sample file that caused the crash (also found in the ticket above):
import { Controller } from 'stimulus';
import axios from 'axios';
export default class extends Controller {
static targets = [
'portfolioCompanies',
];
async assignCategory(portfolioCompanyId, portfolioCategoryId) {
const url = `/portfolio-companies/${portfolioCompanyId}/categories`;
try {
const res = await axios.post(
url,
{ porfolio_category_id: portfolioCategoryId },
{
headers: {
'Content-Type': 'application/json',
'X-CSRF-Token': document.querySelector('meta[name=csrf-token]').content,
},
},
);
} // catch - the moment you type catch the vim throws the error message above
}
}
@maccyber please disregard; the fix was made on the ternjs side. thank you!
Writing following in neovim with this config
Results in