Code Monkey home page Code Monkey logo

Comments (2)

tilois avatar tilois commented on August 21, 2024

What's even more painful is that the formatter also formats String literals :rage2:

This leaves the resulting page a valid Integrity test but will most likely kill the test.
Assume the following script

call click id: "f:myPanel:myButton"

will be reformatted into

call click id: " f : myPanel : myButton "

The resulting test will fail because it can't find the element anymore 💥
String literals shouldn't be formatted at all.

from integrity.

S1artie avatar S1artie commented on August 21, 2024

Commit 8a94fed fixes the line ending problem by adding a new autodetection mechanism.

The mentioned issue of "irrational formatting" which can occur in some cases when a file is not syntactically correct is unfortunately not an easy fix, and not a bug in Integrity as well, since that problem is rooted in the formatter core, which is provided by Xtext. Thus one probably has to live with it for the time being, hoping that the Xtext formatter gets more robust over time.

from integrity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.