buildersbrewery / sublime-lsl Goto Github PK
View Code? Open in Web Editor NEWLSL for Sublime Text 4073+ with linting, tooltips & completions with your indent style of choice.
License: ISC License
LSL for Sublime Text 4073+ with linting, tooltips & completions with your indent style of choice.
License: ISC License
sublime-lsl is looking in the wrong folder for included lslint executable
it is looking inside the bin
folder, the files are in the lib
folder.
pressing tools > build in the menu should not error with failure to find file
Error thrown in console
[WinError 2] The system cannot find the file specified
[cmd: ['C:\\Users\\user\\AppData\\Roaming\\Sublime Text 3\\Packages\\=BB= LSL\\bin\\lslint\\windows\\lslint.exe', '-i', '-m', '-p', '-w', '-z', 'C:\\Users\\user\\projects\\sl\\lsl\\file.lsl']]
[dir: C:\Users\user\projects\sl\lsl]
Open lsl file, press the build option in the tools menu and build for any windows
=BB= LSL:
version: 4.3.0
installed via Package Control: True
Sublime Text:
channel: dev
build: 3189
portable: True
platform: Windows
architecture: x64
Packages:
Package Control: v3.3.0
PackageDev: v3.2.7
Dependencies:
SublimeLinter: 4.9.4
markupsafe: 0.23.0
mdpopups: 3.4.0
pygments: 2.0.2
python-jinja2: 2.8.0
python-markdown: 2.6.11
pyyaml: 3.12.0
ruamel-yaml: 1.2.0
After updating or installing Sublime Text Build 4107
and installing all the packages, linting doesn't work and after restarting Sublime Text tooltips are not displayed.
I have tried to do a clean install, removing everything related to previous versions, and it doesn't solve the issue.
Sublime Text:
build: 4107
channel: dev
portable: false
platform: windows x64
Packages:
=BB= LSL:
version: 6.0.0
installed via Package Control: True
Package Control: 3.4.1
PackageDev: 3.2.16
Dependencies:
SublimeLinter: 4.16.3
markupsafe: 1.1.1
mdpopups: 4.1.2
pygments: 2.0.2
python-jinja2: 2.10.1
python-markdown: 3.1.1
pyyaml: 5.1.1
ruamel-yaml: 1.2.0
sublime_lib: 1.4.0
__init__() got an unexpected keyword argument 'cancel'
Removing the "cancel": { "kill" : true},
part from LSL.sublime-build allows it to work as expected.
=BB= LSL:
version: 1.2.0
installed via Package Control: True
Sublime Text:
channel: stable
build: 3143
platform: Linux
architecture: x64
Get a error-message in console that the directory/file for lslint wasn't found or permission is when startup Sublime.
No lint and following error-message in console:
SublimeLinter: ERROR: could not launch ['/Users/slunardi/Library/Application Support/Sublime Text 3/Packages/=BB= LSL/bin/lslint/osx/lslint', '--version']
SublimeLinter: reason: [Errno 13] Permission denied
SublimeLinter: PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
SublimeLinter: WARNING: no lslint version could be extracted from:
CodeFormatter: Plugin Initialized
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 210, in on_api_ready
m.plugin_loaded()
File "/Users/slunardi/Library/Application Support/Sublime Text 3/Packages/=BB= LSL/main.py", line 94, in plugin_loaded
chmod_lslint()
File "/Users/slunardi/Library/Application Support/Sublime Text 3/Packages/=BB= LSL/main.py", line 85, in chmod_lslint
stat.S_IXOTH)
FileNotFoundError: [Errno 2] No such file or directory: '=BB= LSL/bin/lslint/linux/lslint'
I've looked into the directory and the files are available, and they're:
/Users/slunardi/Library/Application Support/Sublime Text 3/Packages/=BB= LSL/bin/lslint/linux/lslint
/Users/slunardi/Library/Application Support/Sublime Text 3/Packages/=BB= LSL/bin/lslint/osx/lslint
Terminal:
drwxr-xr-x 3 slunardi staff 102 26 Dez 23:13 .
drwxr-xr-x 10 slunardi staff 340 26 Dez 23:35 ..
-rw-r--r-- 1 slunardi staff 406040 26 Dez 23:13 lslint
Tried also to do chmod +x lslint but even with executable attribute, it doesn't work. I can't even execute it in the Terminal.
I can touch, edit, modify the file, so it can't be a permission issue.
Settings are set as like in the guidelines. (do i need to add the lsl-linter into the SublimeLinter settings, too? (just have add the code of the guidelines into my Preferences.sublime-settings for user.
Sublime-User-Preferences:
{
"color_scheme": "Packages/User/SublimeLinter/base16-ocean.light (SL).tmTheme",
"font_size": 13,
"ignored_packages":
[
"Vintage"
],
"tab_size": 4,
"theme": "Default.sublime-theme",
"translate_tabs_to_spaces": true,
"mdpopups.sublime_user_lang_map": {
"lsl": [
[ "lsl" ],
[ "=BB= LSL/.sublime/syntaxes/LSL" ]
]
},
"mdpopups.use_sublime_highlighter": true
}
=BB= LSL:
version: 1.4.1
installed via Package Control: True
Sublime Text:
channel: stable
build: 3143
portable: False
platform: MacOS Sierra ( 10.12.6 )
architecture: x64
lslint should run.
lslint doesn't run (errno 13)
Makopo/siblime-text-lsl does the chmod in init.py, but not sure that's needed (vs. just distributing the files with the right file permissions.)
=BB= LSL:
version: 1.2.0
installed via Package Control: True
Sublime Text:
channel: stable
build: 3143
portable: True
platform: Linux
architecture: x64
Hello again,
my indention-style is K & R
, and it works when it comes to autocompletions. But something odd happens when I press the ENTER for the new line. Instead of being indented with 4 characters it suddenly doesn't indent and is on the same level as the parent.
I thought it is because the indention-styles and changed to others, but it seems not related with this selection.
How can I recover the default behavior again?
default {
if(x) { // <- Press ENTER
|
}
}
default {
if(x) { // <- Press ENTER_
|
}
}
Press Enter on the position where the comment starts with the // characters in an LSL document.
=BB= LSL:
version: 1.4.1
installed via Package Control: True
Sublime Text:
channel: stable
build: 3143
portable: False
platform: MacOS Sierra ( 10.12.6 )
architecture: x64
According the project description, it's my understanding that directive like #include
or switch
should be implemented but, for me at least, they appears as error.
#define USE_SWITCHES
...
switch (function)
{
case RNDGETINT:
{
data=data+","+(string)lslPRNGRandomInteger(seed);
break;
}
case RNDGETFLOAT:
{
for (i=0;i<NumDice;i++){
}
data=data+","+(string)lslPRNGRandomFloat(seed);
break;
}
case RNDGETKEY:
{
data=data+","+(string)lslPRNGRandomKey(seed);
break;
}
case RNDSETSEED:
{
seed=llList2Integer(Payload, 1);
data=data+","+"ok";
break;
}
}
gave a syntax error at 'case RNDGETINT: '
Did I missed something in the settings or misunderstood that functionality for the linter ?
Thanks.
=BB= LSL:
version: 1.4.1
installed via Package Control: True
Sublime Text:
channel: ?
build: ?
portable: ?
platform: macOS
architecture: x64
SublimeLinter: #1 lslint sl_script_d0a7becf2e4425b8834708da06decc0c.lsl
ERROR: ===
Linter crashed.
Traceback (most recent call last):
File "...\Sublime Text 3\Installed Packages\SublimeLinter.sublime-package\lint/backend.py", line 100, in execute_lint_task
errors = linter.lint(code, view_has_changed, settings) or []
File "...\Sublime Text 3\Installed Packages\SublimeLinter.sublime-package\lint/linter.py", line 758, in lint
cmd = self.get_cmd()
File "...\Sublime Text 3\Installed Packages\SublimeLinter.sublime-package\lint/linter.py", line 482, in get_cmd
if '@python' in which:
TypeError: argument of type 'property' is not iterable
=BB= LSL:
version: 2.2.0
installed via Package Control: True
Sublime Text:
channel: dev
build: 3156
portable: False
platform: Windows
architecture: x64
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.