-
Notifications
You must be signed in to change notification settings - Fork 7
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
Equals sign '=' missing after property name 'ij_http' #122
Comments
I have not found some specification in .editrorconfig with property name which have a space (there is a space after ij_http). What means this space? |
Should be not ?
|
I think not. Try searching GitHub for this line, it's used in many exported configs: https://github.com/search?q=ij_http+request_call_parameters_wrap&type=code |
By reading samples from githubI have the impression it is the only property xhich have a space in the property name. Is it a bug from IJ? I suggest that you ask to IJ. I have not found some docs about this property. |
What an interesting corner case! Thanks for reporting this @rosingrind! The spec does not prohibit whitespace in keys:
However, I'd vote for not fixing this before the broader EditorConfig community explicitly accepts this as legal. Would you mind filling a clarification issue at https://github.com/editorconfig/specification/issues ? It would be great to have a test for this in https://github.com/editorconfig/editorconfig-core-test so that other parsers have a chance to adapt too. |
@angelozerr @ppalaga just a status update: it seems that the spec is updated in editorconfig/specification#43 and tests are on their way |
Summary
I'm using
ktlint
which utilizesec4j
, default IDEA settings exported as.editorconfig
contains next lines:[{*.http,*.rest}] ij_http request_call_parameters_wrap = normal
Parsing
.editorconfig
which containsij_http request_call_parameters_wrap = normal
causes exception:Reproduction
You can reproduce this issue by using
.editorconfig
which containsij_http request_call_parameters_wrap = normal
(either export default IDEA settings or create one containing). This issue was originally created at pinterest/ktlint#1866,ec4j
version is 0.3.0 (from libs.versions.toml)The text was updated successfully, but these errors were encountered: