Version 6.8.4 breaks JSLint plugin
-
Is there really no way Notepad++ could support the “legacy way”, whatever that may be, of getting the current file type?
That’s not a half bad idea, although I don’t know enough about the changes to know if that is possible.
-
Legacy compliance tend to build up a technical debt, but if it would be possible to implement some sort of legacy fallback for a limited time only in all bu the release candidates (e.g. only for the auto-update versions), if can then safely be removed later on, say in six months or a years time. The plugins that are still up to to the task will break, but with a reasonable delay.
-
Even if some backwards compatibility was put in place, it just pushes the problem down the road some to either wait for the author to update it (which according to you probably won’t happen), or inform thousands of users it will break eventually (which will never happen). It would have been nice if this kind of change was made to a major N++ update, for example v6.7.x to v6.8, not a minor update which was v6.8.3 to v6.8.4.
But I do totally agree with you that it would have been nice to inform plugin developers of the changes going to be made or to temporarily have some backwards compatibility in place for a while. But what’s done is done I guess…
Honestly, if JSLint is easy to build from source, it probably wouldn’t be more than a few lines that need changed. I may look into it if I have some free time.
-
A prime suspect is the split of JavaScript that took place in version 6.8.4.
- The file “langs.model.xml” used to have only one entry for JavaScript (named “javascript”) for file types js, jsm and json.
- That langauge entry has now been renamed “javascript.js” (and JSON has been moved to an entry of its own).
- The old “javascript” entry has been reused for embedded code.
Perhaps that’s what’s confusing plugins?
I wonder if it would be possible to avoid the problems altogether by simply letting the “new” embedded language not hijack the old “javascript” name?
-
I may look into it if I have some free time.
Oh well, I tried…I got it to build partly but it uses the v8 JavaScript library from Google, and being Google they do everything their own way and have some weird build system/tools I don’t feel like fighting my way through.
-
Nice of you to give it a try, @dail.
I should think there is a window op opportunity to set up an all new plugin for linting. ;)
Maybe Douglas Crockford’s implementation of the JSLint web (https://github.com/douglascrockford/JSLint) could be used? Is it possible to build a Notepad++ plugin running JavaScript?
-
May I suggest the JSLint plugin version (currently at V0.8.117) is downgraded from Stability “Good” to “Poor - No support for Notepad++ V6.8.4 and newer”?
-
Note that there is a work-around: Selecting CSS from the Language menu.
Perhaps Stability should rather be “Poor - Limited support for Notepad++ V6.8.4 and newer”?
-
After installing Version 0.8.3 over the one installed by the PluginManager everything works fine for me. I downloaded it from sourceforge: https://sourceforge.net/projects/jslintnpp/
-
@Manuel-Lemcke it was promising that a new version was released, but unfortunately it fails on any JSLint option and there have been no updates since. Version 0.8.1.117 distributed with Notepad++ is still the better option.
I advice against Notepad++ distributing 0.8.3.