Raised This Month: $23 Target: $400
 5% 

[TUT] Compiling AMXX plugins with Sublime Text


Post New Thread Reply   
 
Thread Tools Display Modes
Celena Luna
Senior Member
Join Date: Aug 2013
Location: Okinawa, Japan
Old 06-17-2020 , 13:57   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #201

PHP Code:
Exception in thread Thread-2:
Traceback (most recent call last):
  
File "./python3.3/threading.py"line 901in _bootstrap_inner
  File 
"C:\Users\SKon1\AppData\Roaming\Sublime Text 3\Packages\AmxxEditor\AmxxEditor.py"line 1016in run
    self
.process(file_nameview_buffer)
  
File "C:\Users\SKon1\AppData\Roaming\Sublime Text 3\Packages\AmxxEditor\AmxxEditor.py"line 1027in process
    self
.load_from_file(view_file_name, include, current_nodecurrent_nodebase_includes)
  
File "C:\Users\SKon1\AppData\Roaming\Sublime Text 3\Packages\AmxxEditor\AmxxEditor.py"line 1057in load_from_file
    
(file_nameexists) = get_file_name(view_file_namebase_file_name)
  
File "C:\Users\SKon1\AppData\Roaming\Sublime Text 3\Packages\AmxxEditor\AmxxEditor.py"line 1100in get_file_name
    
return (file_namepath_exists)
UnboundLocalErrorlocal variable 'file_name' referenced before assignment 
And about Profile
PHP Code:
This list shows how much time each plugin has taken to respond to each event:

on_activated:
    Default.
pane0.001s totalmean0.000smax0.001s

on_close
:
    Default.
pane0.000s total

on_deactivated
:
    Default.
history_list0.001s totalmean0.000smax0.001s

on_hover
:
    Default.
symbol0.040s totalmean0.001smax0.021s
    AmxxEditor
.AmxxEditor0.107s totalmean0.003smax0.082s

on_load
:
    Default.
detect_indentation0.036s totalmean0.018smax0.032s
    
Default.exec0.005s totalmean0.002smax0.005s

on_pre_close
:
    Default.
history_list0.001s total

on_selection_modified
:
    
AmxxEditor.AmxxEditor0.225s totalmean0.001smax0.037s 
it look normal but I got lag everytime I open a new plugin
__________________
My plugin:
Celena Luna is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 06-17-2020 , 14:29   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #202

I just launched an update fixing the `UnboundLocalError: local variable 'file_name' referenced before assignment`.

How much big is this lag when you create a new plugin? 10 seconds?

The profile results look normal. Did you run the `Profile` thing after opening a plugin? Can you try running the Profile thing again after opening several plugins? Can you PM the full Sublime Text console log after trying it?
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
Celena Luna
Senior Member
Join Date: Aug 2013
Location: Okinawa, Japan
Old 06-17-2020 , 14:54   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #203

Spoiler


The lag is 10s everytime it generate syntax summary
__________________
My plugin:
Celena Luna is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 06-17-2020 , 15:27   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #204

That `generating syntax summary` is from Sublime Text. You can try disabling it by going to the menu `Preferences -> Settings` and setting `"index_files": false`

Alternatively, you can try to limit the number for CPU's Sublime Text will use to index files by setting `"index_workers": 1` instead of completely disabling the file indexing:
Code:
    // File indexing parses all files in the side bar, and builds an index of     // their symbols. This is required for Goto Definition to work.     "index_files": true,     // Set the number threads to use for indexing. A value of 0 will make     // Sublime Text guess based on the number of cores. Use the index_files     // setting to disable all workers.     "index_workers": 0,
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old Today , 08:18   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #205

hello. i also see some lag while opening Sublime Text Editor (but only from lately)
with doing index_files false, and index_workers: 1, i got same results...could be there any other solutions?
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...)

Last edited by JocAnis; Today at 08:20.
JocAnis is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old Today , 12:56   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #206

Try looking into:
  1. Setting `index_workers: 0`

  2. https://forum.sublimetext.com/t/how-to-determine-if-sublime-is-slow-vs-plugins/25618

    After completing opening Sublime Text and the lag has stopped, look into `Tools > Developer > Profile Plugins` and post here/pm the results.

  3. After completing opening Sublime Text and the lag has stopped, to go the menu `View -> Show Console` and post here/pm the results.

  4. https://forum.sublimetext.com/t/sublime-text-is-really-laggy-all-of-a-sudden/36655/

    Try setting `show_definitions: false`

How do you describe this lag? How much time does it last?
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:24.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode