primordic/IssueDupesLite huggingface dataset:
Repository: ipython/ipython

Issue #7395: Code cell vertical scrolling
Created: 2015-01-08T16:39:17Z
All code cells are scrolling vertically like there's extra space below the code.

I'm on OS X Yosemite, here's the output of python -c "import IPython; print(IPython.sys_info())"
{'commit_hash': u'12277c7',
 'commit_source': 'repository',
 'default_encoding': 'UTF-8',
 'ipython_path': '/Users/me/github/ipython/IPython',
 'ipython_version': '3.0.0-dev',
 'os_name': 'posix',
 'platform': 'Darwin-14.0.0-x86_64-i386-64bit',
 'sys_executable': '/Users/me/.virtualenvs/test/bin/python',
 'sys_platform': 'darwin',
 'sys_version': '2.7.6 (default, Sep  9 2014, 15:04:36) \n[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]'}

Duplicate issue #7419: Mouse wheel shouldn't make code cells scroll
Created: 2015-01-11T17:10:19Z
If you turn the mouse wheel down while hovering over a code cell, the contents of the code cell scroll, hiding the first line of the cell. Tested in latest Chrome and Firefox on Ubuntu 14.04.

Closing comment (2015-01-11T17:16:08Z): Duplicate of #7395, fix in the pipes apparently :)
Repository: ipython/ipython

Issue #9676: setting figsize with inline backend
Created: 2016-06-28T22:22:16Z
Short issue description
Trying to set the figure size when using inline backend kills the kernel
Reproducing
Execute in a notebook the following:
%matplotlib inline
from matplotlib import pyplot
import numpy as np

fig = pyplot.figure(figsize=(300, 1000))
ax = fig.add_subplot(1, 1, 1)
ax.imshow(np.random.randn(100, 100))
Observed behavior
Kernel dies.
Version information
Tested on notebook 4.2.0, ipython 4.2.0, matplotlib 1.5.1, verified on tmpnb.
Let me know if the issue doesn't belong to this repo.

Duplicate issue #5903: Ipython keeps dying after giving a plot command
Created: 2014-05-25T07:51:30Z
Hi,
After I installed OS 10.9.3 and I did
conda update conda
conda update ipython
as stated at http://ipython.org/install.html# , my IPython started dying when I give a plot command.
I updated IPython version to 2.1.0.
Python version is 2.7.6.
Anaconda version is 1.9.2.
(Python 2.7.6 |Anaconda 1.9.2 (x86_64)| (default, Jan 10 2014, 11:23:15)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin) taken from terminal.
I don't know what is going wrong and it has been a few days that I could not fix this issue. Could the problem be with "qtconsole"?
Thanks in advance.

Closing comment (2016-11-09T07:05:47Z): If that's the cause, it may be a duplicate of #9676
Repository: ipython/ipython

Issue #6229: Documentation needed for JavaScript Notebook Extensions
Created: 2014-07-28T23:12:19Z
Need some documentation for JavaScript Notebook Extensions.
Please review http://mail.scipy.org/pipermail/ipython-dev/2014-July/014509.html and see if that could form the basis for some documentation.
There is a question in that post, too, about how JavaScript in a Notebook behaves on re-open that I don't quite understand.

Duplicate issue #7392: Create notebook based documentation about nbextensions
Created: 2015-01-06T23:09:43Z
Hey all --
Not sure if there is a recommended way to import custom widget JS in distributed packages. Has anything changed since this email thread from last April: http://mail.scipy.org/pipermail/ipython-dev/2014-April/013835.html?
I'm planning on just loading and displaying the JS code on import, here's a snippet :
## graph_widget.py

directory = os.path.dirname(os.path.realpath(__file__))
js_widget_file = os.path.join(directory, 'graphWidget.js')
with open(js_widget_file) as f:
    js_widget_code = f.read()

display(Javascript(js_widget_code))

class Graph(widgets.DOMWidget):
    ...
Thanks for the help!

Closing comment (2015-01-20T20:40:51Z): Closing as duplicate of #6229
Repository: ipython/ipython

Issue #14352: IPython 8.22 should require traitlets 5.13
Created: 2024-02-22T13:34:01Z
#14324 introduced dependency on traitlets v5.13.0, but the pin in pyproject is only on >5:

  
    
      ipython/pyproject.toml
    
    
         Line 34
      in
      1f25c79
    
  
  
    

        
          
           "traitlets>=5", 
        
    
  


Traceback (most recent call last):
  File "/srv/conda/envs/notebook/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/srv/conda/envs/notebook/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/srv/conda/envs/notebook/lib/python3.10/site-packages/ipykernel_launcher.py", line 16, in <module>
    from ipykernel import kernelapp as app
  File "/srv/conda/envs/notebook/lib/python3.10/site-packages/ipykernel/kernelapp.py", line 21, in <module>
    from IPython.core.application import (  # type:ignore[attr-defined]
  File "/srv/conda/envs/notebook/lib/python3.10/site-packages/IPython/__init__.py", line 55, in <module>
    from .terminal.embed import embed
  File "/srv/conda/envs/notebook/lib/python3.10/site-packages/IPython/terminal/embed.py", line 15, in <module>
    from IPython.core.interactiveshell import DummyMod, InteractiveShell
  File "/srv/conda/envs/notebook/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 326, in <module>
    class InteractiveShell(SingletonConfigurable):
  File "/srv/conda/envs/notebook/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 331, in InteractiveShell
    ast_transformers: List[ast.NodeTransformer] = List(
  File "/srv/conda/envs/notebook/lib/python3.10/typing.py", line 312, in inner
    return func(*args, **kwds)
  File "/srv/conda/envs/notebook/lib/python3.10/typing.py", line 1345, in __class_getitem__
    _check_generic(cls, params, len(cls.__parameters__))
  File "/srv/conda/envs/notebook/lib/python3.10/typing.py", line 228, in _check_generic
    raise TypeError(f"{cls} is not a generic class")
TypeError: <class 'traitlets.traitlets.List'> is not a generic class

Duplicate issue #14358: TypeError:  in interactiveshell.py, InteractiveShell class, line 331 
Created: 2024-03-01T19:32:44Z
Errror:
"/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 331, in InteractiveShell
ast_transformers: List[ast.NodeTransformer] = List(
TypeError: 'type' object is not subscriptable
Solution:
Line 331 should be changed to:
ast_transformers: List = List(

Closing comment (2024-03-02T12:57:43Z): @manish-abio @DrManishSharma this issue looks like a duplicate of #14352 which was fixed in #14353 and released in 8.22.1; you are most likely either running 8.22.0 rather than patched 8.22.1, or have incompatible version of traitlets installed.
Repository: ipython/ipython

Issue #5877: nbconvert can't handle headings with numbers
Created: 2014-05-17T20:31:53Z
If you create a notebook with headings that have numbered sequences, nbconvert dies. An example would be headings that look like:
1. This
2. That
3. The other

It also dies if you use other numbering schemes like I/II/III. It works fine if you remove the . from the headings.

Duplicate issue #6559: Tex error when heading cell start with a number and a point
Created: 2014-09-27T13:37:56Z
When using nbconvert to create latex output with a heading cell starting with a number and a point like this one:
ipynb
{
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "3. (avec input)"
     ]
}

nbconvert produce an enumerate environment inside the \section
tex
 \section{\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\setcounter{enumi}{2}
\itemsep1pt\parskip0pt\parsep0pt
\item
  (avec input)
\end{enumerate}}

This produce an error during compilation:
pdflatex output
! Use of \begin doesn't match its definition.
<argument> ...e thesection\endcsname }\fi \begin {
                                                  enumerate} \def \labelenum...
l.233 \end{enumerate}}

? 
! Emergency stop.
<argument> ...e thesection\endcsname }\fi \begin {
                                                  enumerate} \def \labelenum...
l.233 \end{enumerate}}

!  ==> Fatal error occurred, no output PDF file produced!

Closing comment (2014-09-27T13:57:25Z): Duplicate of #5877
Repository: ipython/ipython

Issue #3441: Fix focus related problems in the notebook
Created: 2013-06-17T18:13:06Z
Right now, selecting a cell causes the cell to be focused.  There are two cases where this causes a jumpy scrolling experience for users:

If a user clicks on the output of a cell when the input is scrolled off screen above, the notebook will jump to show the input.
After a cell is run, we select+focus the cell below causing the cell that was just run to jump out of the way. This makes it difficult for a user to see the output of the cell they just ran.

Duplicate issue #3775: Annoying behavior when clicking on cell after execution (Ctrl+Enter)
Created: 2013-07-25T16:36:55Z
I have encountered a rather annoying behavior in the Ipython notebook cells after execution of large blocks of code. Let me describe what usually happens:

When you have a block of code that doesn't fit in the screen and you press Ctrl+Enter, it goes down to the output of the cell. Notice that this automatically selects the whole cell.
If you scroll up and then click on some place within the cell, the selection disappears but the view of the cell moves up quite a bit. I think it should stay the same.

Example:
A block of code:

After Ctrl+Enter:

Scroll up a bit:

After clicking on some place. In this case, I clicked on the line containing Writer = animation.writers['ffmpeg']

I have tested this in Firefox 22 and Chrome 28, Ipython 1.0 dev and Linux Mint 15.
This doesn't happen when using Shift+Enter to execute the cell.

Closing comment (2013-07-28T00:20:49Z): Yup, closing as duplicate of #3441.
Repository: ipython/ipython

Issue #14006: Installed qt5 event loop hook.
Created: 2023-04-06T06:50:22Z
When I use plt.show() , and run the script,
❯ & D:/Anaconda3/python.exe -m IPython --no-autoindent d:/Documents/C-Project/GeoLocOptim/scripts/estimate.py
The following message showed:
Installed qt5 event loop hook.
Shell is already running a gui event loop for qt5. Call with no arguments to disable the current loop.

What does it mean and how to disable this?

Duplicate issue #14017: Unnecessary message (warning) when using `%matplotlib`
Created: 2023-04-14T07:10:22Z
Description
In a fresh IPython session if %matplotlib magic is ran then the message Shell is already running a gui event loop for qt5. Call with no arguments to disable the current loop. is printed which seems to be a bug because %matplotlib is ran for the first time:
In [1]: %matplotlib

Installed qt5 event loop hook.
Shell is already running a gui event loop for qt5. Call with no arguments to disable the current loop.
Version: IPython 8.12
Details
This was introduced as warning in #13864 (See here), so is present in IPython 8.11 as warning, but was later turned into print statement in IPython 8.12 in #13957 (See here)
Similar issues reported - #14006, #13978

Closing comment (2023-04-28T15:30:25Z): Closing as a duplicate of #14006.
Repository: iree-org/iree

Issue #1144: Add generic IR symbol deduplication (vm.rodata, flow.executable, etc)
Created: 2020-03-19T18:31:11Z
During all of our compilation phases there are symbols generated that may have duplicates. On the simpler end for example several vm.rodata symbols may have the same exact byte contents (coming from the same UTF8-encoded string, etc). Moving higher in the stack there is duplication that is trickier to determine that would be nice to handle in a generic way. Several flow.executables may contain the same exact IR snippets (and is likely if the input IR was generated by library calls/etc).
A DuplicateSymbolFolding pass that ran on a region (module, etc) that did IR diffing could handle all of these cases.

Duplicate issue #3618: Reuse the same flow.variable if they are identical
Created: 2020-10-27T07:32:55Z
In -iree-mlir-to-benchmark-vm-bytecode-module, we could see something like:
  flow.variable @_large_const_0 dense<0.000000e+00> : tensor<5x3xf32> attributes {noinline, sym_visibility = "private"}
  flow.variable @_large_const_1 dense<0.000000e+00> : tensor<3x5xf32> attributes {noinline, sym_visibility = "private"}
  flow.variable @_large_const_2 dense<0.000000e+00> : tensor<3x5xf32> attributes {noinline, sym_visibility = "private"}
  flow.variable @_large_const_3 dense<0.000000e+00> : tensor<5x5xf32> attributes {noinline, sym_visibility = "private"}
  flow.variable @_large_const_4 dense<0.000000e+00> : tensor<5x3xf32> attributes {noinline, sym_visibility = "private"}
  flow.variable @_large_const_5 dense<0.000000e+00> : tensor<3x5xf32> attributes {noinline, sym_visibility = "private"}

I think it's possible and good if we can reuse the same one if they are identical.

Closing comment (2020-10-27T11:01:08Z): This is a duplicate of #1144.
Repository: iree-org/iree

Issue #8863: Data race: `iree_task_worker_try_steal_task` vs `iree_task_executor_destroy`
Created: 2022-04-13T02:22:07Z
TSan report
This might be the same as #8866?
During teardown, one worker is trying to steal from another worker that is already being destroyed.
Reproduce: cmake -DIREE_ENABLE_TSAN=ON and run these tests hundreds of times in parallel (running multiple tests in parallel introduces timing fluctuations that are in my experience key to triggering TSan failures).
ctest -j128 --timeout 30 -R iree/hal/dylib/cts/dylib --repeat-until-fail 100

This particular failure occurred in dylib_buffer_mapping_test but it is harder to reproduce in a ctest command running only that test.

Duplicate issue #8866: (Another!) data race: `iree_task_worker_try_steal_task` vs `iree_task_executor_destroy`
Created: 2022-04-13T02:43:14Z
TSan report
This might be the same as #8863?
During teardown, one worker is trying to steal work while the main thread is already destroying the executor.
Reproduce: cmake -DIREE_ENABLE_TSAN=ON and run these tests hundreds of times in parallel (running multiple tests in parallel introduces timing fluctuations that are in my experience key to triggering TSan failures).
ctest -j128 --timeout 30 -R iree/hal/dylib/cts/dylib --repeat-until-fail 100

This particular failure occurred in dylib_buffer_mapping_test  but it is harder to reproduce in a ctest command running only that test.

Closing comment (2022-04-13T15:01:54Z): This really was the same as #8863.
Repository: iree-org/iree

Issue #2175: Clear plan and standardization for driver/backend naming
Created: 2020-06-10T21:55:40Z
The current driver and backend names are used inconsistently throughout the codebase.
Currently, we have three iree compiler backends (vmla, llvm-ir, and vulkan-spirv) and three iree runtime drivers (vmla, llvm, and vulkan). While right now there is a 1:1 correspondence between target backends and drivers, their could in principle be a many-to-many mapping (e.g. two ways to get something to run on vulkan, or two ways to jit llvm IR). This distinction and the naming scheme is used inconsistently throughout the codebase. The check test rules use the naming in its full generality, which creates verbose test target names, the python e2e tests clump them together, but also use slightly different names (e.g. "llvmjit" as the backend name). These names are also used by the CI to filter based on runtime drivers that aren't available in certain environments (e.g. we can't run vulkan in OSS CI yet). We should figure out a way to do this that doesn't back us into a corner for the many-to-many case and still allows reasonable filtering and breakdown of tests.

Duplicate issue #3177: unify backends and driver's names in different tools
Created: 2020-09-17T16:01:25Z
There are multiple IREE tools:

iree/integrations/tensorflow/e2e;
iree-run-mlir;
iree/tools/benchmark_module_main.cc
etc

For each of them user have to use different names for the same backends as in example below:


iree/integrations/tensorflow/e2e
"target_backends" can be: "iree_vmla"; "iree_llvmjit"; "iree_vulkan"


iree-run-mlir
"iree-hal-target-backends" can be "vmla"; "vulkan-spirv"; "llvm-ir"


iree/tools/benchmark_module_main.cc driver can be "vmla"...
It is not well documented: ABSL_FLAG(std::string, driver, "vmla", "Backend driver to use."); Does it support only vmla?


It would be great to unify the names of backends and drivers.

Closing comment (2020-09-17T18:35:21Z): Duplicate of #2175
Repository: ispc/ispc

Issue #2430: Possible bug when passing varying object by reference to a function
Created: 2023-01-19T01:38:31Z
The code below will fail to compile, with an error given about passing an lvalue to a varying& parameter:
struct Matrix {
    float m[16];
};

struct Object {
    Matrix m;
};

struct Instance {
    Object *o;
};

void transform(Matrix &m) {
}

void test(){
    Instance inst;
    transform(inst.o->m);
}

The error:
test.ispc:18:15: Error: Illegal to pass a "varying" lvalue to a reference parameter of type "varying struct Matrix &".
    transform(inst.o->m);
              ^^^^^^^^^

However it doesn't seem like I'm passing an lvalue here, the reference is taken to an object which exists in memory. What's also interesting is if I change the o member of Instance to be a value, the code compiles:
struct Matrix {
    float m[16];
};

struct Object {
    Matrix m;
};

struct Instance {
    Object o;
};

void transform(Matrix &m) {
}

void test(){
    Instance inst;
    transform(inst.o.m);
}

However nothing has changed about the varying/uniform-ness of the types or the indirection/memory references from what I can tell. So it seems like the error reported above when accessing it through a pointer is a bug.

Duplicate issue #2723: Varying reference function arguments
Created: 2023-12-19T09:43:29Z
Consider the following code:
https://godbolt.org/z/1rrj4E467
struct S
{
    int member;
};

int expensive_function(S& varying_arg)
{
    return varying_arg.member;
}

void g()
{
    S s_array[10];        // Array of varying S
    int result;           // Varying result
    int i;

    for (i = 0; i < 10; i++)
    {
        if (s_array[i].member > 0)
        {
            break;
        }
    }

    result = expensive_function(s_array[i]); // Compile error
}

Can this be made working please?
Passing varyings as reference and thus accessing struct members through . instead of -> is a huge boon to make the code consistent with other technologies and works perfectly when just calling directly with local variables.
Also note that the focus here is not to process a huge array where soa might be of interest, but just to be able to call a function in such a flexible way.

Closing comment (2024-01-24T19:19:20Z): Thanks for reporting the issue. This is a duplicate of #2430.
Repository: ispc/ispc

Issue #361: empty source file gives error when compiled
Created: 2012-08-18T14:18:36Z
% ispc < /dev/null
Warning: No output file or header file name specified. Program will be compiled and 
        warnings/errors will be issued, but no output will be generated. 
Warning: No --target specified on command-line. Using system ISA "avx". 
<stdin>:1:1: Error: Premature end of file: syntax error, unexpected end of 
        file. 
%

instead, we should generate an empty object file, without complaint...

Duplicate issue #493: Compiler syntax error on files with only comments
Created: 2013-05-06T13:50:50Z
test.ispc:
/* */
$ ispc -O2 --arch=x86-64  test.ispc -o test.o -h test.h
Notice: no --target specified on command-line.  Using system ISA "sse4".
test.ispc:1:6: Error: Premature end of file: syntax error, 
        unexpected end of file. 
/* */
     ^

Closing comment (2013-05-06T14:11:41Z): Both, this issue and issue #492, are effectively the same as #361. I'm closing this one.
Repository: ispc/ispc

Issue #2533: Accessing struct member in the function call causes syntax error
Created: 2023-06-01T22:16:31Z
Accessing struct member right in the function call causes ISPC parser syntax error:
struct X {
    int x;
};

uniform X getx() {
    uniform X x;
    return x;
}

export uniform int test(){
    return getx().x;
}

Error: syntax error, unexpected '.', expecting ',' or  ';'.
return getx().x;

Duplicate issue #2496: Accessing members of expression involving pointer arithmetic triggers internal error
Created: 2023-04-25T13:36:32Z
struct S {
    uint32 a;
};
S v;

void foo(int i) {
    // fine
    S* p = (S*) (&v) + i;
    uint32 a = p->a;
    // borked
    uint32 a_ = (&v + i)->a;
}
The first case performs pointer arithmetic and stores the intermediary value before accessing the struct member using the arrow operator. The second example does the same thing but without an intermediary value, which triggers an assert in the compiler:
<source>:11:17: Error: Assertion failed 
        (/usr/local/src/ispc/src/expr.cpp:5331): "baseSym != NULL". 
    uint32 a_ = (&v + i)->a;
                ^^^^^^^^^^^

The problem is also present if you dereference the result first and then access the field
void foo2(int i) {
    // all well and good
    S* p = (S*) (&v) + i;
    uint32 a = (*p).a;
    // oopsie
    uint32 a_ = (*(&v + i)).a;
}
Godbolt example link

Closing comment (2024-04-25T02:17:08Z): This could be related to #2533 @aneshlya .
Repository: ispc/ispc

Issue #284: incorrect error with forward declaration of struct member
Created: 2012-06-17T15:18:19Z
With this reasonable code:
struct Foo;

struct Bar {
    Foo *foo;
};

struct Foo {
    int x;
};

int func(Bar * uniform b) {
    return b->foo->x;
}

The compiler incorrectly issues an error:
a.ispc:13:12: Error: Member operator "->" can't be applied to declared but not defined 
        struct type "uniform struct Foo". 

The issue seems to be that the existence of the actual definition of Foo isn't picked up.

Duplicate issue #375: incorrect error with forward declaration of struct
Created: 2012-08-31T21:52:35Z
Given this code:

struct Primitive;

struct Geom {
    Primitive *prim;
};

struct GeomTreeNode {
    int x;
};

struct Primitive {
    int x;
};

unmasked void Init(GeomTreeNode * uniform node, Geom * uniform geom) {
    node->x = geom->prim->x;
}

the compiler issues the bogus error:
x.ispc:16:15: Error: Member operator "->" can't be applied to declared but not defined struct type "uniform struct Primitive". 

The issue is that the "Geom" struct isn't clued in to know about the later definition of Primitive...

Closing comment (2012-09-06T12:49:08Z): This is likely a dupe of #284
Repository: ispc/ispc

Issue #2036: #pragma unroll produces different code than unrolling by hand
Created: 2021-03-01T20:33:43Z
After reading the latest release notes, I tried the code in issue #1320 again, hoping for it to get optimized:
int32 gang_scan(int32 v) {
    #pragma unroll
    for (uniform int s = 1; s < programCount; s *= 2) {
        v += shift(v, -s);
    }
    return v;
}

int32 gang_scan_manual_unroll(int32 v) {
    v += shift(v, -1);
    v += shift(v, -2);
    v += shift(v, -4);
    return v;
}
The asm produced by #pragma unroll couldn't optimize the shift the way it did when unrolled by hand.
Output: https://godbolt.org/z/j9o7oq

Duplicate issue #2334: Loop unrolling does a bounds test between unrolled segments
Created: 2022-06-21T19:41:42Z
When marking a for loop with #pragma unroll the loop will be unrolled but bounds checks will still occur between the unrolled segments.  This causes ISPC to perform slightly slower than hand coded loops as well as Google Highway.  The compiler should allow me to guarantee that count > programCount * unrollCount, or have two loops, one unrolled and one not and branch on count > programCount * unrollCount.
https://ispc.godbolt.org/z/KzxfGj9Eh

Closing comment (2022-08-10T01:16:44Z): This could be related to #2036.
Repository: ispc/ispc

Issue #375: incorrect error with forward declaration of struct
Created: 2012-08-31T21:52:35Z
Given this code:

struct Primitive;

struct Geom {
    Primitive *prim;
};

struct GeomTreeNode {
    int x;
};

struct Primitive {
    int x;
};

unmasked void Init(GeomTreeNode * uniform node, Geom * uniform geom) {
    node->x = geom->prim->x;
}

the compiler issues the bogus error:
x.ispc:16:15: Error: Member operator "->" can't be applied to declared but not defined struct type "uniform struct Primitive". 

The issue is that the "Geom" struct isn't clued in to know about the later definition of Primitive...

Duplicate issue #2759: Forward declaration of struct does not work
Created: 2024-02-14T18:04:30Z
See this simple forward declaration of a struct, which compiles:
typedef struct actual_vector2 vector2;

struct actual_vector2 {
	double x;
	double y;
};
But when I try to use it, I get compile errors:
vector2 add(vector2 a, vector2 b) {
    vector2 c;
    c.x = a.x + b.x;
    c.y = a.y + b.y;
    return c;
}

:10:5: Error: Member operator "." can't be applied to 
        declared but not defined struct type "varying struct actual_vector2". 
    c.x = a.x + b.x;
    ^^^

https://godbolt.org/z/PGP3Kefc9
Note how it suddenly works if you put the typedef right below the actual struct definition.

Closing comment (2024-07-09T21:13:43Z): It is a duplicate of #375
Repository: ispc/ispc

Issue #2533: Accessing struct member in the function call causes syntax error
Created: 2023-06-01T22:16:31Z
Accessing struct member right in the function call causes ISPC parser syntax error:
struct X {
    int x;
};

uniform X getx() {
    uniform X x;
    return x;
}

export uniform int test(){
    return getx().x;
}

Error: syntax error, unexpected '.', expecting ',' or  ';'.
return getx().x;

Duplicate issue #3220: Crash when accessing return value wrapped in parenthesis
Created: 2025-02-10T14:19:56Z
The compiler does not handle the case of dereferencing ( . ) return values from structs. It either gives a compile error, or crashes if the function call is wrapped in ().
Minimal repro:
struct uint2 {
    uint x;
    uint y;
};

uint2 make_uint2(uint x, uint y) {
    uint2 v;
    v.x = x;
    v.y = y;
    return v;
}

uint2 repro(uint2 xy) {
    // A) Crash
    return (make_uint2(xy.x, xy.y)).y;
    
    // B) Error: syntax error, unexpected '.', expecting ',' or ';'
    // return make_uint2(xy.x, xy.y).y;
}

Compile with ispc something.ispc -o something.obj
A) outputs:
repro.ispc:16:12: Error: Assertion failed (D:\a\ispc\ispc\src\expr.cpp:5320): "m->errorCount > 0".
    return (make_uint2(xy.x, xy.y)).y;
           ^^^^^^^^^^^^^^^^^^^^^^^^^^

***
*** Please file a bug report at https://github.com/ispc/ispc/issues
*** (Including as much information as you can about how to reproduce this error).
*** You have apparently encountered a bug in the compiler that we'd like to fix!
***

B) outputs:
repro.ispc:19:34: Error: syntax error, unexpected '.', expecting ',' or ';'.
    return make_uint2(xy.x, xy.y).y;
                                 ^

Version:
c:\stuff>ispc --version
Intel(r) Implicit SPMD Program Compiler (Intel(r) ISPC), 1.26.0dev (build commit 190effe68a2d3a36 @ 20250127, LLVM 18.1.8)
Supported Visual Studio versions: Visual Studio 2015 and later.

System:
Windows 11 Pro
Version	10.0.26100 Build 26100
Processor	11th Gen Intel(R) Core(TM) i5-11300H @ 3.10GHz, 3110 Mhz, 4 Core(s), 8 Logical Processor(s)

Closing comment (2025-02-10T14:34:26Z): B is a duplicate of #2533, A looks like a unique crash to me.
At the moment, you can workaround it by something like this:
uint repro(uint2 xy) {
    uint2 s = make_uint2(xy.x, xy.y);
    return s.y;
}
Compile explorer link: https://ispc.godbolt.org/z/1r31e4575
Repository: ispc/ispc

Issue #3242: Address calculations with int vs uint
Created: 2025-02-19T16:10:03Z
Consider this:
https://godbolt.org/z/sebW8W5xP
varying int fetch_with_uint(uniform int* data, varying uint offset_uint) {
    return data[offset_uint];
}

varying int fetch_with_sint(uniform int* data, varying int offset_sint) {
    return data[offset_sint];
}

The resulting assembly is in both cases the same - in both cases the result of the address calculation seems to be that the offset overflows at 2^31.
This is quite different to regular C where the uint address calculation does not overflow until 2^32.
This is on purpose or can this be fixed?
Regards,
Lars

Duplicate issue #3238: For unsigned loop counter codegen
Created: 2025-02-18T14:07:40Z
Consider the following loop:
export void Fill(uint32* uniform buffer, uniform int count) {
  for (uniform uint i = 0; i < count; i += programCount) {
    buffer[i + programIndex] = 7;
  }
}
Generated asm is not ideal
.LBB0_2:                                # =>This Inner Loop Header: Depth=1
        cdqe
        vmaskmovps      ymmword ptr [rdi + rax], ymm0, ymm1
        add     ecx, 8
        add     eax, 32
        cmp     ecx, esi
        jb      .LBB0_2
because of cdqe and extra add.
Compiler explorer link https://ispc.godbolt.org/z/9GdGME6sE
It reminds me of the similar issue with foreach loop counters #2870

Closing comment (2025-02-21T12:04:04Z): This issue is related to #3242. ISPC generates sext instead of zext during address calculation (https://ispc.godbolt.org/z/vxcKoq5P7).
With proper sign extension and !"llvm.loop.mustprogress" being attached, IndVarSimplify would have been able to promote the loop counter to i64 (https://godbolt.org/z/jEsTjE7Ya)
Repository: iterative/dvc

Issue #4657: Mechanism to update a dataset w/o downloading it first
Created: 2020-10-02T01:16:33Z
Story
When I have a dataset with 1M images
I want to update it- add one more image file
I have to download and checkout the previous version first now
It takes long time
Request
Come up with a set of commands/options and a flow to do this efficiently w/o downloading data first

Duplicate issue #7459: Incremental update
Created: 2022-03-14T12:44:51Z
Add the feature incremental update which able to add or delete images without downloading the entire dataset.
This feature would be very useful for entire large dataset and it will save time and space during the updating process.

Closing comment (2022-03-14T14:26:05Z): Thanks for the request @cokecuevas-gg! I think this is a duplicate of #4657. We are working on product requirements to make this possible in the future, so stay tuned to that issue for updates.
Repository: iterative/dvc

Issue #4210: Back-fill metrics
Created: 2020-07-15T19:05:32Z
Say I am maintaining some data using dvc, and at some point decide I want to have a metric showing some data statistics (i.e. track how many positive samples I have). So I create a pipeline that computes this metric.  How do I back-fill it to previous commits?  The goal is to plot a graph showing this metric at different stages of the project.
Specifically: If the commit history is A->B->master, I know I can checkout data-commit 'A' and run the pipeline, but I won't be able to save the metric output for commit 'A' in the context of commit 'A', right?  At most I will be able to commit it in a new commit (A') whose parent is 'A'.  It would have been better if I could have committed it to 'A' directly.  Why?  Because A' is not an ancestor of 'master', so it's not naturally included in the development of my data.

Duplicate issue #4211: metrics diff: accept multiple revisions (like plots diff)
Created: 2020-07-15T19:55:37Z
Context: https://discuss.dvc.org/t/fill-back-metrics/441

Related: #4210

Closing comment (2020-07-21T20:00:07Z): I guess it can be considered a duplicate of #4210 — I opened this from the same context.
Repository: iterative/dvc

Issue #7181: 2.8.1 is the latest version from `pip`
Created: 2021-12-21T09:39:43Z
Is that normal? Maybe it's just my system? My py env is def. messy rn...
Originally posted by @jorgeorpinel in #7143 (comment)

UPDATE 1: Reason in #7181 (comment)
UPDATE 2: Resolution in #7181 (comment)

Duplicate issue #7181: 2.8.1 is the latest version from `pip`
Created: 2021-12-21T09:39:43Z
Is that normal? Maybe it's just my system? My py env is def. messy rn...
Originally posted by @jorgeorpinel in #7143 (comment)

UPDATE 1: Reason in #7181 (comment)
UPDATE 2: Resolution in #7181 (comment)

Closing comment (2021-12-28T09:22:43Z): pip install -U setuptools
pip install -U pip

Thanks @pmrowla ! I managed to upgrade my global pip in a different way (see #7181 (comment)) so this now reports Requirement already satisfied. But good to know

Assuming your linux distro's system python is 3.6 ...

I got Python 3.7 and pip 21 on it. I installed both manually.
~ python -V
Python 3.7.5
~  pip -V
pip 21.3.1 from /home/me/.local/lib/python3.7/site-packages/pip (python 3.7)

always need to explicitly use python3.7 -m pip or pip3.7

Unfort neither method is working for me as reported in #7181 (comment) and #7181 (comment), resp.
I'm on Ubuntu 18 on WSL 2 BTW.
Repository: iterative/dvc

Issue #7268: Force push option
Created: 2022-01-14T08:37:34Z
I recently experienced corrupted data when transferring large files to google cloud storage (gcs).
See discussion on Discord here.
In short, the md5 of the files at the remote was different than the md5 filename given to it by DVC. And since the md5 values at the remote were the correct ones, it was not possible to push the data one more time to get it right.
Right now there are now commands in DVC that can resolve an issue like this without losing data history.
You could do:
dvc remove data.dvc
dvc gc -w -c
dvc add data.dvc
dvc push

But this will delete all history for all files.
To solve this issue, our team had to backtrace the md5 values of the corrupted files and delete them manually from the gcs.
A "simple" solution would be to have a force option on dvc push (-f). That copies the data even if the md5 sha values are equal.

Duplicate issue #7532: push: add `--force` option to force push without `.dir` optimization
Created: 2022-04-01T05:54:17Z
Hello! First of all I wanted to thank you for how well you always answer, it's really nice and trustworthy.
We have had the same problem, a dvc push of a folder with 41 files, which ended correctly (apparently, because there were no error messages) and yet only 40 files were uploaded.
Doing dvc pull on another server got us the error.
Now there has been no way to force the push where the files are because it only checks that the folder.dvc (f9c8def4b2a1a6b783209d933e26a6.dir) exists on the remote and not the files that are inside the folder.
Is there a way to do dvc push --recursive or maybe dvc push --force it to try to upload the files again?
By the way, we deleted the file f9c8def4b2a1a6b783209d933e26a6.dir from the remote and this time the missing files were uploaded, but now we have the doubt if it has happened to us in other projects.
Originally posted by @atekoa in #4164 (comment)

Closing comment (2022-04-01T11:57:46Z): Duplicate of #7268?
Repository: iterative/dvc

Issue #8696: top-level params/metrics/plots/artifacts: support templating and foreach
Created: 2022-12-14T19:53:35Z
Templating and foreach are only supported in stages in dvc.yaml. It would be nice to have support in top-level params, metrics, plots, and artifacts.

Duplicate issue #9999: DVC not supporting templating for artifacts
Created: 2023-10-05T14:29:55Z
I tried to use the templating artifacts section in dvc.yaml file, but Studio can't parse it and there are not artifact updates in dvc.lock (should it be there?)
Example repo: https://github.com/mnrozhkov/monorepo-reusable-pipelines
Here is dvc.yaml example:
artifacts:
  pipeline_a_segment_model:
    path: pipeline_a_segment/${target}/${model_dir}/model_pipeline_a_segment_${target}_UPPER.file
    type: model

Closing comment (2024-02-06T13:42:52Z): Closing as a duplicate of #8696 to consolidate.
Repository: iterative/dvc

Issue #2473: 'Errno 24 - Too many open files' on dvc push
Created: 2019-09-06T17:43:11Z
Version information

DVC version: 0.58.1
Platform: MacOS 10.14.6
Method of installation: pip within a conda environment

Description
When pushing to S3 a directory of ~100 files that have been added to DVC, I observe an Errno 24 error from the dvc process.
It looks like dvc is trying to open more files than the OS allows. Checking the file handles on for the dvc process I get:
$ lsof -p $DVC_PID | wc -l
412

Looking at the OS limits, a process is limited to having 256 open files.
$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 256
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 4256
virtual memory          (kbytes, -v) unlimited

A workaround for this is to increase the max files per process to a larger number (say 4096) by running something like ulimit -n 4096, but I wonder if the ideal solution is for DVC to work within the OS configured limits by default?
Edit: Updated wording of workaround

Duplicate issue #4121: Push failing with "The write operation timed out"
Created: 2020-06-26T10:39:21Z
Bug Report
dvc push of 302 files of approximately 8MB each (images) failed multiple times at approximately 2:20s managing to upload anywhere between 10-40 files each time.  Once dvc push --jobs=1 was used, remaining 150 files uploaded in one go without issue.
Additional information:
ulimit -n = 1024
Please provide information about your setup
Tried on dvc version 1.0.0a11 and 1.0.2
Python version: 3.6.9
Platform: Linux-5.3.0-51-generic-x86_64-with-Ubuntu-18.04-bionic
Binary: False
Package: pip
Supported remotes: azure, http, https, ssh
Cache: reflink - not supported, hardlink - supported, symlink - supported
Filesystem type (cache directory): ('ext4', '/dev/nvme0n1p3')
Repo: dvc, git
Filesystem type (workspace): ('ext4', '/dev/nvme0n1p3')
Additional Information (if any):
If applicable, please also provide a --verbose output of the command, eg: dvc add --verbose.

Closing comment (2020-06-26T10:41:16Z): Workaround looks similar to our issues that we used to have with macOs.
Might be related to #2473
Repository: itzg/docker-minecraft-server

Issue #629: Spigot download link error temporary
Created: 2020-09-13T13:08:18Z
Info logs:
sminecraft            | [init] Running as uid=1000 gid=1000 with /data as 'drwxrwxrwx    2 1000     1000          4096 Sep 13 12:54 /data'
sminecraft            | [init] Resolved version given LATEST into 1.16.3
sminecraft            | [init] Resolving type given SPIGOT
sminecraft            | [init] Downloading Spigot from https://cdn.getbukkit.org/spigot/spigot-1.16.3.jar ...
sminecraft            |
sminecraft            | ERROR: failed to download from https://cdn.getbukkit.org/spigot/spigot-1.16.3.jar
sminecraft            |        Visit https://getbukkit.org/download/spigot to lookup the
sminecraft            |        exact version, such as 1.4.6-R0.4-SNAPSHOT or 1.8-R0.1-SNAPSHOT-LATEST
sminecraft            |
The problem trying to download a version not yet available.
It would be good if in case of error download the previous version. i see you take the vainilla-version  the oficial  server
https://launchermeta.mojang.com/mc/game/version_manifest.json but in this moment the oficial version is 1.16.3 and the last version de spigot is 1.16.2.
At the moment I fix the version manually witch VERSION: "1.16.2"
Thank you.

Duplicate issue #631: Cannot start Bukkit server
Created: 2020-09-13T19:33:21Z
docker run -d -it \
        -e EULA=TRUE \
        -e ENABLE_AUTOPAUSE=TRUE \
        -e TYPE=BUKKIT \
        -p 25565:25565 \
        --restart=always \
        -v /srv/minecraft:/data \
        --name minecraft \
        -v /etc/timezone:/etc/timezone:ro \
        itzg/minecraft-server:latest

Logfile error:
[init] Downloading CraftBukkit from https://cdn.getbukkit.org/craftbukkit/craftbukkit-1.16.3.jar ...

ERROR: failed to download from https://cdn.getbukkit.org/craftbukkit/craftbukkit-1.16.3.jar
       Visit https://getbukkit.org/download/craftbukkit to lookup the
       exact version, such as 1.4.6-R0.4-SNAPSHOT or 1.8-R0.1-SNAPSHOT-LATEST

The weird thing is that when I check in my mounted /srv/minecraft volume, I see that craftbukkit_server-1.16.3.jar gets added.

Closing comment (2020-09-13T19:36:20Z): I think this is related to #629 and unfortunately getbukkit.org is returning a "this doesn't exist" HTML page, which apparently throws off the file saving aspect.
Repository: itzg/docker-minecraft-server

Issue #1209: IBM Semeru OpenJ9 container images are now available with Java 17
Created: 2021-12-17T03:16:46Z
FYI, IBM Semeru OpenJ9 container images are now available with Java 17 => https://hub.docker.com/_/ibm-semeru-runtimes
Originally posted by @C0Nd3Mnd in #1054 (comment)

Duplicate issue #1234: java17-openj9	for 1.18.1
Created: 2021-12-29T00:02:07Z
Enhancement Type
Improve an existing feature
Describe the enhancement
Just an issue to track evenually having a java17-openj9 (we currently only have java16-openj9, note 16 vs 17) for Minecraft 1.18.1 (which requires Java 17 and does not work on Java 18 - apparently).

Closing comment (2022-01-01T17:02:06Z): Duplicate of #1209
Repository: itzg/docker-minecraft-server

Issue #755: After Update Docker starts only with  privileged: true
Created: 2021-02-07T19:44:00Z
After rebuild today my Server starts only with privileged: true.
Without i get the error message
sleep: cannot read realtime clock: Operation not permitted
curl: (28) Resolving timed out after 1225600658137 milliseconds
sleep: cannot read realtime clock: Operation not permitted
[init] Running as uid=1000 gid=1000 with /data as 'drwxrwsr-x+ 8 1000 1000 4096 Jan 29  2021 /data'
curl: (28) Timeout was reached
[init] Resolved version given LATEST into
[init] Autopause functionality enabled
[init] Resolving type given SPIGOT
sleep: cannot read realtime clock: Operation not permitted
System is the Rasperry Pi 4 with 8 GB
What could i do to fix this Problem?
thx
Powerbolt

Duplicate issue #790: Server seems to stop as soon as it starts
Created: 2021-03-03T11:02:28Z
I'm not sure what's happening, as I can't get the server to start up.
pi@raspberrypi:~ $ docker run -d -it -p 25565:25565 --name test -e EULA=TRUE -e VERSION=SNAPSHOT itzg/minecraft-server:multiarch
e5b001f7d2b99158519d8e6eba41aa2455e68eb938226981b94019fdff27788d

[...]

pi@raspberrypi:~ $ docker start test
test
pi@raspberrypi:~ $ docker ps -l
CONTAINER ID   IMAGE                             COMMAND    CREATED         STATUS                            PORTS                                 NAMES
e5b001f7d2b9   itzg/minecraft-server:multiarch   "/start"   7 minutes ago   Up 5 seconds (health: starting)   0.0.0.0:25565->25565/tcp, 25575/tcp   test
pi@raspberrypi:~ $ docker ps -l
CONTAINER ID   IMAGE                             COMMAND    CREATED         STATUS                      PORTS     NAMES
e5b001f7d2b9   itzg/minecraft-server:multiarch   "/start"   7 minutes ago   Exited (28) 8 seconds ago             test

Closing comment (2021-03-06T08:44:36Z): The issue was indeed the same as #755. Thanks!
Repository: itzg/docker-minecraft-server

Issue #1444: Release Docker Images on Github's Container registry 
Created: 2022-03-26T20:07:44Z
Enhancement Type
A completely new feature
Describe the enhancement
I didn't see a previous issue, but apologizes if I missed it.
I was wondering if it would be a good idea to also have the docker images available via Github's Container Registry.
This is something that I could take on if it is a good idea.

Duplicate issue #2009: Deploy images to GitHub container registry
Created: 2023-03-16T06:30:50Z
Enhancement Type
Improve an existing feature
Describe the enhancement
Docker recently announced that they will sunset free team accounts in their container registry. While this does not affect your containers, I think it would be helpful to have a backup registry. There is an example of how this can be done: https://github.com/skills/publish-packages
I'm a bit busy now, but I may work on this on weekend and submit a PR for that

Closing comment (2023-03-16T12:24:07Z): This seems to be a duplicate of #1444
Repository: itzg/docker-minecraft-server

Issue #2144: Provide support for installing local Modrinth modpack files
Created: 2023-05-22T12:33:03Z
Enhancement Type
Improve an existing feature
Describe the enhancement
From an mrpackmrpack or just the modrinth.index.json

Duplicate issue #2313: Modrinth modpack from local file
Created: 2023-08-02T16:43:57Z
Enhancement Type
Improve an existing feature
Describe the enhancement
I would like to be able to create a modpack in prism launcher, exported it as a modrinth pack and import it into your amazing docker container. To me it seems like the easier workflow than specifying the fabric version in the env and copying all the mods in the mods folder.
However I would like to keep the pack private, and thus want to just copy the *.mrpack file to the data directory and specify the modrinth project as a local file:// path:
    environment:
      EULA: "TRUE"
      TYPE: "MODRINTH"
      MODRINTH_PROJECT: "file:///data/localpack.mrpack"

Unfortunately these project path seems to be limited to https:// addresses, as the container errors with:
minecraft  | [mc-image-helper] 16:26:01.317 ERROR : Invalid parameter provided for 'install-modrinth-modpack' command: Unable to locate requested project given ProjectRef(idOrSlug=file:///data/localpack.mrpack, versionType=null, versionId=null, versionName=null)
minecraft  | [init] ERROR failed to install Modrinth modpack

Any ideas how to get this working? :D
For the moment I will have to resort to just copying the mods folder.

Closing comment (2023-08-02T20:41:35Z): This is a duplicate of #2144 and already being implemented in itzg/mc-image-helper#272 . Please watch those for updates and/or provide any comments.
Repository: izhangzhihao/intellij-rainbow-brackets

Issue #174: Colorization of If-else levels is broken
Created: 2018-09-12T15:43:06Z
Your programming language
JavaScript
Expected Behavior
if, consequent if else and final else should be considered as having the same level
Talking in terms of colors on the screenshot, the parenthesizes of (a), (b) and (c) should have the same color and parenthesizes of f(), g(), h() and q() should have the same color
Current Behavior
Every if else is considered as nested to the preceding if or if else. Final else is considered as the same level as preceding if else
Talking in terms of colors on the screenshot, the parenthesizes of (a), (b) and (c) have different colors and parenthesizes of f(), g(), h() have different colors
For some strange reason, parenthesizes of f() has the same color as (b) and g() has the same color as (c)
Code snippet for reproduce (for bugs)
let [a, b, c] = [true, true, true]
let [f, g, h, q] = [() => {}, () => {}, () => {}, () => {}]

if (a) {
  f()
} else if (b) {
  g()
} else if (c) {
  h()
} else {
  q()
}
Your Environment

Plugin version: 5.9.1
IDE & Operating System version, comment your env as below(go to "About IntelliJ IDEA" -> click the "copy" icon):

WebStorm 2018.3 EAP
Build #WS-183.2153.10, built on September 5, 2018
WebStorm EAP User
Expiration date: October 5, 2018
JRE: 1.8.0_152-release-1293-b10 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

Duplicate issue #220: Colorization of multiple dim arrays is broken
Created: 2019-04-23T09:57:21Z
Colouring starts at wrong index.
From yellow to green as per default colours.
First should start at yellow then move down the range?
The example screenshot provides an example where the first bracket starts at green for some reason. Shouldn't all the brackets be yellow?
Your programming language(s)
Javascript
Expected Behavior
Each index of brackets should be from 0 to 5
Current Behavior
Each index of brackets start at the last index, 5 to 0
Possible Solution
.
Code snippet for reproduce (for bugs)
see screenshot
this[c] = this[c] || {};
this[c][an] = this[c][an] || {};
this[c][an][at] = this[c][an][at] || {};
this[c][an][at][k] = this[c][an][at][k] || {};
this[c][an][at][k][d] = this[c][an][at][k][d] || {};

Your Environment

Plugin version: 5.18
IDE & Operating System version, comment your env as below(go to "About IntelliJ IDEA" -> click the "copy" icon):

IntelliJ IDEA 2018.3.3 (Ultimate Edition)
Build #IU-183.5153.38, built on January 9, 2019
Licensed to -
Subscription is active until May 18, 2019
JRE: 1.8.0_152-release-1343-b26 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
IntelliJ IDEA 2018.1 (Ultimate Edition)
Build #IU-181.4203.519, built on March 22, 2018
JRE: 1.8.0_152-release-1136-b20 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.3

Closing comment (2019-07-31T08:46:04Z): Related to #174.