Sublime Forum

Unable to open res://Packages/Default/Delete Line.sublime-ma

#1

I’m running the 64-bit, portable install of ST3, build 3065 on windows 7.

When I try to delete the line the cursor is currently on, either with ctrl-shift-k, or via the menu (Edit -> Text -> Delete Line) nothing happens, except that the status bar shows the message:

Unable to open res://Packages/Default/Delete Line.sublime-macro

If I make a copy of %INSTALLDIR%\Packages\default.sublime-package, rename it to give it a zip extension and open it in 7-zip, I can see the file in there. Contents are:


    {"command": "expand_selection", "args": {"to": "line"}},
    {"command": "add_to_kill_ring", "args": {"forward": true}},
    {"command": "left_delete"}
]

Actually, now that I try, it looks like none of the delete macros are working.

Not sure how to debug this.

Can anyone reproduce this?

Thanks!

-Roy

0 Likes

#2

Figured it out–looks like the package file names are case-sensitive.

I had edited the default package as described in this thread:

so my custom run command would work. That involved renaming $sublime_dir/Packages/Default.sublime-package to Default.zip, unpacking it, editing the proper files, rezipping & then renaming back to default.sublime-package. But note the lower-case ‘d’ there–that’s what messed me up.

That had the desired effect of fixing my run command. But the unexpected-casing in the package file name also somehow put the delete line macro (and also word wrap and I think the find-in-folder result highlighting scheme) out of reach.

Renaming the file back to ‘Default.sublime-package’ put things right for me again.

0 Likes

#3

I’ve got the same issue after upgrading to build 3103 this morning.

It doesn’t seem related to OP however because I’m using Linux Mint.
The only things I modified (a long time ago) and is still working:

[
{ “keys”: [“ctrl+tab”], “command”: “next_view”},
{ “keys”: [“ctrl+shift+tab”], “command”: “prev_view”}
]

Thanks !

0 Likes