Re: [TUT] Compiling AMXX plugins with Sublime Text
PHP Code:
PHP Code:
|
Re: [TUT] Compiling AMXX plugins with Sublime Text
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? |
Re: [TUT] Compiling AMXX plugins with Sublime Text
Spoiler
The lag is 10s everytime it generate syntax summary |
Re: [TUT] Compiling AMXX plugins with Sublime Text
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:
|
Re: [TUT] Compiling AMXX plugins with Sublime Text
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? |
Re: [TUT] Compiling AMXX plugins with Sublime Text
Try looking into:
How do you describe this lag? How much time does it last? |
Re: [TUT] Compiling AMXX plugins with Sublime Text
Lag appears when i open sublime text editor (i have ~10 tabs/sma already opened there), it lasts 3-5sec. then if i open new .sma (i think only for smas bigger than like 500 lines) it again got stuck for 3-5 sec
edit: that lag on startup always happens after ~5sec after opening, meaning not instant lag while opening app show consone: Code:
DPI mode: per-monitor v2 Code:
This list shows how much time each plugin has taken to respond to each event: |
Re: [TUT] Compiling AMXX plugins with Sublime Text
You can try installing Sublime Text build 3207 (https://download.sublimetext.com/Sub...64%20Setup.exe)
To migrate, just copy your `Data` directory over the 3207 `Data` directory. You can also try setting the AmxxEditor setting `live_refresh_delay` to 0 |
Re: [TUT] Compiling AMXX plugins with Sublime Text
Please, if you made any changes these days, revert them. Having "live_refresh_delay" set to anything above 0 makes Sublime unusable because of constant lag spikes.
Console outputs "generating syntax summary" each time a lag spike occurs. |
Re: [TUT] Compiling AMXX plugins with Sublime Text
The last change I did was in Jun 17, 2020.
This generating syntax summary is a Sublime Text feature. Can you try setting on your Preferences -> Settings
See the messages after this post https://forums.alliedmods.net/showth...11#post2706211 Are you using a portable version of Sublime Text? You can try renaming your Data directory and doing a clean install and see if that fixes the problem. |
Re: [TUT] Compiling AMXX plugins with Sublime Text
None of the settings helped. Refreshing the Data directory did the trick. Thanks.
|
Re: [TUT] Compiling AMXX plugins with Sublime Text
Just some niche picking:
PHP Code:
|
Re: [TUT] Compiling AMXX plugins with Sublime Text
Quote:
Do you see any `Include File Not Found: ` on your Sublime Text console? |
Re: [TUT] Compiling AMXX plugins with Sublime Text
Quote:
Code:
Include File Not Found The problem was there is space in front of the include Normal Code:
#include <engine> Code:
#include < engine > |
Re: [TUT] Compiling AMXX plugins with Sublime Text
Quote:
|
Re: [TUT] Compiling AMXX plugins with Sublime Text
It keeps generating syntax summary even though "live_refresh_delay" is set to 0.0.
|
Re: [TUT] Compiling AMXX plugins with Sublime Text
Could someone perhaps help me? I've recently installed my new pc with Sublime on it and AmxxEditor. I'm only having trouble compiling plugins... This is the output when i try to compile a standard test plugin.
Code:
PHP Code:
EDIT: found the problem, there was a duplicate map somewhere in my files that didn't belong there. |
Re: [TUT] Compiling AMXX plugins with Sublime Text
A new version of Sublime was released breaking the operation with amx.
Code:
__init__() got an unexpected keyword argument 'kill_previous' |
Re: [TUT] Compiling AMXX plugins with Sublime Text
Quote:
For Sublime Text 4, I think I would need to patch few things. But for now, I still using Sublime Text 3. |
Re: [TUT] Compiling AMXX plugins with Sublime Text
Quote:
|
Re: [TUT] Compiling AMXX plugins with Sublime Text
Quote:
|
Re: [TUT] Compiling AMXX plugins with Sublime Text
I reinstalled sublime 3 and installed AmxxEditor from Package Control
But for some reason, when I checked the Config and Setting, all 4 of them are blank Console Log: https://pastebin.com/AbCUWBM8 |
Re: [TUT] Compiling AMXX plugins with Sublime Text
Quote:
HTML Code:
File: .../Packages/AmxxEditor/AmxxEditor.py This should be fixed when I release the next version. |
Re: [TUT] Compiling AMXX plugins with Sublime Text
Quote:
|
Re: [TUT] Compiling AMXX plugins with Sublime Text
Quote:
|
All times are GMT -4. The time now is 05:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.