Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
0 votes

After updating to v2.3.5, only one window can be opened, is it a bug? My system is Ubuntu 18.04 in WLS.

asked in Bug reports by (990 points)

1 Answer

0 votes

You should be able to start cadabra2-gtk multiple times; that certainly works on Ubuntu 18.04 on bare metal. Using File / New is not intended to open an extra window (essentially, every instance of cadabra2-gtk has one kernel, and if you want more than one kernel you just start a new instance).

Or are you talking about the Jupyter kernel?

answered by (61.5k points)

Got it. Maybe I should also report this bug to WLS developer. I will try other ways. Thanks for your explanation.

When I install from source, I get the following warning

[ 22%] Building CXX object core/CMakeFiles/cadabra2.dir/Adjform.cc.o
/home/guowei/cadabra2/core/Adjform.cc: In member function ‘uint64_t cadabra::Adjform::to_lehmer_code() const’:
/home/guowei/cadabra2/core/Adjform.cc:230:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (counts.size() <= perm[i])
/home/guowei/cadabra2/core/Adjform.cc:255:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      if (elem > i)
          ~~~~~^~~
/home/guowei/cadabra2/core/Adjform.cc:266:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (size_t j = 0; j < perm[i]; ++j) {
/home/guowei/cadabra2/core/Adjform.cc: In member function ‘std::__cxx11::string cadabra::Adjform::to_string() const’:
/home/guowei/cadabra2/core/Adjform.cc:297:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    else if (data[i] > i) {
/home/guowei/cadabra2/core/Adjform.cc: In member function ‘void cadabra::AdjformEx::apply_young_symmetry(const std::vector<long unsigned int>&, bool)’:
/home/guowei/cadabra2/core/Adjform.cc:575:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      if (loc >= 0 && loc < values.size() && values[loc] < rk) {
                      ~~~~^~~~~~~~~~~~~~~
/home/guowei/cadabra2/core/Adjform.cc:593:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = r + 1; i < directions.size(); ++i)
                     ~~^~~~~~~~~~~~~~~~~~~

Is it possible to have a relation to the problem?

No, these are warnings which are related to the meld algorithm only.

After I update cadabra2 to v2.3.4, the problem raises, and v2.3.2 works fine. I hope this will provide some help for this problem.

Hi Kasper. After I update wls to wls2, everything is ok.

...