Coder Social home page Coder Social logo

eclipse-artifacts's People

Contributors

slopjong avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

eclipse-artifacts's Issues

Wrong md5 sums fro two artifacts

The AUR version seems to have some problems with the md5 sums with the vaadin update site. The first two md5 sums are the same.

source=(
        ${_updatesite}'features/com.vaadin.integration.eclipse_2.0.1.201105170102.jar' 
        ${_updatesite}'plugins/com.vaadin.integration.eclipse_2.0.1.201105170102.jar' 
        ${_updatesite}'plugins/com.vaadin.wysiwyg.eclipse_2.0.1.201105170102.jar' 
)

noextract=(
        'com.vaadin.integration.eclipse_2.0.1.201105170102.jar' 
        'com.vaadin.integration.eclipse_2.0.1.201105170102.jar' 
        'com.vaadin.wysiwyg.eclipse_2.0.1.201105170102.jar' 
)

md5sums=(
        'cb13d215354fafecdcbcb03ca723b4f2' 
        'cb13d215354fafecdcbcb03ca723b4f2' 
        '682571c8f0c58c68fb8b88976d102251' 
)

Reading attributes from a sub query with a bound QXmlQuery doesn't work

The reason why attributes cannot be read directly from a QXmlItem is (according to the QXmlNodeModelIndex Class Reference) ...

... because QXmlNodeModelIndex is intentionally a simple class, it doesn't have member functions for accessing the properties of nodes. For example, it doesn't have functions for getting a node's name or its list of attributes or child nodes. If you find that you need to retrieve this kind of information from your query results, there are two ways to proceed.

  • Send the output of your XQuery to an XML receiver, or
  • Let your XQuery do all the work to produce the desired result.

The second case is explained by example. Suppose you want to populate a list widget with the values of certain attributes from a set of result elements. You could write an XQuery to return the set of elements, and then you would write the code to iterate over the result elements, get their attributes, and extract the desired string values. But the simpler way is to just augment your XQuery to finding the desired attribute values. Then all you have to do is evaluate the XQuery using the version of QXmlQuery::evaluateTo() that populates a QStringList, which you can send directly to your widget.

Some attribute names don't work in XQuery queries.

The sub-query works with the 'id' and 'version' attributes but not with the 'url'. The fail here is meant as "it doesn't work properly". No exception or segmentation fault appears but the string list is just empty.

Writing data to a file with the given snippet, makes it corrupt

The following snippet writes the content of a QBuffer to a jar file but while the file size looks ok the jar file is corrupt.

// data is from the type QBuffer *
// fileName is from the type QString
data->open(QIODevice::ReadOnly);
QByteArray feature = data->readAll();
QFile jarfile;
jarfile.setFileName(fileName);
jarfile.open(QIODevice::WriteOnly);
QTextStream fout(&jarfile);
fout << feature << endl;
jarfile.close();

Both, file-roller and jar, could not extract the content. jar returned the following exception:

java.util.zip.ZipException: invalid code lengths set
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
    at java.util.zip.ZipInputStream.read(ZipInputStream.java:163)
    at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:109)
    at sun.tools.jar.Main.extractFile(Main.java:954)
    at sun.tools.jar.Main.extract(Main.java:870)
    at sun.tools.jar.Main.run(Main.java:260)
    at sun.tools.jar.Main.main(Main.java:1167)

Keywords

  • raw data
  • binary mode

Use other tag version policy

Using v0.4.4 as the version causes trouble if the download link is used e.g. in PKGBUILDs if other github projects are downloaded from to. All the downloaded zip files would appear as vx.y.z and what if some versions are the same by incident?

XQuery error when parsing site.xml in console mode

After entering all the required package information the site.xml is downloaded. The xmlpatterns module fails with this error:

Downloaded site.xml from the update site. 
Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:inputDocument, at line 1, column 0: Premature end of document.

Some plugins might be unpacked

According to some feature.xml files some plugins maybe have to be unpacked. Check what's behind the unpack attribute.

Some plugins require environment variables

Either get them on PKDBUILD variables input or read in a profile.d file with the needed environment variables to be set. The tool should consider this file then.

PKGBUILD extended by something looking like this snippet:

    mkdir -p ${pkgdir}/etc/profile.d
    _envfile=${pkgdir}/etc/profile.d/eclipse-grepcode.sh
    echo "export MOZILLA_FIVE_HOME=/usr/bin" > ${_envfile}
    chmod 755 ${_envfile}

QuaZipFile used as a QIODevice leads to a network timeout in xmlpatterns

The data stream can be read from the QuaZipFile so its buffer is not empty. Used in xmlpatterns the variable binding in line 56 in main.cpp ends up with this error message:

Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:inputDocument: Network timeout.

What could be tried: append a newline to the stream.

Resources to be considered

Can -std=gnu++11 be replaced with -std=c++0x?

On a current centos machine there's the gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) which doesn't support the gnu++11 flag.

cc1plus: error: unrecognized command line option "-std=gnu++11"

Does c++0x support it so that the flag can be replaced?

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.