Sublime Forum

Dev Build 3022

#21

The new PHP stuff is great - however I’ve noticed that when I have a .html file and select HTML syntax, it shows as PHP - and as such when I try comment out an element it does:

// <div class="foo"></div>

instead of

<!-- <div class="foo"></div>

A minor annoyance, but one none-the-less

0 Likes

#22

“save_on_focus_lost”: true,

is not working anymore? :unamused:

0 Likes

#23

[quote=“eugeneg”]“save_on_focus_lost”: true,

is not working anymore? :unamused:[/quote]

SublimeCodeIntel caused that…

0 Likes

#24

[quote=“eugeneg”]

[quote=“eugeneg”]“save_on_focus_lost”: true,

is not working anymore? :unamused:[/quote]

SublimeCodeIntel caused that…[/quote]

You’re using SublimeCodeIntel with ST3?

0 Likes

#25

[quote=“Clams”]

Can you give an example some file names and search strings that are causing issues for you?

For example i have a file name eth_tx_ctrl.sv in a directory eth_tx_ctrl\rtl
With version 3014 if I type “ehxctl” the file will be on top with a score of 213 (which kind of makes sense to me since it matches the directory and the filename)
Now with version 3020 and 3022, doing the exact same thing, the top file is ac_ctrl from directory eth_tx_ctrl\0in with a score of 118, , there is a lot of different file with an l highlighted in the filename, and finally, after like ten different random file, the one i’m looking for with a score of 102.

I hope this helps you find the issue.[/quote]

Exact same problem here.
The filename is not even highlighted, only the matching directory in the subtext.

0 Likes

#26

I just got this error:

[quote]---------------------------
Sublime Text

Unable to save C:\workspace…]\FileMapGenerator.pl
Error: ReplaceFile and MoveFileEx(C:\workspace…].sublbf.tmp, C:\workspace…]\FileMapGenerator.pl) failed, error: 5

OK

[/quote]

I’ve tried saving few more times after getting this and got same error each time. Then I’ve modified file and then save worked after that.
I suppose it has to do with atomic save.

0 Likes

#27

Rename file from the panel doesn’t work.

0 Likes

#28

the error 5 is Access Denied. Maybe the file has the readonly attribute on?

0 Likes

#29

For me it does work. Do you validate your input with the Enter key ?

0 Likes

#30

[quote=“Clams”]For example i have a file name eth_tx_ctrl.sv in a directory eth_tx_ctrl\rtl
With version 3014 if I type “ehxctl” the file will be on top with a score of 213 (which kind of makes sense to me since it matches the directory and the filename)
Now with version 3020 and 3022, doing the exact same thing, the top file is ac_ctrl from directory eth_tx_ctrl\0in with a score of 118, , there is a lot of different file with an l highlighted in the filename, and finally, after like ten different random file, the one i’m looking for with a score of 102.

I hope this helps you find the issue.[/quote]

Thanks for the info. This is a Windows specific regression, and will be fixed for the next build.

0 Likes

#31

Great :smile:

0 Likes

#32

[quote=“jps”]

[quote=“Clams”]For example i have a file name eth_tx_ctrl.sv in a directory eth_tx_ctrl\rtl
With version 3014 if I type “ehxctl” the file will be on top with a score of 213 (which kind of makes sense to me since it matches the directory and the filename)
Now with version 3020 and 3022, doing the exact same thing, the top file is ac_ctrl from directory eth_tx_ctrl\0in with a score of 118, , there is a lot of different file with an l highlighted in the filename, and finally, after like ten different random file, the one i’m looking for with a score of 102.

I hope this helps you find the issue.[/quote]

Thanks for the info. This is a Windows specific regression, and will be fixed for the next build.[/quote]

I was about to report what might be the same issue. I’ve just started using ST3 few days ago and noticed that it seem to prefer matches in the directory path (or something) which doesn’t really work for me.

0 Likes

#33

Now, show_quick_panel expects all the rows with same number of items, that was not true on ST2.

def show_quick_panel(self, items, on_select, flags = 0, selected_index = -1, on_highlight = None): ...] items_per_row = 1 flat_items = items if len(items) > 0 and isinstance(items[0], list): -----> BUG items_per_row = len(items[0])

0 Likes

#34

auto_complete_triggers is not working with HTML.

Steps to reproduce:

  1. New File
  2. Set Syntax: HTML
  3. Type “<”

What happens: Nothing.
Expected: Auto-complete pops up.

Same issue with the setting: "auto_complete_triggers": {"selector": "", "characters": "<"} ] This one triggers the pop-up in Java, Python and Plain Text, so this issue seems to occur only in HTML.

0 Likes

#35

[quote=“schlamar”]auto_complete_triggers is not working with HTML.

Steps to reproduce:

  1. New File
  2. Set Syntax: HTML
  3. Type “<”

What happens: Nothing.
Expected: Auto-complete pops up.

Same issue with the setting: "auto_complete_triggers": {"selector": "", "characters": "<"} ] This one triggers the pop-up in Java, Python and Plain Text, so this issue seems to occur only in HTML.[/quote]

It’s because there are no completions. Keep in mind just typing “<” your auto complete (prefix) text is empty. The autocomplete suggestions you are seeing in other languages might predefined snippets/completions. There was a change in html_completions.py (which generated the html snippets/completions), so it isn’t populating like it did in ST2. You may want to keep an eye on this thread. Are API-injected completions working in ST3?

0 Likes

#36

Well, auto_complete_triggers is still broken for HTML. With the following settings the pop-up doesn’t show up, neither after “<” nor if you insert a char after the tag begin.

"auto_complete_selector": "source", "auto_complete_triggers": {"selector": "text.html", "characters": "<"}],

0 Likes

#37

For some reason, find/replace over several files does not work with the latest builds (3013, 3017, 3012, 3022) on Windows 32bit. When searching for a phrase, the find shows the occurrences in all files correctly, but clicking on replace (and confirming the following dialog) does not do anything. No files are opened, no replacements are done.

Can anyone reproduce this?

0 Likes

#38

Yes same issue, on windows XP.

0 Likes

#39

John, any chance you could look into this?

0 Likes

#40

The same thing happens in 3026 as well.

0 Likes