Comments (6)
Could you post a screenshot of what you see? (if you can navigate after the permanent eye damage!)
For example, this is what I see:
from codeinspector.
I got
> ./inspector.wls
InspectedFileObject[/Users/danielkvasnicka/match_distribution.wl, {InspectedLineObject[ PlotRange -> {{{2020, 5, 8}, {2020,
5, 10}}, {0, 7500}},, 15, 1a7c3ef62891ca7b, {{ , , , , , P, l, o, t, R, a, n, g, e, , -, >, , {, {, {, 2, 0, 2, 0, ,, , 5, ,, , 8, }, ,, , {, 2, 0, 2, 0, ,, , 5, ,,
, 1, 0, }, }, ,, , {, 0, ,, , 7, 5, 0, 0, }, }, ,, }, { , CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`F
ormat`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCh
aracter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`For
mat`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorChar
acter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Forma
t`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharac
ter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`
LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacte
r, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`Li
ntSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter,
CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`Lint
SpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, C
odeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSp
aceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, Cod
eInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpac
eIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeI
nspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintSpaceI
ndicatorCharacter, CodeInspector`Format`LintSpaceIndicatorCharacter, CodeInspector`Format`LintMarkup[CodeInspector`Format`LintContinuationCharacter, FontWeight -> Bold, FontSiz
e -> Larger, FontColor -> RGBColor[1, 0, 0]]}}, {InspectionObject[Comma, Extra ``,``., Error, <|CodeParser`Source -> {{15, 61}, {15, 61}}, CodeParser`CodeActions -> {CodeParser
`CodeAction[Delete ``,``, CodeParser`DeleteNode, <|CodeParser`Source -> {{15, 61}, {15, 61}}|>]}, ConfidenceLevel -> 1., File -> /Users/danielkvasnicka/match_distribution.wl|>]}, MaxLineNumberLength -> 2]}]
The inspector file has this:
#!/usr/bin/env wolframscript
PacletInstall["CodeParser"]
PacletInstall["CodeInspector"]
Needs["CodeInspector`"]
Print[CodeInspectSummarize[File["match_distribution.wl"]]]
Maybe the use of File
throws is off the rails? Or the fact that you are in the Mma REPL?
from codeinspector.
@dkvasnicka Add this to the beginning of your script:
SetOptions[$Output, FormatType -> OutputForm]
This happens because the default FormatType is the undocumented ScriptForm
, which messes up all kinds of pretty-formatted stuff, even error messages printed from parallel kernels ...
from codeinspector.
See also here: https://mathematica.stackexchange.com/a/208147/12 (except that the note in the comment doesn't apply here: version 1.3.0 doesn't fix this)
from codeinspector.
This is the difference between running in a plain kernel and running in a script.
As @szhorvat said, the default FormatType
for wolframscript
is ScriptForm
. There are differences between OutputForm
and ScriptForm
, the biggest difference being that there is no 2D printing in ScriptForm
.
It could perhaps be a project to provide a ScriptForm
version of the linted objects, but it would not be very useful.
For now, follow @szhorvat 's solution.
Let me know if that works for you.
from codeinspector.
Works like a charm, thank you guys!! 🏆 🤘
from codeinspector.
Related Issues (13)
- CodeInspectBoxSummarize[File["path"]] causes errors HOT 2
- Publish 1.2 to paclet server HOT 2
- Error Get::noopen: Cannot open CodeFormatter`. HOT 1
- Why are sessionSymbols considered suspicious? HOT 2
- "Duplicate keys in list of rules." in the presence of conditions HOT 3
- Some important CodeInspect hints do not get shown (too low confidence?) HOT 1
- Generalize OptionsPattern inspection HOT 2
- OptionsPattern inspection should not trigger within SyntaxInformation HOT 3
- Avoid scanBadSymbols to be Error. HOT 6
- CodeInspect does not know about ApplyTo sugar HOT 3
- Resolution of Language specific messages HOT 1
- Warnings about letterlike characters in identifiers HOT 5
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 codeinspector.