ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:52112] [Ruby master Bug#20730] LoadError if Rakefile has shebang
@ 2024-09-13  1:19 watson1978 (Shizuo Fujita) via ruby-dev
  2024-09-13 15:23 ` [ruby-dev:52113] " kddnewton (Kevin Newton) via ruby-dev
  2024-09-14  7:54 ` [ruby-dev:52114] " nobu (Nobuyoshi Nakada) via ruby-dev
  0 siblings, 2 replies; 3+ messages in thread
From: watson1978 (Shizuo Fujita) via ruby-dev @ 2024-09-13  1:19 UTC (permalink / raw)
  To: ruby-dev; +Cc: watson1978 (Shizuo Fujita)

Issue #20730 has been reported by watson1978 (Shizuo Fujita).

----------------------------------------
Bug #20730: LoadError if Rakefile has shebang
https://bugs.ruby-lang.org/issues/20730

* Author: watson1978 (Shizuo Fujita)
* Status: Open
* Target version: 3.4
* ruby -v: ruby 3.4.0dev (2024-09-12T20:03:28Z master 0fc8422a05) +PRISM [x86_64-linux]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
`LoadError` exception will be raised when invoke the rake task with latest ruby 3.4-dev.

### Reproduce code
Here is example code.

```ruby
#!/usr/bin/env rake

p "Hello"
```

### Result
```
$ ruby -v
ruby 3.4.0dev (2024-09-12T20:03:28Z master 0fc8422a05) +PRISM [x86_64-linux]

$ rake -f test.rake
rake aborted!
LoadError: no Ruby script found in input (LoadError)

(See full trace by running task with --trace)
```



-- 
https://bugs.ruby-lang.org/
_______________________________________________
ruby-dev mailing list -- ruby-dev@ml.ruby-lang.org
To unsubscribe send an email to ruby-dev-leave@ml.ruby-lang.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-dev:52113] [Ruby master Bug#20730] LoadError if Rakefile has shebang
  2024-09-13  1:19 [ruby-dev:52112] [Ruby master Bug#20730] LoadError if Rakefile has shebang watson1978 (Shizuo Fujita) via ruby-dev
@ 2024-09-13 15:23 ` kddnewton (Kevin Newton) via ruby-dev
  2024-09-14  7:54 ` [ruby-dev:52114] " nobu (Nobuyoshi Nakada) via ruby-dev
  1 sibling, 0 replies; 3+ messages in thread
From: kddnewton (Kevin Newton) via ruby-dev @ 2024-09-13 15:23 UTC (permalink / raw)
  To: ruby-dev; +Cc: kddnewton (Kevin Newton)

Issue #20730 has been updated by kddnewton (Kevin Newton).


I have opened https://github.com/ruby/ruby/pull/11617 to fix this.

----------------------------------------
Bug #20730: LoadError if Rakefile has shebang
https://bugs.ruby-lang.org/issues/20730#change-109754

* Author: watson1978 (Shizuo Fujita)
* Status: Open
* Target version: 3.4
* ruby -v: ruby 3.4.0dev (2024-09-12T20:03:28Z master 0fc8422a05) +PRISM [x86_64-linux]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
`LoadError` exception will be raised when invoke the rake task with latest ruby 3.4-dev.

### Reproduce code
Here is example code.

```ruby
#!/usr/bin/env rake

p "Hello"
```

### Result
```
$ ruby -v
ruby 3.4.0dev (2024-09-12T20:03:28Z master 0fc8422a05) +PRISM [x86_64-linux]

$ rake -f test.rake
rake aborted!
LoadError: no Ruby script found in input (LoadError)

(See full trace by running task with --trace)
```



-- 
https://bugs.ruby-lang.org/
_______________________________________________
ruby-dev mailing list -- ruby-dev@ml.ruby-lang.org
To unsubscribe send an email to ruby-dev-leave@ml.ruby-lang.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-dev:52114] [Ruby master Bug#20730] LoadError if Rakefile has shebang
  2024-09-13  1:19 [ruby-dev:52112] [Ruby master Bug#20730] LoadError if Rakefile has shebang watson1978 (Shizuo Fujita) via ruby-dev
  2024-09-13 15:23 ` [ruby-dev:52113] " kddnewton (Kevin Newton) via ruby-dev
@ 2024-09-14  7:54 ` nobu (Nobuyoshi Nakada) via ruby-dev
  1 sibling, 0 replies; 3+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-dev @ 2024-09-14  7:54 UTC (permalink / raw)
  To: ruby-dev; +Cc: nobu (Nobuyoshi Nakada)

Issue #20730 has been updated by nobu (Nobuyoshi Nakada).


`ruby` command handles a shebang, but it is not a part of the Ruby syntax.
Parsers should not consider shebang lines.

----------------------------------------
Bug #20730: LoadError if Rakefile has shebang
https://bugs.ruby-lang.org/issues/20730#change-109775

* Author: watson1978 (Shizuo Fujita)
* Status: Closed
* Target version: 3.4
* ruby -v: ruby 3.4.0dev (2024-09-12T20:03:28Z master 0fc8422a05) +PRISM [x86_64-linux]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
`LoadError` exception will be raised when invoke the rake task with latest ruby 3.4-dev.

### Reproduce code
Here is example code.

```ruby
#!/usr/bin/env rake

p "Hello"
```

### Result
```
$ ruby -v
ruby 3.4.0dev (2024-09-12T20:03:28Z master 0fc8422a05) +PRISM [x86_64-linux]

$ rake -f test.rake
rake aborted!
LoadError: no Ruby script found in input (LoadError)

(See full trace by running task with --trace)
```



-- 
https://bugs.ruby-lang.org/
_______________________________________________
ruby-dev mailing list -- ruby-dev@ml.ruby-lang.org
To unsubscribe send an email to ruby-dev-leave@ml.ruby-lang.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-14  7:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-13  1:19 [ruby-dev:52112] [Ruby master Bug#20730] LoadError if Rakefile has shebang watson1978 (Shizuo Fujita) via ruby-dev
2024-09-13 15:23 ` [ruby-dev:52113] " kddnewton (Kevin Newton) via ruby-dev
2024-09-14  7:54 ` [ruby-dev:52114] " nobu (Nobuyoshi Nakada) via ruby-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).