shell-plus-plus icon indicating copy to clipboard operation
shell-plus-plus copied to clipboard

Glob compiling issues breaking parts of interpreter

Open johanlieber opened this issue 5 years ago • 0 comments

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<charT>::Next(glob::String<charT>&, size_t) [with charT = char; glob::String<charT> = 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<charT>& 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<charT>::Next(glob::String<charT>&, 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] } ^

johanlieber avatar Aug 30 '20 05:08 johanlieber