neoformat error when formatting nim file (nimpretty)

15 views
Skip to first unread message

wsdjeg

unread,
May 30, 2021, 2:32:43 AM5/30/21
to spacevim
<!-- bug reporting without issue template will be closed automatically -->

## Expected behavior, english is required
Nim code should get formatted via nimpretty but error is raised instead.
Other "lang#nim" layer features seems to work correctly.

## The reproduce ways from Vim starting (Required!)
open any nim source file like
```nim
func asd: float = 5.0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
echo asd() 
```
do
`SPC b f`

format_on_save causes same error

## Debug info
```
Error detected while processing function neoformat#Neoformat[5]..<SNR>210_neoformat:                                                                                                                               
line   77:                                                                                                                                                                                                         
E482: Can't open file with an empty name
```
```
$ nim --version
1.4.8
```
```
$ nimpretty --version
0.2
```
```
$ cd .SpaceVim
$ git log --pretty=format:'%h' -n 1
8df089b5
```

running nimpretty manually works

Reply all
Reply to author
Forward
0 new messages