Sublime Forum

Use sublime text api [open_file] ,but path is not correct

#1

I want to write a sublime text like ctags for javascript, then I need to “open_file” api which from sublime text.

But It is not work, I have printed path,but it seem different with the path I have transmit to api.

print("needOpen "+needOpen) root.view.window().open_file(needOpen)

console

[code]needOpen C:/Users/lujunhao/AppData/Roaming/npm/node_modules/fis/node_modules/fis-kernel/fis-kernel.js

Unable to open /C/Users/lujunhao/AppData/Roaming/npm/node_modules/fis/node_modules/fis-kernel/fis-kernel.js[/code]

This has already perplexed me for a long time .
thx

0 Likes