Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glob compiling issues breaking parts of interpreter #6

Open
johanlieber opened this issue Aug 30, 2020 · 0 comments
Open

Glob compiling issues breaking parts of interpreter #6

johanlieber opened this issue Aug 30, 2020 · 0 comments
Assignees
Labels

Comments

@johanlieber
Copy link

When trying to use the sample loop project, I get this error:

File: 'samples/language/9-loop.sh'
line: 81 >> files = [file for file in $(ls) if file.size("k") > 10]
Error: symbol size not found

I tried compiling this on Ubuntu 18.04.

When I was compiling the project, I got this error:

/home/ubuntu/shell-plus-plus/glob-cpp/include/glob-cpp/glob.h: In instantiation of ‘std::tuple<long unsigned int, long unsigned int> glob::StateMatch::Next(glob::String&, size_t) [with charT = char; glob::String = std::__cxx11::basic_string; size_t = long unsigned int]’:
/home/ubuntu/shell-plus-plus/src/utils/glob.cc:92:1: required from here
/home/ubuntu/shell-plus-plus/glob-cpp/include/glob-cpp/glob.h:120:56: warning: unused parameter ‘str’ [-Wunused-parameter]
std::tuple<size_t, size_t> Next(const String& str,
^~~
/home/ubuntu/shell-plus-plus/glob-cpp/include/glob-cpp/glob.h: In member function ‘std::tuple<long unsigned int, long unsigned int> glob::StateGroup::Next(glob::String&, size_t) [with charT = char]’:
/home/ubuntu/shell-plus-plus/glob-cpp/include/glob-cpp/glob.h:518:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^

@alexst07 alexst07 self-assigned this Sep 4, 2020
@alexst07 alexst07 added the bug label Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants