-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: native is null #2
Comments
There is a good very good chance that updating to NativeExt 0.2.1 fixes that. (Yes. I just published that release. Forgot to press "publish" before.) |
Tried it out, getting the same error when development mode gets disabled and another error when it gets enabled:
It is easy to speculate what this means, but how is that relevant to this extension? |
NativeExt needs to find the installation of the extension on the disk. That can be very tricky. With Firefox, it relies on the And do find your original problem, please open the browser console ( |
Hmm. It may be related that I use this PPA for installation and updates. The official method of tar.gz is too much of a hassle IMO.
The option below UI styles.
And just in case it helps, a stack trace for the other one:
|
Okay. Please try this:
|
Yup, that does not exist. Maybe add a path field to reStyle settings? |
The security concept of NativeExt is that it finds the extension installation itself. That way (unless a file in the extension calls
So having a UI option inside the extension that specifies the profile directory is not a good idea. I'll try to find a different way to deduct the profile directory, but in the meantime, you could set the |
The
It really depends on how you currently start Firefox, and if you want to set the env var globally or just for Firefox (given the long name,
|
Looks like that profile is so crash-free it didn't have the two folders 😁 But the other profiles I have still lack the env variable, even if the two folders are present. Anyway, tried the first method so I wouldn't permanently mess up anything and progress - another error came up:
I guess it just didn't generate the folder? |
It doesn'T really matter if the folders actually exist. NativeExt simply reads the env var and assumes that the root of the profile folder is two directories up. If you use different Firefox profiles, you need to launch each of them with the
|
If it causes an error and prevents it from working, it does matter... You also contradict yourself with the second sentence. Regardless, I have created a folder now and am no longer getting errors. Now I've seen userChrome.css and userContent.css files with
so things seem to work. So now my only question is, do you know any valid 57+ Stylish styles to actually test? 😁
|
I was talking about to different folders there. The The folder set as
All the styles in my user style collection used to work with Stylish for Firefox and now work with reStyle. So should almost all styles on
reStyle supports
Will do.
There are three possible "origins" of CSS sheets, (user) agent, user and (website) author. WebExtensions can apply styles to websites as either user or author, and the styles in the |
don't use pre-parsed styles from userstyles.org (#2), set tab title as style name if style name is a number
Because they are a bit faster to parse, reStyle used to fetch the reprocessed styles for Stylish for Chrome when installing styles with options. I guess because the style in question is solely for Firefox, |
When toggling the development mode, I get a notification with the text
Using successful installs of NativeExt 0.1.0 for Linux x64, packaged script from reStyle 0.2.1b8, Firefox 58.0a1 (2017-11-03), Ubuntu 17.10.
The text was updated successfully, but these errors were encountered: