vinecode / phplint.novaextension Goto Github PK
View Code? Open in Web Editor NEWPHPLint.novaextension
License: MIT License
PHPLint.novaextension
License: MIT License
please create validate php file if he on remote server and you edit him online .
When I install the extension "PHPLint" into Nova v1.0b19, I immediately receive the following error:
PHPLint[14:14:31.006000] Extension encountered an uncaught exception:
/Users/sroka/Library/Application Support/Nova/Extensions/vinecode.PHPLint/Scripts/main.js (Line 49, Column 0)
TypeError: undefined is not an object (evaluating 'message.replace')
file:///Users/sroka/Library/Application%20Support/Nova/Extensions/vinecode.PHPLint/Scripts/main.js:49:34
No other extensions are installed — this is a new and clean installation of Nova b19.
When working with remote files I am getting an error "Could not open input file: /var/www/******"
Just installed Nova and the extension. Working against a remote project files open fine with Nova but the extension reports:-
Could not open input file: /remote/path/to/file/index.php
When saving and having the code validated a warning is shown on the causing line.
When fixing the error (for good) and saving again, the warning is not removed and keeps being displayed, until anything new is written / edited in the file, or the file is closed and reopened.
Expected behaviour:
when a re-validation happens and the previously indicated error is successfully resolved, it should remove the warning indicator instantly.
New to nova, and to PHPLint, but it appears to be non-functional for me, producing the following error:
Extension encountered an uncaught exception: /Users/daniel/Library/Application Support/Nova/Extensions/vinecode.PHPLint/Scripts/main.js (Line 49, Column 0) TypeError: undefined is not an object (evaluating 'message.replace') file:///Users/daniel/Library/Application%20Support/Nova/Extensions/vinecode.PHPLint/Scripts/main.js:49:34
any pointers on how to get this back up and running would be gratefully received – google not being helpful!
Manually setting the php executable path to the php bin included within MAMP seems not to work - could that be?
/Applications/MAMP/bin/php/php7.4.2/bin/php
=> in the UserConfiguration.json
the slashes in the path will be escaped with \
When opening PHP files & validating on save, the Debug Log only displays a message as follows:
PHPLint[21:23:39.013000] Errors parsing /Volumes/macOS/Users/me/Sites/project/index.php
The installation instructions in the readme are unclear for me on a couple points.
(1) installing PHP
They say "you must ensure that php is installed on your system" and recommend using Homebrew to do it. Yet, Mac OS X comes with PHP pre-installed — you just need to enable it (such as from these instructions).
(2) Executable path
In the instructions, the executable path is just a placeholder ("/path/to/sass"). Yet both the built-in version of PHP and the Homebrew version install PHP to a specific location: /usr/bin/php. The instructions should say that this is a standard default location.
Thank you.
The README doesn't make it clear what this extension does beyond what Nova has already. Could you clarify why the need for this extension. Thanks for the help.
Nova reports that PHPLint encountered an uncaught exception:
Extension encountered an uncaught exception:
/Users/######/Library/Application Support/Nova/Extensions/vinecode.PHPLint/Scripts/main.js (Line 41, Column 29)
TypeError: undefined is not an object (evaluating 'stdOut[0].search')
@file:///Users/######/Library/Application%20Support/Nova/Extensions/vinecode.PHPLint/Scripts/main.js:41:29
@[native code]
promiseReactionJob@[native code]
I'm on Nova 8.4, build 355205. Any ideas what might be the problem?
When I save a php document with a syntax error (like a missing ;) nothing is showing on the issues panel.
I can see a message on the extension log: PHPLint
Errors parsing /some/project/some/file.php
but nothing on the issues panel.
I gues it is supossed to show someting in the issues panel, right?
Do you know is there's any problem with this?
Thanks
Please tell me how to use it? Is there a a secret key combination? Menu option? I have it installed but it doesn't seem to do anything? Yes, I have PHP
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.