Comments (8)
Ok, a clean install fixed it.
Thanks for your support.
from sublime-lsl.
SublimeLinter runs lslint with these flags:
- i
- m
- w
- z
Compare:
https://github.com/Makopo/lslint/blob/8c29d5ff36d47395932477a7514b3ca729a0a8f3/lslmini.cc#L855-L883
Currently the syntax file at ./.sublime/syntaxes/LSL.sublime-syntax
doesn't support the preprocessor code. However that shouldn't be a problem, as that only gives the visual feedback. I'll fix that in the next release.
Looking at your firestorm preprocessor code, I noticed two things. Keep in mind, I do not use this so here's a guess:
- You are missing a default statement within the switch. Compare the firestorm preprocessor docs.
- The switch parameter compared to the value in one of the statements results in an integer as that is the condition passed to the built
if ... else if ... else
construct. So you might be able call a function there that returns whatever, but I haven't tested that. In your casefunction
could be aninteger function
which is then compared to the constants in the built conditional statements as inif (function == RNDGETINT) { .... }
. I'm also not sure if yourRNDGETINT
is a user declared function in your case, and I'm not sure if the firestorm preprocessor can handle that. But you'd have to test.
from sublime-lsl.
As a follow up:
- adding a
default
to the switch, lslint only reports variables as undeclared in your code. - If the
missing default statement
error was your syntax error, I cannot reproduce your error.
Sublime Text:
channel: dev
build: 3156
portable: True
platform: Windows
architecture: x64
from sublime-lsl.
Hi,
I got the same errors with the example from the firestorm's page: http://wiki.phoenixviewer.com/fs_preprocessor
I'm a bit perplex...
from sublime-lsl.
@MisterFoxi I cannot reproduce your errors with the examples either.
Could you try with SublimeLinter v4.0.0
(or later) as there's a lot of work being done on that currently?
https://github.com/SublimeLinter/SublimeLinter
via:
// in 'Packages/User/Package Control.sublime-settings'
"install_prereleases":
[
"SublimeLinter"
]
The stable 4.0 release should be out soonish, in case you want to wait for that.
from sublime-lsl.
@MisterFoxi SublimeLinter v4 and later has an output panel for easier reference.
from sublime-lsl.
Still the same...
BB=LSL is v1.4.1
Linter is V4.0.0-rc9
contribution-lslint is v1.4.0
Tooltip is v1.0.3
and I don't have the outputs you seems to have.
Thanks.
from sublime-lsl.
@MisterFoxi Are you sure your issue is related to the =BB= LSL
package?
Please run SublimeLinter
in debug mode.
You have redundant packages in your setup.
Of which SublimeLinter-contrib-lslint
and =BB= LSL
both run lslint
via SublimeLinter
. To be sure your output for lslint
is from this package, please check via the debug output to the console (View > Show Console).
For the following packages, see their own repo:
SublimeLinter-contrib-lslint
: https://github.com/XenHat/SublimeLinter-contrib-lslintTooltipLSL
: https://github.com/makopo/sublime-text-tooltip-lsl
from sublime-lsl.
Related Issues (8)
- lslint binaries not executable on Linux and Mac HOT 4
- Error when running lslint: __init__() got an unexpected keyword argument 'cancel' HOT 2
- SublimeLinter: reason: [Errno 13] Permission denied (lslint) HOT 15
- Wrong cursor-position after new-line (ENTER) HOT 3
- Opening any LsL script causes error. HOT 17
- lslint fails (Using wrong folder) HOT 2
- Linting and tooltips broken in Sublime Text `Build 4107` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublime-lsl.