Giter Site home page Giter Site logo

Comments (11)

lebe-dev avatar lebe-dev commented on September 15, 2024 1

My env output (sorted): env.txt

from iter.

freuk avatar freuk commented on September 15, 2024

This is something to do with utf8 emojis. Instead of reacting to LANG and co, I think it's best to remove them all. I've merged this in #5, so you can run nix profile upgrade packages.x86_64-linux.iter and try again.

from iter.

lebe-dev avatar lebe-dev commented on September 15, 2024

I've tried:

sudo nix --extra-experimental-features 'nix-command flakes' profile list
Name:               iter
Flake attribute:    packages.x86_64-linux.iter
Original flake URL: github:freuk/iter
Locked flake URL:   github:freuk/iter/24fb18c78fccd0de8e5c865ca7763ac7fa9bf74e?narHash=sha256-OCsBaf0KcMPrjSf1Ea7N%2B8xZOcObev5Obn4WQFMwUqY%3D
Store paths:        /nix/store/zqvrw2l7vk5xcjdsdr40qkbcv8grbjv0-iter-0.1.0.0

sudo nix --extra-experimental-features 'nix-command flakes' profile upgrade iter

# empty output

Then i've tried to create an app with a prompt from above and got the same error.

from iter.

freuk avatar freuk commented on September 15, 2024

Your prompt is fine, I was able to use it.

  • Try the nix upgrade again with --refresh to make sure you're getting the latest version (I'm not sure how nix upgrade really behaves yet, as I'm new to it).
  • If that doesn't work, It must be that my fix is insufficient - sorry :). Could you try with LANG=C.UTF-8 iter <args> so we can confirm it's an utf8 encoding issue?

from iter.

lebe-dev avatar lebe-dev commented on September 15, 2024

Refresh forced to fetch the latest code from git but it didn't helped.

Exported LANG=C.UTF-8 before run iter - won't work.

I'm new to nix too. Asked ChatGPT about utf-8 for nix, it's possible to define encoding at build stage. GPT provided an example:

{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
  buildInputs = [];
  shellHook = ''
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
  '';
}

p.s: my shell (bash+starship) supports emojis

from iter.

freuk avatar freuk commented on September 15, 2024

Could you paste your output of running env, so I may be able to construct a reproducer? (edit: don't forget to censor any sensitive parts like.. your GROQ_API_KEY :) )

from iter.

freuk avatar freuk commented on September 15, 2024

I tried with this environment and that did not allow me to reproduce the bug at main: neither before #5, nor after it.

\10006 is really the utf8 code for https://www.utf8icons.com/character/10006/heavy-multiplication-x, which is not present in sources at main anymore since #5, so I have some confidence that the fix was right.

Also, your upgrade seems to have worked correctly, because /nix/store/zqvrw2l7vk5xcjdsdr40qkbcv8grbjv0-iter-0.1.0.0 is a store path for a commit after this fix.

I see two possibilities:

  • some other version than /nix/store/zqvrw2l7vk5xcjdsdr40qkbcv8grbjv0-iter-0.1.0.0 is being used when you run iter.
  • you're infact now hitting a different bug? I recently fixed a "default model name not available" bug in #6.

Could you please update, confirm via nix profile list that your path is now /nix/store/w4j12rz0mwg2qv1ln412226r42ph4xq6-iter-0.1.0.0 (the store path after #6), and then run via /nix/store/w4j12rz0mwg2qv1ln412226r42ph4xq6-iter-0.1.0.0/bin/iter <your arguments> to ensure the right binary is being called?

As an aside, I'm not understanding why your first code snippet starts with a ? and a newline. iter should interpret any newline as an injunction. Or perhaps that's just due to the way the broken encoding represented the utf8 emoji that was supposed to be there.

And.. Thanks for your feedback!

from iter.

lebe-dev avatar lebe-dev commented on September 15, 2024

Thank you for patch and investigation. I've implemented your code with python and tried your UI/UX approach. Mission completed :)

from iter.

freuk avatar freuk commented on September 15, 2024

from iter.

lebe-dev avatar lebe-dev commented on September 15, 2024

The first goal with your project was to try your UI/UX approach. AI in every corner but I don't known even one approach to apply it to existing code base (cody, copilot, phythogora, etc. are not convenient and helpful yet).

I like your approach to show two panes with before and after. But imo it's not suitable for projects with multiple files with cross dependencies between multiple files. I've tried to implement the same, tested it and forget. Don't want to make research in such direction right now, my code is too raw to publish it.

Anyway thanks for the idea of UI/UX in iter tool.

My current approach to work with existing projects - use bash script which reads all project files (exclude some files and directories) and generates huge prompt for Claude 3 Opus (work with any LLM). Then i work with project, add modifications.

from iter.

freuk avatar freuk commented on September 15, 2024

from iter.

Related Issues (2)

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.